On Tue, 2003-01-07 at 10:15, David McNab wrote:
> 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
>
>
Grabbed that from ya mate - but more pointedly, what I'm trying to do is
change the initial quote strings such as in this email - at the top,
where it says:
On Tue, 2003-01-07 at 10:15, David McNab wrote:
...THAT is what I want to change...(but I'm always mucking around with
different sigs and generation of sigs)
Cheers!
--
Tue Jan 7 10:25:00 EST 2003
10:25am up 2 days, 13:33, 6 users, load average: 0.72, 0.20, 0.21
kuhn media australia - kma.0catch.com
-------------------------------------
stephen kuhn - katherine kuhn - berkeley, nsw, au
email: [EMAIL PROTECTED] - [EMAIL PROTECTED]
icq: 5483808 - mobile: 0410-728-389
-PC/Mac/Linux/Consulting/eMarketing-
------------------------------------
* linux user: 267497 * rh 7.3+ *
------------------------------------
"A fractal is by definition a set for which the Hausdorff Besicovitch
dimension strictly exceeds the topological dimension."
-- Mandelbrot, _The Fractal Geometry of Nature_
_______________________________________________
evolution maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution