X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fmessage.inc.php;h=5caa8022ae5891d41ac68b77a11ab689db903bd6;hb=1ffc081d2cffd228b99a39ef6dc0393c8473d533;hp=56885f7b560aebd0c464ad3276cba4d672a62341;hpb=1c3d7f101c76ba015a3937a87ec0e532f7734bd8;p=banana.git diff --git a/banana/message.inc.php b/banana/message.inc.php index 56885f7..5caa802 100644 --- a/banana/message.inc.php +++ b/banana/message.inc.php @@ -303,7 +303,7 @@ final class BananaMessage extends BananaMimePart if (function_exists('hook_checkcancel')) { return hook_checkcancel($this->headers); } - return Banana::$profile['name'] == $this->headers['from']; + return Banana::$profile['headers']['From'] == $this->headers['from']; } public function canSend()