Re[2]: Changing the signature depending on the mailbox
Hello,
>> > > send-hook .* set signature="~/.sig"
[...]
Unrelated here, but you might want to look at
http://homepages.ihug.co.nz/~trmusson/programs.html#sgrotum
It is swell program for handling signatures.
For what it is and how it works look at my FAQ,
http://www.tyskyshop.com/sgrotum-faq.html
HTH,
-Shantanu
>> > ^^
>> > 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 :-)
ML> folder-hook .* 'send-hook .* set signature="~/.sig"'
ML> folder-hook INBOX.lanable 'send-hook .* set signature="~/.sig.lanable"'
ML> folder-hook INBOX.work 'send-hook .* set signature="~/.sig.work"'
ML> might be even better. Having both folder-hooks and send-hooks change
ML> $signature only works until they are executed in the wrong order.
ML> To trigger this try to send (or at least compose, I think that is
ML> enough) a message to mutt-user while in INBOX.work and then another
ML> message to somewhere else. The second message will have .sig.mutt as
ML> signature, since the 'folder-hook INBOX.work ...' does not get
ML> executed untill you leave the INBOX.work folder and reenter. Or at
ML> least that's what my experience with mutt makes me believe.
ML> /dossen
--
Best regards,
shantanu