mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
patch to enable infolog to retrieve/save messages that have been part of (attachment of) another message
This commit is contained in:
parent
fc47271569
commit
d4544daf94
@ -1324,6 +1324,7 @@ class uiinfolog
|
|||||||
function import_mail($_to_emailAddress=false,$_subject=false,$_body=false,$_attachments=false,$_date=false)
|
function import_mail($_to_emailAddress=false,$_subject=false,$_body=false,$_attachments=false,$_date=false)
|
||||||
{
|
{
|
||||||
$uid = $_GET['uid'];
|
$uid = $_GET['uid'];
|
||||||
|
$partid = $_GET['part'];
|
||||||
$mailbox = $_GET['mailbox'];
|
$mailbox = $_GET['mailbox'];
|
||||||
|
|
||||||
if (!empty($_to_emailAddress))
|
if (!empty($_to_emailAddress))
|
||||||
@ -1358,9 +1359,9 @@ class uiinfolog
|
|||||||
$bofelamimail->openConnection();
|
$bofelamimail->openConnection();
|
||||||
$bofelamimail->reopen($mailbox);
|
$bofelamimail->reopen($mailbox);
|
||||||
|
|
||||||
$headers = $bofelamimail->getMessageHeader($uid);
|
$headers = $bofelamimail->getMessageHeader($uid,$partid);
|
||||||
$bodyParts = $bofelamimail->getMessageBody($uid,'text/plain');
|
$bodyParts = $bofelamimail->getMessageBody($uid,'text/plain',$partid);
|
||||||
$attachments = $bofelamimail->getMessageAttachments($uid);
|
$attachments = $bofelamimail->getMessageAttachments($uid,$partid);
|
||||||
|
|
||||||
if ($mailbox == 'Sent') $mailaddress = $bofelamimail->decode_header($headers['TO']);
|
if ($mailbox == 'Sent') $mailaddress = $bofelamimail->decode_header($headers['TO']);
|
||||||
elseif (isset($headers['FROM'])) $mailaddress = $bofelamimail->decode_header($headers['FROM']);
|
elseif (isset($headers['FROM'])) $mailaddress = $bofelamimail->decode_header($headers['FROM']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user