On Sun, Apr 28, 2002 at 08:19:19PM -0700, John Iverson wrote:

> Actually, it was me who was missing something.  I'm using "color
> index" to match my old addresses, not "color header".  So I'm
> coloring the matched messages in the index, rather than coloring
> the headers in the pager.  Sorry about that.

Nevertheless, you should be able to do both.

Firstly, if you have access to the machine handling your mail, you can put
something like this in virtusertable:

  [EMAIL PROTECTED]    youruser+%1

Then, something like this in .procmailrc for the user 'youruser' on that
machine:

  ENV_TAG=$1
  :0fh
  * ENV_TAG ?? .
  | formail -i "X-OldAddress: true"

Finally, something like this in your .muttrc:

  color index brightred black ~h ^X-OldAddress:

You could also highlight that header in the pager with:

  color header brightred black ^X-OldAddress:.*

You could even get funky and put the delivery address into the
X-OldAddress field.  The ENV_TAG would contain the mailbox part of the
delivery address, and that will work even if you are BCC'd and even if the
delivery address doesn't show in the Received: headers.  Use this for the
formail line in the .procmailrc instead:

  | formail -i "X-OldAddress: "$ENV_TAG

Make sure you unignore the X-OldAddress header so that it's always visible
in the pager no matter what.

That's mostly off the top of my head, but you get the idea...

             2
Regards, /|/|
        /   |

Reply via email to