The following issue has been RESOLVED.
======================================================================
http://www.dbmail.org/mantis/view.php?id=404
======================================================================
Reported By: rhstone
Assigned To: aaron
======================================================================
Project: DBMail
Issue ID: 404
Category: IMAP daemon
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
target:
Resolution: fixed
Fixed in Version: SVN Trunk
======================================================================
Date Submitted: 29-Aug-06 21:22 CEST
Last Modified: 29-Aug-06 22:01 CEST
======================================================================
Summary: BODYSTRUCTURE excludes encoding
Description:
Per private email with Mark Crispin:
Which IMAP server are you using? It's defective. <-- You guys are in
trouble!
In your message, the IMAP server sent:
* 2501 FETCH (FLAGS (\Seen \Recent) BODYSTRUCTURE ("TEXT" "PLAIN"
("charset" "US-ASCII" "format" "flowed") NIL NIL NIL 34 2 NIL NIL NIL
NIL))
The response should be:
* 2501 FETCH (FLAGS (\Seen \Recent) BODYSTRUCTURE ("TEXT" "PLAIN"
("charset" "US-ASCII" "format" "flowed") NIL NIL "7BIT" 34 2 NIL NIL NIL
NIL))
Note that the 6th item of the BODYSTRUCTURE (before 34) is NIL in the
incorrect example and "7BIT" in the correct example.
The syntax for the 6th item in the BODYSTRUCTURE list is:
body-fld-enc = (DQUOTE ("7BIT" / "8BIT" / "BINARY" / "BASE64"/
"QUOTED-PRINTABLE") DQUOTE) / string
This explicitly prohibits both atoms (it would use astring instead of
string otherwise) and NIL (it would use nstring otherwise).
======================================================================
----------------------------------------------------------------------
rhstone - 29-Aug-06 21:40
----------------------------------------------------------------------
On line 393 of dm_imaputil.c
/* body encoding */
list =
imap_append_header_as_string(list,object,"Content-Transfer-Encoding");
an if-block needs to be added that specifies the default value of "7BIT"
if the Content-Transfer-Encoding value is not set. It is not acceptable to
specify NIL as a value for the body encoding.
Robbie
----------------------------------------------------------------------
aaron - 29-Aug-06 22:01
----------------------------------------------------------------------
Nailed this one.
Issue History
Date Modified Username Field Change
======================================================================
29-Aug-06 21:22 rhstone New Issue
29-Aug-06 21:40 rhstone Note Added: 0001375
29-Aug-06 22:01 aaron Status new => resolved
29-Aug-06 22:01 aaron Fixed in Version => SVN Trunk
29-Aug-06 22:01 aaron Resolution open => fixed
29-Aug-06 22:01 aaron Assigned To => aaron
29-Aug-06 22:01 aaron Note Added: 0001376
======================================================================