BODYSTRUCTURE question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I came across an e-mail with following oddness in its headers:

MIME-Version: 1.0
Content-Type: text/html
    boundary="==MULTIPART_BOUNDARY_09157bca84fe5bd8804eb133d889d0d0"

Apparently , as there's a ";" missing after text/html , cyrus 2.3.7 interprets this as text/plain and so returns following to FETCH BODYSTRUCTURE:

<1172533142<F1247 FETCH 9 (BODYSTRUCTURE)
>1172533142>* 9 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 8835 82 NIL NIL NIL))
F1247 OK Completed (0.000 sec)

Then, when the client wants this part, it returns:

<1172533142<ftch FETCH 9 (BODY.PEEK[TEXT])
>1172533142>* 9 FETCH (BODY[TEXT] {8835}
<HTML xmlns="http://www.w3.org/1999/xhtml";><HEAD><TITLE>XXXXXXXXXXXX</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
etc.

The boundary is never used within the e-mail. And the client has to guess that this is actually HTML instead of plain text.

As of RFC 2045, Content-Type syntax should be:
content := "Content-Type" ":" type "/" subtype *(";" parameter)

Shouldn't cyrus still interpret this as text/html, despite the illegal " boundary..." line following Content-Type ?

Regards,

-Carlos

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux