<<< Date Index >>>     <<< Thread Index >>>

Re: Changing the signature depending on the mailbox



On 19/09/03 11.47, Klaus Umbach wrote:
> On Fre, Sep 19, 2003 at 11:30:48 +0200, Lukas Ruf wrote:
> > Klaus Umbach <Klaus.Umbach@xxxxxxxxxxxxxxxxxxxxxxxxx> [2003-09-19 11:26]:
> > > On Fre, Sep 19, 2003 at 11:11:35 +0200, Lukas Ruf wrote:
[snip]
> > > send-hook .* set signature="~/.sig"
> >             ^^
> > this one gets executed for EVERY eMail being created.  
> 
> I changed this now to folder-hook .* set signature="~/.sig" and now it
> works as I wanted :-)

folder-hook .* 'send-hook .* set signature="~/.sig"'
folder-hook INBOX.lanable 'send-hook .* set signature="~/.sig.lanable"'
folder-hook INBOX.work 'send-hook .* set signature="~/.sig.work"'

might be even better. Having both folder-hooks and send-hooks change
$signature only works until they are executed in the wrong order. 
To trigger this try to send (or at least compose, I think that is
enough) a message to mutt-user while in INBOX.work and then another
message to somewhere else. The second message will have .sig.mutt as
signature, since the 'folder-hook INBOX.work ...' does not get
executed untill you leave the INBOX.work folder and reenter. Or at
least that's what my experience with mutt makes me believe.

/dossen
-- 
Common sense is the collection of prejudices acquired by age eighteen.
                -- Albert Einstein

Attachment: pgpSTR1BAuDNj.pgp
Description: PGP signature