On 2022-09-13 20:07, Robert wrote: > Hi there, > > On 2022-09-04 17:17, Jan Eden via Mutt-users wrote: > > - Can I define multiple From addresses to select them from a list? > > - Can mutt be configured to switch the default BCC address to a changed > > From address? > > - If there is only a single PGP private key for each address – is it > > possible to have that key selected automatically (or with a single > > keystroke) according to the current From address? > > I had the exact same problems and did a bit of an over-engineering approach: > my profiles are defined in a yaml file and a python script generates the > necessary (neo)mutt rc files. > > The details, as well as the python script are available here: > https://spacepanda.se/neomutt-pt7.html
Nice – I have a knack for over-engineering. :) Cos had already suggested a similar approach to your "tedious and annoying" version which I adapted (http://lists.mutt.org/pipermail/mutt-users/Week-of-Mon-20220905/003863.html) to manually select the desired identity. Using reply-hooks is a better solution, but unfortunately, they are executed too late in the composition workflow to change the Bcc header (http://mutt.org/doc/manual/#compose-flow). Some of my addresses have more than one recipient, so the correct Bcc header is crucial. Defining a message-hook works in most cases (if I open/view a message before replying to it), but sometimes I want to reply to a message right from the index after starting mutt. Do you have any suggestion on how to change the Bcc header automatically? Thanks, Jan
signature.asc
Description: PGP signature