#3489: user-defined settings are overriden by /etc/Muttrc
------------------------+----------------------
Reporter: antonio@… | Owner: mutt-dev
Type: defect | Status: new
Priority: trivial | Milestone:
Component: mutt | Version: 1.5.21
Resolution: | Keywords:
------------------------+----------------------
Comment (by kevin8t8):
(Sorry I know this bug is two years old. I don't have a frame of
reference for any discussion that may have taken place before opening this
bug. Please enlighten me if my response is not helpful.)
Each invocation of ''hdr_order'' appends more headers to mutt's "header
order" list. If a header is already in the list, then it is ignored in
subsequent ''hdr_order'' commands.
The recommended solution is to put ''unhdr_order *'' before your
''hdr_order'' command. This will empty the list so you can start fresh in
your .muttrc:
{{{
unhdr_order *
hdr_order from date to cc subject
}}}
Alternatively, if you don't mind your specified headers coming after other
system muttrc defined ones, you can use
{{{
unhdr_order from date to cc subject
hdr_order from date to cc subject
}}}
which will remove and then append those headers to the end of the order
list (at least preserving the order of them.)
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3489#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent