Handling multiple From addresses
Jan Eden
tech at eden.one
Tue Sep 6 07:26:24 UTC 2022
On 2022-09-05 19:16, Ofer Inbar wrote:
> What I did for this was select a few esc-capital hotkey combos
> and define macros like this in my muttrc:
>
> macro generic \eF ":source ~/.mutt/headers.f...\r"
> macro generic \eH ":source ~/.mutt/headers.h...\r"
>
> And so on. (I replaced the actual filenames with "...")
>
> Each .mutt/headers... file looks somewhat like this:
> ----------------------------------------------------------------------
> unmy_hdr *
> my_hdr X-URL: ...
> my_hdr From: Ofer Inbar <cos at somedomain...>
> set status_format="-%r- %f: cos at somedomain ---[Msgs:%?M?%M/?%m%?n?New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%l]---(%s%?S?/%S?)-%>-(%P)---"
> set signature="..."
> ----------------------------------------------------------------------
>
> So in the index I can hit esc-F, esc-H, etc., and it loads the set of
> headers I want, and also sets my status line to show me which header
> set I currently have loaded.
Thank you! This is exactly what I needed. I tweaked your version a bit
to use the standard parameters for setting the required values:
set from="xyz at eden.one"
set pgp_default_key = '0x20F7FHD80EC4C17294434A0220D37B3CE755FE8A'
set status_format="-%r xyz at eden.one: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]---(%s/%S)-%>-(%P)---"
unmy_hdr *
my_hdr Bcc: tech at eden.one
Thanks again,
Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20220906/357859f0/attachment.asc>
More information about the Mutt-users
mailing list