The following issue has been SUBMITTED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=996 
====================================================================== 
Reported By:                dfroe
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   996
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             17-Dec-12 18:10 CET
Last Modified:              17-Dec-12 18:10 CET
====================================================================== 
Summary:                    Improperly formatted MIME Boundary in BODYSTRUCTURE
response
Description: 
I am having trouble with dbmail and thunderbird with certain mails.
Thunderbird just shows an empty mail body when opening the mail. This
affects all MIME mails with attachment which use certain boundary strings.

I opened a bugzilla report for Mozilla Thunderbird where you can find all
details about this issue.
https://bugzilla.mozilla.org/show_bug.cgi?id=821250


For example, a mail is being parsed this way in debug log:


_structure_part_multipart(+1488): parse [2] parts for [multipart/mixed]
with boundary [----=_Part_150954_739912730.1353583710075]


This is the IMAP BODYSTRUCTURE response:


Info:[clientbase] ci_write(+312): [0x8088ca000] S > [630/630:* 126 FETCH
(UID 647213 BODYSTRUCTURE ((("text" "plain" ("charset" "iso-8859-1") NIL
NIL "quoted-printable" 5376 134 NIL NIL NIL NIL)("text" "html" ("charset"
"iso-8859-1") NIL NIL "7bit" 31526 409 NIL NIL NIL NIL) "alternative"
("boundary"
"=?us-ascii?q?----=3D=5FPart=5F150956=5F304026143=2E1353583710?=
=?us-ascii?q?125?=") NIL NIL NIL)("application" "octet-stream" ("name"
"2012_12rechnung_5611468629.pdf") NIL NIL "base64" 204884 NIL ("attachment"
("filename" "2012_12rechnung_5611468629.pdf")) NIL NIL) "mixed" ("boundary"
"=?us-ascii?q?----=3D=5FPart=5F150954=5F739912730=2E1353583710?=
=?us-ascii?q?075?=") NIL NIL NIL))
]


You can see that the boundary string is being encoded according to RFC2047
(quoted printable). This obviously is a bug because it is not allowed (and
not necessary) to encode the boundary string. This happens every time when
a boundary string with an equal-sign (=) or an underscore (_) is being
used. Then the string is being encoded and Thunderbird (and probably other
mail clients that rely on the BODYSTRUCTURE) crash. This does not happen
when the boundary string only contains A-Za-z0-9 chars. But according to
RFC2046 it is allowed to used = or _ in the boundary string.

How can we fix this issue? I would appreciate a fast solution (or even a
first workaround) since I have to use Thunderbird with dbmail.
Unfortunately I still could not isolate that line in the sourcecode which
actually performs the unwanted encoding of the boundary string in the
bodystructure response.

If I can assist you in any way, please just let me know. Thanks for your
help in advance.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
17-Dec-12 18:10  dfroe          New Issue                                    
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to