Re: [Evolution] signature script
- From: guenther <guenther rudersport de>
- To: evolution-list gnome org
- Subject: Re: [Evolution] signature script
- Date: Mon, 21 Nov 2005 21:30:28 +0100
They need to be html so that no matter what format the user chooses in
the *HTML* editor, they will be formatted correctly.
:)
Jeff, I was about to post the same -- when I realized, this does work
for static signatures. Yes, using the very same *HTML* editor. ;-)
My static signature without any HTML displays just fine even in a HTML
message. And I just defined a HTML formatted static signature, that
displays just fine in either HTML and text/plain (with markup stripped,
apart from the <br> tags, which correctly are newlines in text/plain).
So, where is the difference between reading a file and reading STDOUT of
a script? Both do have \n chars. One works, one doesn't.
I just had a look at the generated HTML signature, which is a full blown
HTML document, rather than the sparse markup the user likely sets in
handwritten scripts. Looks like someone was too lazy to make Evo
automagically decide whether to use HTML or text/plain for the signature
script...
...guenther
--
char *t="\10pse\0r\0dtu\0 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; }}}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]