Ah, mutt -- making the world smaller again.


On 2001.10.26, in <[EMAIL PROTECTED]>,
        "Jeremy Hankins" <[EMAIL PROTECTED]> wrote:
> 
> First of all, I'd like to see the hostname portion of the Message-ID in
> the index (assuming there is one, of course).  I find that quite useful
> on occasion (e.g., mail from root crontabs from a cluster of machines
> all using a smarthost -- the message id is an easy way to tell which

I'd recommend setting the MTA to pass mail from root literally, and
setting each machine's root GECOS in /etc/passwd to "kimbark root",
etc., but anyway....


> host the message is from).  Unfortunately, I haven't been able to find a
> way to do this.  I guess I could set up a procmail recipe to put it in
> the subject or something, but that seems rather ugly.

The first thing to come to mind is a procmail recipe to find the
hostname component of the m-id and store it in the X-Label: header.
X-Label is completely meaningless; it's only there for mutt to be able
to display arbitrary header information stored by procmail. :) Use %y
(or %?y?%y?, etc) to show it in the index_format.


> The other problem I have is that I keep a message archive mirroring
> the layout of my folders.  E.g, if there's a =foo & =bar, I also
> want an =Archive/foo & =Archive/bar that reflect the past contents
> of those folders.  Since I use procmail, the obvious solution (which
> I'm currently doing) is to send messages both to the folder itself
> and to the archive folder when sorting incoming mail.  Unfortunately
> that (a) leads to an ugly procmailrc, (b) completely loses state info
> (read/unread/replied, etc) and (c) fails to account for messages that
> are mis-sorted by procmail which I then manualy put into the right
> folder.

I do this, but instead of having two folders, =foo is a symlink to
=Archive/foo-`date +%Y%m` or somesuch. That makes the same folder
information occupy both namespaces, and I remake the symlinks each
month. It also actually *simplifies* the procmailrc, at the cost of
requiring a monthly rotation script.

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to