unset folder-hook
Ranjan Maitra
mlmaitra at gmx.com
Thu Jul 13 12:03:44 UTC 2023
I have a folder-hook set up which basically uses a particular email account when in a folder. I have it set up as:
set envelope_from_address="address at email.com"
set use_envelope_from=yes
set from = "address at email.com"
set realname = "Name, Real"
set forward_format = "[FW frm %a:%s]"
folder-hook . 'unset smtp_url'
folder-hook '(mutt|fedora|postfix|fetchmail|openbox)' 'set from =
email at address.com; set smtp_url="something"; set smtp_pass="somethingelse"; set envelope_from_address="email at address.com"; set use_envelope_from=yes; set from = "email at address.com"; my_hdr Bcc:; set forward_format = "[FW frm %a:%s]";set realname = "Real Name"; set ssl_force_tls = yes; set ssl_starttls = yes'
But I have noticed that when I go to another (default) folder (not in the list above), after one of the folders above (mutt, say), I still have the modified folder-hook settings go to the new folder.
How do I automagically revert back to the default setting when I am done visiting these special folders with folder hooks (such as mutt in the example above)?
Many thanks for your suggestions and best wishes,
Ranjan
More information about the Mutt-users
mailing list