On 2/20/2013 3:11 PM, Tetsuo Handa wrote: > Hello. > > Sorry for newbie question. > > Is there any possibility that mails stored under ~/Maildir/cur/ directory > contain non-ascii bytes in the header lines, like > > To: "Somebody" <somebody@\xe3\x80\x9c.com> > > ? > > (I refer "<somebody@\xe3\x80\x9c.com>" as bytes > > '<', 's', 'o', 'm', 'e', 'b', 'o', 'd', 'y', '@', '\xe3', '\x80', '\x9c', > '.', 'c', 'o', 'm', '>' > > in C language's notation.) Maybe, not sure if IMAP bans it somewhere in the specs, but read on... > I'm not talking about "whether non-ascii bytes in the mail addresses is > legal". > > I'm talking about "whether non-ascii bytes can appear (by error or by intent) > in the mail addresses within the header lines of mails within ~/Maildir/cur/ > directory". Certainly yes.
All kinds of crap can and do appear in mails and headers arriving from the outside, and mail clients need to safely cope with anything thrown at them, especially if it is malicious. The Maildir format tries it best to store whatever was received over a mail protocol such as SMTP or IMAP (like when you save a draft). Most SMTP implementations are 8 bit clean and care very little about what is in the headers (they are told where to send the mail separately, not by reading the headers). So it is entirely possible for a message in a Maildir store to contain headers such as the one you show in your question, and worse. Enjoy Jakob -- Jakob Bohm, CIO, Partner, WiseMo A/S. http://www.wisemo.com Transformervej 29, 2730 Herlev, Denmark. Direct +45 31 13 16 10 This public discussion message is non-binding and may contain errors. WiseMo - Remote Service Management for PCs, Phones and Embedded ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Courier-imap mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap
