On Sun, Feb 07, 1999 at 03:29:57PM +0000, Raimar Falke wrote:
> My signatures are selected randomly and are english or german. If 
> I write a mail to a persion, who don't understand english I have to remove
> the english one and insert a new german one. You can imagined this choice it
> not randomly anymore. 
> 
> So my question is: is it possible to gave the signature-program more info,
> for example the recipient-address?

Yes, see "send-hook" in the manual. But as I just did that myself, I may
just add my solution here:

# Try to localize .signatures
#default to english
send-hook .               'set signature="~/bin/randomsig.pl .e|"'

# Mails to users in the local host
send-hook '!~C @'         'set signature="~/bin/randomsig.pl .d|"'

# If all recipients are from .de
send-hook '^~C .de'       'set signature="~/bin/randomsig.pl .d|"'

# Mailinglists again, are english :)
send-hook '~l'            'set signature="~/bin/randomsig.pl .e|"'

CU,
    Sec
-- 
If architects built buildings like programmers build programs,
the first woodpecker to come along would destroy civilization.

Reply via email to