Re: BODYSTRUCTURE question

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

 



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 ?

I've noticed this too, and while it clealy is broken with respect to the RFC, it's annoying to deal with. In the meantime, I fix up these headers in our custom perl lmtp proxy system with a regexp like this on Content-Type headers...

 # Fix up broken Content-Type headers missing ; between
 # type and first parameter
 s{^([\w\-]+/[\w\-]+)(\s+[\w\-]+\s*=)}{$1;$2};

Rob

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