Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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)

test.eml (6.4 KB) - added by rosali 4 years ago.
imap_debug.txt (2.1 KB) - added by rosali 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by rosali

comment:1 Changed 4 years ago by rosali

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

comment:2 follow-up: 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

Replying to alec:

But what's wrong? For me it's ok. Show IMAP debug.

imap debug log attached.

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: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:

http://hmailserver.com/forum/viewtopic.php?f=7&t=16125

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

Note: See TracTickets for help on using tickets.