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@somedomain...>
> set status_format="-%r- %f: cos@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="x...@eden.one"
set pgp_default_key = '0x20F7FHD80EC4C17294434A0220D37B3CE755FE8A'
set status_format="-%r x...@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: t...@eden.one

Thanks again,
Jan

Attachment: signature.asc
Description: PGP signature

Reply via email to