Guitars, Paramedics, Linux, and Me

November 26, 2006

Fedora Core 6: Evolution Signature Script

Filed under: Linux — S. Kindley @ 4:28 am
Tags: ,

The Evolution email client has a feature to run scripts. I use this feature to automate my email sig. You can place static information like an old saying, plain text or html, or even run a program like fortune from it.

I created a folder in my home directory called “myscripts” and placed a file in it titled “sig”. I then edited the file and placed this information it it. You’ll have to complete the divs and pres. I left out the left and right charcters so this would print to the page correctly:

echo “div– /div”
echo “pre”
/usr/bin/fortune -s
echo “/pre”

The -s switch only uses short Fortune cookies as opposed to some that are paragraphs in length. You could also pick fortune cookies from specific categories by modifying the command. So to choose cookies from the “linux” category the line would look like:

/usr/bin/fortune linux -s

Once you have the file they way you want it make the file executable by issuing:

chmod +x

Next open Evolution and choose:

Edit>>Preferences>>Composer Preferences>>Signatures>>Add Script

once you have named the Sig and chose the script from it’s location click “OK” and compose a new message. You should see your new scripted signature at the bottom of the email.



  1. I know this is a really old post, but thanks to your script (and my little mods) I now have a signature in Evolution generated by Fortune.

    Many thanks,

    Comment by Jonathan Dlouhy — December 6, 2015 @ 5:26 pm | Reply

    • You’re welcome. Most of what I’ve published is still basic stuff that applies still today.

      Comment by S. Kindley — December 6, 2015 @ 5:49 pm | Reply

      • Here’s my little mod;

        /usr/bin/fortune /home/dlouhy/sig.txt

        I have a “sig” file I created with “strfile” to make it compatible with fortune, so the little script just calls a random signature I have stored in the “sig” file. So your post got my poor little brain working and I thank you again for it. I’m assuming you know all about “strfile” and generating a text file, but if not I can post what I did for your perusal.

        Comment by Jonathan Dlouhy — December 6, 2015 @ 5:57 pm

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at

%d bloggers like this: