Collect of emails with single part
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.