signature and alternates

Kevin J. McCarthy kevin at 8t8.us
Wed Apr 7 17:20:57 UTC 2021


On Wed, Apr 07, 2021 at 01:52:44PM +0100, Steve Karmeinsky wrote:
>The only thing not working properly is setting the signature back to 
>normal after replying to an alternate.

I didn't see how you overrode the signature, so I can only guess it's 
something like:

   reply-hook  .            "set signature=~/.sig-default"
   reply-hook  "~C alias1"  "set signature=~/.sig-alias1"
   reply-hook  "~C alias2"  "set signature=~/.sig-alias2"
   ...

It can be helpful to look at 
<http://www.mutt.org/doc/manual/#compose-flow> when adjusting these 
things.  Looking at that, you can see reply-hooks fire first, then 
send-hooks, and then three steps below the message and signature are 
generated.

So, replies not covered by one of the aliases will set the signature
back to default, but non-replies still need to reset back.

send-hooks can use the pattern !~Q to be invoked in the non-reply 
case, so you could try adding:

   send-hook  !~Q           "set signature=~/.sig-default"

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20210407/513532c1/attachment-0001.asc>


More information about the Mutt-users mailing list