| version 1.12, 2005/05/02 18:23:30 |
version 1.13, 2005/05/02 18:52:15 |
|
|
| <?php |
<?php |
| |
|
| // $Platon: mylist/backend/receiver/receiver.php,v 1.11 2005/04/25 20:09:28 rajo Exp $ |
// $Platon: mylist/backend/receiver/receiver.php,v 1.12 2005/05/02 18:23:30 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 54 class CReceiver { |
|
| Line 54 class CReceiver { |
|
| |
|
| function processMessage($list_id) |
function processMessage($list_id) |
| { // {{{ |
{ // {{{ |
| $tÐÒæZ|ÚÞÈÒÌÒÊÈšÊææÂÎÊ@z@ÜÊî@†šÞÈÒÌÒÊÈŠÚÂÒØšÊææÂÎÊPRvHèÐÒæZ|ÚÞÈÒÌòšÊææÂÎÊPHØÒæè¾ÒÈRvHÚÊææÂÎʾâêÊêʾÒÈ@z@HèÐÒæZ|ÒÜæÊäèšÊææÂÎÊ’ÜèÞ¢êÊêÊPHØÒæè¾ÒÈRvÎØÞÄÂØ@HÈÄÐvHæâØ@z@D¦Š˜Š†¨@̾ÂäÆÐÒìÊ@Œ¤žš@ÚòØÒæè¾ØÒæèæ@®�ФŠ@ÒÈ@z@HØÒæè¾ÒÈDvH̾ÂäÆÐÒìÊ@zL@HÈÄÐZ|ÎÊèžÜÊPHæâØRvÒÌ@PH̾ÂäÆÐÒìÊRöHÂäÆÐÒìʾÒÈ@z@HèÐÒæZ|ÂäÆÐÒìÊšÊææÂÎÊPHØÒæè¾ÒÈRvÒÌ@PHÂäÆÐÒìʾÒÈRöHèÐÒæZ|æÊè ÂäÊÜè’ˆPHÂäÆÐÒìʾÒÈRvHèÐÒæZ|ÒÜÈÊðÊä@z@ÜÊî@†’ÜÈÊðÊäPRvHèÐÒæZ|ÒÜÈÊðÊäZ|æêÄÔÊÆè@z@HèÐÒæZ|ÚÞÈÒÌÒÊÈšÊææÂÎÊZ|æêÄÔÊÆèvHèhis->indexer->header = $this->validator->emailMessage->structure->headers; |
$this->modifiedMessage = new CModifiedEmailMessage(); |
| $this->indexer->body = $this->emailMessage->plain_body; |
$this->modifyMessage($list_id); |
| $this->indexer->attachements = ""; |
$message_queue_id = $this->insertMessageIntoQueue($list_id); |
| // text attachements to db, others to filesystem |
|
| if ($this->messageHasAttachements()) |
global $dbh; |
| $this->processAttachements($archive_id, $list_id); |
|
| |
$sql = "SELECT f_archive FROM mylist_lists WHERE id = $list_id"; |
| |
$f_archive =& $dbh->getOne($sql); |
| |
|
| |
if ($f_archive) |
| |
{ |
| |
$archive_id = $this->archiveMessage($list_id); |
| |
if ($archive_id) |
| |
{ |
| |
$this->setParentID($archive_id); |
| |
|
| |
$this->indexer = new CIndexer(); |
| |
$this->indexer->subject = $this->modifiedMessage->subject; |
| |
$this->indexer->header = $this->validator->emailMessage->structure->headers; |
| |
$this->indexer->body = $this->emailMessage->plain_body; |
| |
$this->indexer->attachements = "" |
| |
|
| |
// text attachements to db, others to filesystem |
| |
if ($this->messageHasAttachements()) |
| |
$this->processAttachements($archive_id, $list_id); |
| |
|
| $this->indexer->indexMessage($archive_id); |
$this->indexer->indexMessage($archive_id); |
| } |
} |
| } |
} |
| |
|
| return $message_queue_id; |
return $message_queue_id; |