Re: [Evolution] Help Needed to get Signature file working correctly



As the script is already running fine, just some notes to clarify
things...


I do not know why but when I add <br> to the end of each line the script stops 
working. When I add \n, I get the same broken sig but with n's inserted no 
line breaks.

Well, maybe this is, cause "<" has a special meaning in a shell and
isn't a printable char unless you put it in "quotes"? ;-)

Be careful with other chars too, like | & and even ; -- they are
evaluated by the shell. The easiest way to not run into problems in the
future might be, to always quote the whole string and not only the html
tag:
echo "Ralph<br>"


I don't really know, why hackers decided to not force "-- " at the
beginning of a script signature. But I think, as it is no-static there
are valid reasons to even have text generated that should not be the
sig. Thus, to have this power, there is no sig marker. You can easily
add it yourself.


The <br> (or similar) tag is necessary, cause the internal format is
html and the script sig is  handled that way too. So you have to add
html line breaks.

If you only wanna generate text/plain mails (no html), it can be easier
to just surround your signature with <pre> and </pre> which should
respect line breaks.

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