Bug #5125

Collect of emails with single part

Added by orthagh over 7 years ago. Updated over 7 years ago.

Status:NewStart date:11/14/2014
Priority:NormalDue date:
Assignee:-% Done:


Target version:-


Detected in glpi 0.83, but i think trunk is affected.
In case of mails with only one part (only an attachment), the attachment is not saved as document.
The "Fax to mail" gateways create this type of mail.

In attachment of this issue, a source of a mail with this particularity and a naive patch who avoids the problem.

the $param in getRecursiveAttached function equals NULL in this case and the $message after imap_fetchbody(..) contains the full content of mail instead of the attachment.

fix_monopart_mail.patch Magnifier (372 Bytes) orthagh, 11/14/2014 09:21 AM

mono-part_mail.eml (143 KB) orthagh, 11/14/2014 09:28 AM


#1 Updated by orthagh over 7 years ago

Also available in: Atom PDF