On Tue, 2010-02-09 at 14:56 -0800, Ted Mittelstaedt wrote: > Karsten Bräckelmann wrote:
> > Even though this most likely is a TB bug, it would be interesting to > > have a look at these headers. If possible, the raw one, prior to your SA > > header munging, err, rewriting option. > > OK I did it - and this one is really, really cool!!! > > Thunderbird is barfing when it gets TWO "Subject:" lines in the e-mail > message. > > SA processes it and here's the result: [...] > Date: Tue, 09 Feb 2010 17:22:37 -0500 > Subject: *****SPAM***** > Subject: The second one does not have a space (or tab) after the colon. An artifact of copy-n-paste, or the same with the raw message? > Thunderbird only displays the SECOND subject line. > > Now, why the message that SA is creating is getting TWO Subject: lines > is a different question. > > cat -v does not show any non-printable chars. > > Here's the original header from the SA attachment: [...] > Date: Tue, 09 Feb 2010 17:22:37 -0500 > Subject: Single Subject header. No white-space here either. Again, copy-n-paste? What about the RAW, incoming mail, as fed into SA? No white-space there either? Any monkey business in the original header? This might after all turn out to be a SA header re-write bug. :( -- char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}