> On 13Aug2009 22:25, dv1...@wayne.edu <dv1...@wayne.edu> wrote:
> | > > (1) Isn't my muttrc supposed to override /usr/local/etc/muttrc when
> | > > they conflict?
> | > 
> | > With mutt config files, there's no notion of conflicts, there cannot
> | > be. It reads them in line by line and remembers the setting internally
> | > somehow. This means they're always applied on top of one another.
> | 
> | Then, does mutt read /usr/local/etc/Muttrc after it reads ~/.muttrc?
> | 
> | I see that /usr.../muttrc defines a macro from \cb.  I also in my
> | home muttrc have made a macro from \cb, yet mutt remembers my macro and
> | doesn't remember my setting for hdr_order.
> 
> It _should_ read your muttrc last.
> Is it possibly that you are failing to _undo_ something that was set in
> /usr/local/etc/muttrc?

Maybe, I guess.

> Can you post all your hdr_order and associated lines?

Sure:

ignore * 
unignore from subject to cc bcc date user-agent x-user-agent x-mailer
hdr_order User-Agent: X-User-Agent: X-Mailer: Date: From: To: Cc: Bcc: Subject:

> And a copy of the lines you removed from the main muttrc.

OK.  These are lines 7-13 of /usr/local/etc/Muttrc, which I commented out:
--------------------------
ignore *

# ... then allow these through.
unignore from: subject to cc date x-mailer x-url user-agent

# Display the fields in this order
hdr_order date from to cc subject
--------------------------

On lines 19-22 one finds a macro (index,pager,attach,compose) bound to \cb.  In 
a file sourced by my muttrc (and located in my home directory), I have:

macro index \cb ":set index_format = '%Z %-3C %[%m/%d/%y]    %-30.30L  (%4.5c)  
   %-80.80s'"

Mutt uses my \cb macro, but appears to use the /usr/local/etc/Muttrc's setting 
for hdr_order and unignore.  Until I commented 7-13 of "system" Muttrc, nothing 
I did with hdr_order would take effect, and same for unignore as far as I can 
tell.  I noticed this when mutt would display User-Agent as the last thing in 
the header, contrary to my instructions.
-gmn





Reply via email to