| 1 |
<?php |
<?php |
| 2 |
// $Id: mailhandler.module,v 1.87.2.17 2008/09/17 16:29:36 heine Exp $ |
// $Id: mailhandler.module,v 1.87.2.18 2008/12/25 13:01:20 zstolar Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Retrieve all msgs from a given mailbox and process them. |
* Retrieve all msgs from a given mailbox and process them. |
| 428 |
* If available, use the mail header specified in mailbox config. otherwise use From: header |
* If available, use the mail header specified in mailbox config. otherwise use From: header |
| 429 |
*/ |
*/ |
| 430 |
function mailhandler_get_fromaddress($header, $mailbox) { |
function mailhandler_get_fromaddress($header, $mailbox) { |
| 431 |
if ($fromheader = strtolower($mailbox['fromheader']) && isset($header->$fromheader)) { |
if (($fromheader = strtolower($mailbox['fromheader'])) && isset($header->$fromheader)) { |
| 432 |
$from = $header->$fromheader; |
$from = $header->$fromheader; |
| 433 |
} |
} |
| 434 |
else { |
else { |