You are not logged in.

#1 2005-09-12 07:57:04

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Little fortunes in evolution signatures Howto

Friends of fortune cookies are adviced to use a chronjob, that pastes a fortune into a file, and then use this file as masterpiece for further usage.
I only wanted to use fortune in my mail signature, and furthermore, wanted to have evolution handle them. Evolution's documentation still is incomplete, so I had to do some examination and trials. Here is how to make evolution add fortune cookies to your mail signatures.

When you want to add fortune cookies to a signature that should be used by the evolution mailing client, follow this steps:

· Create a bash-script.
Evolution will only read a signature file starting with "<pre>--" and ending with "</pre>" strings. So this is the kind of script you will need:

#!/bin/bash

printf "<pre>-- n"
echo "Something"
printf"n"
/usr/bin/fortune -s
printf "</pre>n"

· Save the script, and make it executable.
· Open evolution. Find Tools or Preferences  Settings  Editor settings  Signatures *. Use the button "Add script", and select your created script. Give it a speaking name, like "fortune-script".
· Now enter the settings of your mail account(s). In the signatures drop-done, you can select "fortune-script".

This is it:

--
Something

A homeowner's reach should exceed his grasp, or what's a weekend for?

* I use evolution in german environment, so I have to guess what the menues could be named in english. But I am sure you'll make it.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#2 2005-09-15 00:28:09

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: Little fortunes in evolution signatures Howto

I have found that this also works with kmail with a slight adjustment.

#!/bin/bash

echo "Something"
echo ""
printf"n"
/usr/bin/fortune -s

Save the file as Sig-script or something like that in your home directory and make it executable.  Open up kmail and click Settings => Configure Kmail

With identities highlighted, click modify => Signatures and select in the drop box "Output of command"

Navigate to your Sig-script and apply

If anyone knows how to change the font and boldness of the name I would be really interested.

Cheers


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#3 2005-09-15 04:55:10

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Little fortunes in evolution signatures Howto

Font and boldness of the name - have you tried to add some html tags?


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#4 2005-09-15 05:21:53

aikidoist72
Member
From: Australia
Registered: 2005-04-15
Posts: 63

Re: Little fortunes in evolution signatures Howto

I did try that but kmail issued an error trying to load the sig.  That is why I am a little stuck.


Sitting quietly
Doing nothing
The grass grows
And the flowers bloom
All by themselves

Offline

#5 2005-09-16 22:33:48

klapmuetz
Member
From: Germany
Registered: 2005-03-19
Posts: 75

Re: Little fortunes in evolution signatures Howto

HTML mails are evil!

:evil:  :!:


Hello girls, I like rock climbing, mountain biking and rafting! Write me!

Offline

Board footer

Powered by FluxBB