<html><head></head><body>The identity macro does work, but it will not work for setting custom header in composing new emails as hdr is set before about sending emails.<br><br>I tried gpgme which does not seems to give me any option to select self encrypt key based on From: , but always use default key<br><br>Can you illustrate more on how to select signing key based on From: in gpgme? gpgme seems also only uses default key as sign as if you have multiple accounts and different for keys for each account.<br><br>Ryan<br><br><div style='font-size:10.0pt;font-family:"Tahoma","sans-serif";padding:3.0pt 0in 0in 0in'>
<hr style='border:none;border-top:solid #E1E1E1 1.0pt'>
<b>From:</b> tech-lists <tech-lists@zyxst.net><br>
<b>Sent:</b> July 27, 2019 3:55:07 PM UTC<br>
<b>To:</b> mutt-users@mutt.org<br>
<b>Subject:</b> Re: Composing ask From: address and arbitrary keys in PGP<br>
</div>
<br>
<pre class="k9mail">On Fri, Jul 26, 2019 at 05:12:08AM +0000, GTC@riseup.net wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">1. When composing messages, mutt ask To: or recipient adress and <br>Subject: and then go to editor. How to make mutt ask for <br>From: or sender address only and then go to editor?<br></blockquote><br>I use this, in muttrc:<br><br># my identities<br>macro compose v "<edit-from>^Uidentity_<Tab>" "Select from"<br><br>alias identity_a0 tech-lists <tech-lists@zyxst.net><br>alias identity_a1 someotheraddress <somethingelse@zyxst.net><br><br>[...etc...]<br><br>and use v then hit tab to get a selectable list. This selected when<br>about to send the email. I'm unsure what the proper name for that part<br>of mutt is.<br><br>I use gpgme which selects the signing key based on From:<br></pre></body></html>