#1486077 closed Bugs (worksforme)
(SVN 2897) Attached mail is not parsed correctly ...
| Reported by: | rosali | Owned by: | |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.3-stable |
| Component: | MIME parsing | Version: | git-master |
| Severity: | normal | Keywords: | |
| Cc: |
Description
... it is generated by net2ftp and sent by PHP function mail(). On a first glance I don't see any mal-formatted parts.
Also I noticed that some mails generated by roundcube mailinglists also result in a blank body.
Attachments (2)
Change History (9)
Changed 4 years ago by rosali
comment:1 Changed 4 years ago by rosali
comment:2 follow-up: ↓ 3 Changed 4 years ago by alec
But what's wrong? For me it's ok. Show IMAP debug.
Changed 4 years ago by rosali
comment:3 in reply to: ↑ 2 Changed 4 years ago by rosali
comment:4 Changed 4 years ago by alec
- Resolution set to worksforme
- Status changed from new to closed
Server issue. Bodystructure is malformed, should be:
BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL NIL "quoted-printable" 834 26 NIL NIL NIL NIL)("text" "html" ("charset" "iso-8859-1") NIL NIL "base64" 1208 18 NIL NIL NIL NIL) "alternative" ("boundary" "----=_InnerBoundery_001") NIL NIL NIL)("application" "octet-stream" ("name" "RequestedFile.zip") NIL NIL "base64" 2456 NIL ("attachment" ("filename" "RequestedFile.zip")) NIL NIL) "mixed" ("boundary" "----=_OuterBoundary_000") NIL NIL NIL)
comment:5 follow-up: ↓ 7 Changed 4 years ago by rosali
comment:6 Changed 4 years ago by knafve
The message doesn't contain correct linefeed characters (cr+lf). The attachment here does though. I would say that this is really an issue in the client sending the message. If line feeds are incorrect, hMailServer will not be able to parse the message.
(There is an option in hMailServer to reject messages with incorrect line feeds)
comment:7 in reply to: ↑ 5 Changed 4 years ago by rosali
Replying to rosali:
OK, close ticket.
I have patched net2ftp to send correct line feeds on windows ...
http://www.net2ftp.org/forums/viewtopic.php?id=3844
... but I notice other mails with incorrect line feeds from, so RC
v0.4 should parse them from raw message ... check a real good class
for that:
http://www.phpclasses.org/browse/package/3169.html

... forgot to mention that Outlook Express shows the mail correct.