unset folder-hook
Ed Blackman
ed at edgewood.to
Mon Jul 17 02:03:01 UTC 2023
On Thu, Jul 13, 2023 at 09:44:30AM -0500, Ranjan Maitra wrote:
> On Thu Jul13'23 02:10:02PM, Francesco Ariis wrote:
> > In my .muttrc I have:
> >
> > folder-hook sent "set something foobar"
> > folder-hook !sent "set something something_else"
> >
> > maybe you can use it too in your setup?
>
> What if I have three sets of folder hooks in addition to the default? Also, can I not just revert the !sent (in your case) to the default, without setting everything else? I wonder if there is be a way to do the hooks only for a specific set of folders and nothing else.
In my .muttrc I have:
# Set $strict_threads in large mailboxes (which are likely to have duplicated subjects)
folder-hook . set strict_threads=no
folder-hook =sent set strict_threads=yes
folder-hook =.archive* set strict_threads=yes
The "." applies to every folder, and sets a default. The last two change the setting for a specific folder, and a set of folders matching a regex.
--
Ed Blackman
More information about the Mutt-users
mailing list