| version 1.23, 2005/05/07 16:46:08 |
version 1.24, 2005/05/08 14:32:05 |
|
|
| <?php |
<?php |
| |
|
| // $Platon: mylist/backend/receiver/receiver.php,v 1.22 2005/05/07 16:44:18 majo Exp $ |
// $Platon: mylist/backend/receiver/receiver.php,v 1.23 2005/05/07 16:46:08 majo Exp $ |
| |
|
| require_once dirname(__FILE__).'/validator.php'; |
require_once dirname(__FILE__).'/validator.php'; |
| require_once dirname(__FILE__).'/../../mylist.config.php'; |
require_once dirname(__FILE__).'/../../mylist.config.php'; |
| Line 214 class CReceiver { |
|
| Line 214 class CReceiver { |
|
| } |
} |
| else |
else |
| { |
{ |
| $this->modifiedMessage->body = $this->validator->emailMessage->body; |
$this->modifiedMessage->body = $this->validator->emailMessage->all_body; |
| |
|
| if (! $this->messageHasAttachements()) |
if (! $this->messageHasAttachements()) |
| $this->emailMessage->plain_body = $this->modifiedMessage->body; |
$this->emailMessage->plain_body = $this->modifiedMessage->body; |
| Line 427 class CReceiver { |
|
| Line 427 class CReceiver { |
|
| |
|
| function addSignature($signature,$plainbody) |
function addSignature($signature,$plainbody) |
| { // {{{ |
{ // {{{ |
| $old_body = $this->validator->emailMessage->body; |
$old_body = $this->validator->emailMessage->all_body; |
| $first_sign = "content-type: text/plain"; |
$first_sign = "content-type: text/plain"; |
| |
|
| if (($pos=StrPos(strtolower($old_body),$first_sign)) || StrToLower($old_body[0]) == $first_sign) |
if (($pos=StrPos(strtolower($old_body),$first_sign)) || StrToLower($old_body[0]) == $first_sign) |
| Line 450 class CReceiver { |
|
| Line 450 class CReceiver { |
|
| |
|
| // if something is wrong, return body without signature |
// if something is wrong, return body without signature |
| return $old_body; |
return $old_body; |
| } // }}} |
} // }}} |
| |
|
| |
|
| function processAttachements($id,$list) |
function processAttachements($id,$list) |