[Tickets #14238] Attachment size = 0 for Microsoft email address
noreply at bugs.horde.org
noreply at bugs.horde.org
Tue Feb 2 13:37:52 UTC 2016
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: https://bugs.horde.org/ticket/14238
------------------------------------------------------------------------------
Ticket | 14238
Created By | cbellmont at be-bound.com
Summary | Attachment size = 0 for Microsoft email address
Queue | IMP
Version | Git master
Type | Bug
State | Unconfirmed
Priority | 2. Medium
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
cbellmont at be-bound.com (2016-02-02 13:37) wrote:
The attachment's size is not properly retrieve for Microsoft accounts
(Outlook, Hotmail...)
You can find attached the complete Horde_Mime_Part object.
Retrieving exactly the same email in Outlook and in Gmail, what I
obtain when I use a Gmail account:
[Content-Disposition] =>
Horde_Mime_Headers_ContentParam_ContentDisposition Object
(
[_params:protected] => Horde_Support_CaseInsensitiveArray Object
(
[storage:ArrayIterator:private] => Array
(
[size] => 752364
[filename] => Friends - Issues Descriptions.pdf
)
)
...
What I obtain if I use a Outlook account:
[Content-Disposition] =>
Horde_Mime_Headers_ContentParam_ContentDisposition Object
(
[_params:protected] => Horde_Support_CaseInsensitiveArray Object
(
[storage:ArrayIterator:private] => Array
(
[size] => 0
[filename] => Friends - Issues Descriptions.pdf
)
)
...
I generate the Horde_Mime_Part object as follow:
$mbox = new Horde_Imap_Client_Socket($param_arr);
$query = new Horde_Imap_Client_Fetch_Query();
$query->structure();
$result = $this->mbox->fetch('Inbox', $query, array('ids' => new
Horde_Imap_Client_Ids($id)));
$structure = $result[0]->getStructure();
* Note, when the attachment is a plain text, the size is properly calculated.
cbellmont at be-bound.com (2016-02-02 13:37) uploaded: horde files.zip
https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=horde%20files.zip&ticket=14238&fn=%2Fhorde%20files.zip
More information about the bugs
mailing list