Managing identities without suspending Mutt

Cameron Simpson cs at cskk.id.au
Thu Nov 12 21:09:14 UTC 2020


On 11Nov2020 09:11, Gregory Heytings <ghe at sdf.org> wrote:
>Thank you for your answer!  But this does not answer my question: I 
>know that it is possible to manage multiple identities that way, and I 
>was trying to find something more flexible.

You could put the post-the-script stuff in the script output.

    macro index A ':`shell-script-emitting-mutt-commands`<enter>'

Then your shell script can run your menu selection of identity (use 
/dev/tty for the output here, since stdout will be going back to mutt) 
and then have it write whatever you like to mutt, for example an 
instruction to source an identity setup file.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Mutt-users mailing list