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

Re: SLRN random-sig files, found this but stilll



s. keeling wrote on Fri, 24 Sep 2004 03:10:06 +0200:

> Incoming from Josef Oswald:
>> 
>> looking to set up random sig with SLRN I found this link:
>> 
>> http://lists.infodrom.org/debian-user-de/2001/03/att-0026/01-slrn-random-sig
>>  
>> At the end it says one need to create for each quote a single file, my
>> question is:
>> what name can I use and or does this scrip just take any files it finds
>> and uses them as signatures? 
> [snip]
>> $sigdir = $ENV{'HOME'} . '/.Sig';
> [snip]
>>     if(opendir(DIR, $sigdir)) {
>>         @randfiles = grep( !/^\./, readdir(DIR));
>>  
>>         if(open(RAND, $sigdir . '/' . $randfiles[rand($#randfiles)])) {
>
> That says to me it's going to take anything it finds in your ~/.Sig
> directory, except the two system dotfiles ".." and ".", or anything
> with a dot at the beginning of the filename.  "foo" and "bar" should
> be fine filenames for this, as would "foo.bar".
>
> Too bad you couldn't do something simpler (or maybe you can; I've
> never wanted to).  This is all it takes for mutt:

>
>   ----------------------------------------------
>   Note:  not tested!
>
>   ~/sh/mail_sig:
>
>       #!/bin/bash
>       cat ~/.signature
>       /usr/bin/fortune -s
>
>   .muttrc:
>
>       folder-hook . set signature="~/sh/mail_sig|"
>   ----------------------------------------------

Thanks  :-) 

I have no fortune installed here that's why I searched the net for
random signatures :-) 

Josef Oswald linux.os@chello.at
registered-linux-user # 134.818 at http://counter.li.org
-- 
If you ever get a e-mail, snail-letter, or fax asking you to transfer
lots of money, read all about the Nigerian Advance-fee money-scam at:
http://home.pacbell.net/jpaladin/index.html
http://www.scamorama.com/
http://www.mosquitonet.com/~gcn/nigescam.htm



Reply to: