<<< Date Index >>>     <<< Thread Index >>>

Re: Sorting headers in message viewer ?



On 2007-10-19 19:16 +0000, Dave Evans wrote:
> On Fri, Oct 19, 2007 at 07:53:25PM +0200, Andre Majorel wrote:
> > It would be nice if there was a way to have the headers sorted (in
> > case-insensitive alphabetical order) in the message viewer.
> > 
> > It's something I regularly need when I'm looking for headers to
> > distinguish between list posts and list administrivia in my procmail
> > rules. It's sufficiently cumbersome to do with shell commands that I
> > wish Mutt could do it.
> 
> Maybe you're looking for the hdr_order/ignore/unignore settings?
> 
> Something like
> 
>       unignore *
>       ignore Received
>       hdr_order Date From To Cc Bcc Subject
> 
> might be a useful start for you.  Probably not a good idea to
> use those sort of settings all the time, but might help you do
> the "spot the difference" for building procmail rules.

Collecting the names of all the headers in either email, sorting
them and feeding them to hdr_order is as time-consuming as the
shell hackery I'm doing now and it's more error-prone.

Now, if hdr_order was able to intepret lack of an argument as
"sort everything in alphabetical order"... Or perhaps a trailing
"*" as "sort any other headers in alphabetical order"...

Incidentally, hdr_order seems to be inoperative on my
installation, but I'll worry about that if/when I have use for it.

Thanks for trying to help. :-)

-- 
André Majorel <URL:http://www.teaser.fr/~amajorel/>
Do not use this account for regular correspondence.
See the URL above for contact information.