Re: Omitting dum[my|b] messages when converting archives

1999-07-19 08:14:12
On Fri, 16 Jul 1999, Earl Hood wrote:

On July 16, 1999 at 22:05, John Stumbles wrote:

    Pardon me if this has already been answered 1000 times before but
I can't find from the MHonArc documentation or FAQ (and the mailing list
archive is currently down) how to do this ...

Our server inserts into each mail folder a dummy message entitled: 

I would rather like to be able to exclude this from my mail archives!

The only thing MHonArc supports for selective omission is support for
the "no-archive" flag in message headers (v2.4.0) via the CHECKNOARCHIVE
resource.  If you need something more sophisticated, you have to
create your own preprocessor, or use something like Procmail, to
massage the data before passing to MHonArc.

If your server included the no-archive flag, the solution is simple.

Sadly not - <sample>

From MAILER-DAEMON Mon Jul 19 13:22:20 1999
Date: Mon, 19 Jul 1999 13:22:20 +0100 (BST)
From: Mail System Internal Data 
X-IMAP: 0932386940 0000000000
Status: RO

This text is part of the internal format of your mail folder, and is not
a real message.  It is created automatically by the mail system software.
If deleted, important folder data will be lost, and it will be re-created
with the data reset to initial values.

        Actually I think the message is created by pine, but in any case
it's done when I save messages to a folder so procmail wouldn't help.

        I could write a perl filter to spot and excise such messages
before MHonArc sees them, but since such a script would have to do the
same parsing of messages that MHonArc does it would seem logical to do it
in one place. It would seem that the mechanism you have implemented to
ignore messages with the no-archive flag set would be the candidate for me
to look at. I am running 2.2.0 so I shall have to upgrade first, then I
will have a look at your code (when I get a Round Tuit :-). Are you
interested in incorporating such a change into the main body of MHonArc
(if I can do it hygenically ;-) ?

[my other query]
Check the DEFINEVAR resource.
thanks, I'll try that


John Stumbles                                      
I.T. Services Centre,   University of Reading 
          Press any key to continue or any other key to quit.