Hi Rosemary:

The program you want is fortune-mod. It's available on the install disks from Mandrake. I run 10.1. Install that and then create a text file with your list of quotes ... In your fave text editor, create a file called "sig" or "quotes" or whatever ya want & enter the following:

%
Quote 1 ... %
Quote 2 ...

And so on. The quotes you want to enter just need to be separated by the "%" symbol.

To make this file something that the fortune program can work with, run the command that Josenildo provided earlier in this thread:

strfile /path/to/your/file
I run this as root, which may or may not be necessary ... or warranted. :) If everything is Ok, the above command will provide output like the following:

"sig.dat created"
There were xx strings.
Longest string: xx bytes
Shortest string: xx bytes

Now, as to how to get your mail program to work with all this: I don't know how to do it in Thunderbird, but I would assume it's similar to KMail which goes like this:

Settings - Configure KMail
Under Identities, highlight the email address you want to utilize fortune and click "modify" ... Under the signature tab check the box to "enable signature." Select "output from command" where it asks where to obtain signature text from ... Finally, where it asks you to specify command enter "fortune /path/to/your/quote/file" (without quotes).

Hopefully Thunderbird is setup similarly to Kmail ... If not, I'm sure someone will be able to help you ...

If memory serves, that's all ya need to do to get your random signature working. Hope that helps ... :)
Adam



Hi Adam

Thanks for those detailed instructions - always good for a newbie like me :-). I have a signature file which I use for Tbird so will alter it as suggested.

Thanks


Rosemary --

As you're using TBird and it doesn't accept scripts as Kmail or Evo, you'll have to do the following in order to get it working:

1. as it seems you already have a script, just make sure you know the right path to it
2. create an empty file ( mine's called sigout ) and save it
3. create another file (mine's called kronus), paste the info below and change the paths as necessary

*/2 * * * * /home/rosemary/path/to/your/script > /home/rosemary/path/to/the/sigout file

4. save it and issue the following command as user
$ crontab kronus

That is, if you saved it with that name.
It means that 'cron' will run your script every 2 minutes and redirect its output to the sigout file. Then, in Thunderbird (Edit, Account Settings) tell it to attach the sigout file.
I hope that's not too complicated.
Thanks should go to Chris Pollock and Margot.


Thanks guys, but I am feeling quite stupid about this as have not been able to work it out. Do I put the actual quotes into the script?

Thanks
--
Rosemary

Registered Linux User # 386597  http://counter.li.org

_***__***__***__***__***__***__***__***__***__***__***_

"A friend may well be a masterpiece of nature".  Emerson

____________________________________________________
Want to buy your Pack or Services from Mandriva? 
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to