Re: [Evolution] Quote Signatures



This script below produces my signature at the bottom using the homer_quotes.txt file. Its writtten in Python, just copy it to a file modify what you want and make it executable...

Mathieu

#!/usr/bin/python
                                                                                                                                
import string, random
                                                                                                                                
quote_file = "/home/mathieu/bin/signatures/homer_quotes.txt"
quote_intro = "Homer Simpson's brain says:"
                                                                                                                                
quotes = file(quote_file).readlines()
quote = quotes[int(random.random() * len(quotes))].split("\n")[0]
                                                                                                                                
print "<br>"
print "-------------------<br>"
print "<big><b>Mathieu Massé M.Sc.</b></big><br>"
print "<br>"
print "<small>"
print quote_intro
print "<br>"
print quote
print "</small>"

On Sun, 2003-10-05 at 05:12, mailinglists my-mail ch wrote:
I would do that using a bash script. A good point to start bash
programming is
http://www.linux.se/doc/HOWTO/Adv-Bash-Scr-HOWTO/index.html
 but maybe somebody here has already done something like that and sends
you a ready to go script.

/Tobi

Am Son, 2003-10-05 um 23.24 schrieb Ron Wilson:
> I am new to evolution previously used Outlook or Pegasus.  I want to be
> able to use a random quote taken from a quote file as a signature  both
> of my old products allowed this. How can I do the same in Evolution.
> Thanks 
> _______________________________________________
> evolution maillist  -  evolution lists ximian com
> http://lists.ximian.com/mailman/listinfo/evolution
_____________________________________________________________
Schlappe uebertragungsgrenze? http://my-mail.ch/?redirect=9904
Weine aus der Toskana! http://my-mail.ch/?redirect=1179

_______________________________________________
evolution maillist  -  evolution lists ximian com
http://lists.ximian.com/mailman/listinfo/evolution

-------------------
Mathieu Massé M.Sc.

Homer Simpson's brain says:
Remember that postcard Grandpa sent us from Florida of that alligator biting that woman's bottom? That's right, we all thought it was hilarious. But it turns out we were wrong. That alligator was sexually harassing that woman.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]