Conditional FCC

Ben Boeckel mathstuf at gmail.com
Fri May 1 14:19:42 UTC 2020


On Fri, May 01, 2020 at 15:36:10 +0300, Oleg A. Mamontov wrote:
> folder-hook foo 'set record = /dev/null'

You also need a catch-all folder-hook to reset it if you leave that
folder (as the setting is not scoped to your use of folders which
match). Basically, for things like this, every folder must hit some
folder hook for it.

    # No Fcc for emails composed from this folder.
    folder-hook secret 'set record = /dev/null'
    # Every other folder sets Fcc according to the account it belongs
    # to.
    folder-hook account1 'set record = ...'
    folder-hook account2 'set record = ...'
    folder-hook account3 'set record = ...'

--Ben


More information about the Mutt-users mailing list