Shane Kerr wrote: > Jorge, > > On Tue, 2009-09-29 at 16:22 +0100, Jorge Bastos wrote: > >> Can you point me to the IETF link where it says that the emails >> headers MUST be encoded and never in PLAIN ASCII?
Plain ASCII is always OK! Only non-ascii characters should be encoded. > > Must they? > > I have been getting familiar with the IMAP RFC lately, and it says this: > > Note that headers (part specifiers HEADER or MIME, or the > header portion of a MESSAGE/RFC822 part), MUST be 7-bit; 8-bit > characters are not permitted in headers. > > http://www.faqs.org/rfcs/rfc3501.html That rfc snippet doesn't say anything about message structure, just about IMAP responses. The reference for message structure is rfc5322 http://tools.ietf.org/html/rfc5322 while the latest RFC dealing with non-ascii text in headers is http://tools.ietf.org/html/rfc2047 Even though formally 8bit headers are not allowed, it was decided long ago to liberally accept such headers. Dbmail doesn't care one way or the other. However, FETCH responses containing part specifiers HEADER or MIME must by 7-bit. I'm pretty sure dbmail is not compliant here. I havent verified, but reading the code (which I wrote three years ago or so) it looks like we're returning HEADER and MIME parts as-is. -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl _______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
