dynamic sig based off imap folder

Michael Kjörling ba47c4919fb5 at ewoof.net
Sun Jan 14 16:08:43 UTC 2024


On 14 Jan 2024 15:47 +0000, from void at f-m.fm (void):
> What I'd like to have within mutt is for it to dynamically
> decide which signature file to use based on what imap
> folder the mail being replied to is in.

You can use a set of folder-hook stanzas to set $signature.

For example:

folder-hook . 'set signature=~/.signature'
folder-hook =mutt-users 'set signature=~/.signatures/mutt-users'
folder-hook =somewhere/else 'set signature=~/.signatures/somewhere-else'

The "folder-hook ." should come first and establishes a default; the
others effectively set overrides for the default.

-- 
Michael Kjörling                     🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



More information about the Mutt-users mailing list