On Tue, May 08, 2001 at 01:15:59PM +1000, Michael Lake uttered:
> Sometime ago someone posted (Jeff?) a script which you can set to run in
> muttrc that runs fortune and sets the output into your sig. From what I
> remember it wrote a sig to tmp and then used that. Have searched slug
> archives for that with keywords mutt, quote, sig but can't find it. Can't
> search woa at present or indeed slug again at moment as web is down, the
> UTS can't seem to resolve any sites. The rain?
That was me and I've pasted it in below. Someone else posted a far
more elegant one though... Note the switches on fortune that keep
them short (-s). There are also switches to not use the off-colour
fortunes (actually I think the Debian one requires you to explicitely
ask for off colour). Also you can limit the length to an arbitrary
number of lines as someone pointed out. Use the other ones posted,
though. Mine is ugly ugly ugly and bodgy bodgy bodgy. (But it works
so I won't be changing it in a hurry :)
#!/bin/sh
cat $HOME/.signature >/tmp/sig.simonr
/usr/games/fortune -s >>/tmp/sig.simonr
cat /tmp/sig.simonr
Then this line goes in your .muttrc. The non-obvious part is the pipe
at the END of the command.
set signature="/home/simonr/bin/sigchange.sh|"
--
Rev Simon Rumble Current physical location: London, UK
[EMAIL PROTECTED]
http://www.rumble.net
Polymer physicists are into chains.
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug