On Tue, 2003-01-07 at 11:43, Stephen Kuhn wrote:
> I just realise this as well - after I upgraded to 1.2.1 I really didn't
> look around much - just was grateful that my mail was alive and kicking
> - and being that I already created a script to generate my "personal"
> sigs, this is even better for my clients!
> 
> Now if I can just figure out how to change the quoting strings to
> something more personal - any insight?
> 
> Cheers!

Here's my Python script, which reads a file of quotes (one quote per line),
and randomly selects one. Note that Evolution needs '<br>' tags for line breaks.


#!/usr/bin/python

# change this to point to your file of quotes
aff_file = "/path/to/my/quotes/file.txt"

import string, random

# hack this at will
print "---<br>"
print "Cheers,<br>"
print "David<br>"
print "---<br>"
print "<br>"
print "Today's Affirmation (selected automatically just for you):<br>"
print "<br>"

# cryptic python stuff which pulls a line from a text file
# at random
affs = file(aff_file).readlines()
aff = affs[int(random.random() * len(affs))].split("\n")[0]

# print the randomly selected line
print aff



_______________________________________________
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution

Reply via email to