blah.... blah.... blah...

My blah....blah....blah....
My Photo
Location: Delhi, Delhi, India

I'm a hacker, a free software advocate, and a student.

23 January 2006


New mail signature

I was fed up with a same signature (actually quote) all the time. So I've created a shell script which will give up new quote everytime it is executed. It uses fortune and sed. I'm using this script as my email signature in Evolution. You can use it and customize it accordingly.


#Make it executable: chmod +x ./mailsign

#This script requires some hacking because Evolution exepcts signatures
#in HTML whether mail is text or not. So, if mail is in text format, the
#formatted text of signature is taken without HTML tags.
#So to have any kind of formatting in your signature use appropriate HTML.
#e.g. If multiple continuous whitespace is encountered, according to SGML
#specs, it should be merged into single whitespace until unless u give an
#entity   [non-breakable white space]. Another hack is to replace new lines
#with <br/> tags. I've also added underline to the hyperlinks by enclosing
#them in the <a> tag.

#This script requires 'fortune' for quotes and 'sed' for formatting.
#Any other program's output instead of fortune...

echo "--<br/>"
echo "Ashish Shukla \"Wah Java !!\"<br/>"
echo "--<br/>"
fortune |sed s[\$[\<br/\>[g |sed s/\ /\\\&nbsp\;/g

Comments: Post a Comment

<< Home


200601   200602   200603   200604   200605  

This page is powered by Blogger. Isn't yours?

There are some of my webpages tooo...

This blog is [ INVALID XHTML v1.0 ] [ INVALID CSS v2.0 ]