On Sat, Nov 24, 2001 at 11:58:04PM -0500, Harold Bibik wrote: > On Sat, Nov 24, 2001 at 08:17:43PM +0100, Elimar Riesebieter arranged the electrons >something like this: > > > > Just another quetion: > > Is there a possibility to tell mutt to coose the signature randomly > > out of a directory? > > I use a sig generator called makesig, a perl script that will choose a > random quote from a given file, add it to your chosen sig and stick > it a the bottom of your emails
Here's a shellscript someone posted some time back, I just began using it the other day (when, after an OS upgrade the hack I"d been using for years decided to no longer work). I would expect it's a lot more lightweight than a perl script: #!/usr/bin/ksh # from mutt mailing list... { typeset afile set -A allsigs `cd ~/.sigs;ls -a sig[0-9]*` (( afile = $RANDOM % ${#allsigs[*]} )) cat ~/.sigs/${allsigs[$afile]} } Drop this in a file somewhere, make it executable, name it 'randisg' (or whatever you like, really), set up the signature in mutt to be "/path/to/randsig |" and voila! Of course, you also need a set of files in a directory (in this case it's "/.sigs") each of which contains one signature. -- ---- Fred Smith -- [EMAIL PROTECTED] ------------------------ ---- Do you not know? Have you not heard? The LORD is the everlasting God, the Creator of the ends of the earth. He will not grow tired or weary, and his understanding no one can fathom. ----------------------------- Isaiah 40:28 (niv) -----------------------------