procmail
[Top] [All Lists]

Re: Trimming Groupwise forwarding headers

2003-12-22 09:06:35
On Dec 8, 2003, Paul Chvostek said:

->
-> Back in March of this year, there was some discussion of how to trim
-> headers generated by Novell Groupwise.  The discussion never never
-> reached a concise resolution, so I thought I'd contribute something for
-> the archives.

Paul-

I have discovered that there is one small problem with the rules you have
sent out for dealing with mail forwarded out of a Groupwise system.

There seems to be differences enough between messages originating from
within Groupwise and those sent to accounts on the system but originating
from somewhere external to it.

The end result is that external sent to an account and then forwarded out
and dealt with by procmail/formail with your rules is not handled
properly. My experience has been that these external messages are
forwarded successfully but once they reach Procmail/formail and are
munged, they are inserted into the INBOX with insufficient header
information to allow them to show up in the index

I am quite the novice when it comes to procmail and even more so with
formail but I can provide headers for internal and external message and
see if, perhaps, someone might want to weigh in on this and help me mod
the rules that Paul provided to solve this issue...

As you know, Groupwise forwards mail as attachements and the rules Paul
provided stripped out that attachement and reformed the headers with a
message ID and proper return address/subject.

So a message sent from an account on the Groupwise system and then
forwarded out to the procmail account would have an attachment with
headers like this (these message work great):

        Date: Mon, 22 Dec 2003 09:20:54 -0600
        From: "TCSU Admin" <admin(_at_)mail(_dot_)tcsu(_dot_)umn(_dot_)edu>
        To: "Mike Neuharth" <mjn(_at_)umn(_dot_)edu>
        Subject: testing
        Mime-Version: 1.0
        Content-Type: text/plain; charset=US-ASCII
        Content-Transfer-Encoding: 7bit
        Content-Disposition: inline


Where as a message sent from an account external to the Groupwise system
and then forwarded has headers more like this(these message don't index
properly after getting modded):

        Received: from garnet.tc.umn.edu
                by webmail2.tcsu.umn.edu; Mon, 22 Dec 2003 09:20:20 -0600
        Return-Path: <mjn(_at_)umn(_dot_)edu>
        Received: from localhost by garnet.tc.umn.edu with ESMTP for
            mjn(_at_)tcsu(_dot_)umn(_dot_)edu; Mon, 22 Dec 2003 09:20:20 -0600
        Date: Mon, 22 Dec 2003 09:20:20 -0600 (CST)
        From: mjn <mjn(_at_)umn(_dot_)edu>
        X-X-Sender: mjn(_at_)garnet(_dot_)tc(_dot_)umn(_dot_)edu
        To: mjn(_at_)tcsu(_dot_)umn(_dot_)edu
        Subject: testing
        Message-Id: 
<Pine(_dot_)GSO(_dot_)4(_dot_)50(_dot_)0312220920070(_dot_)3666-100000(_at_)garnet(_dot_)tc(_dot_)umn(_dot_)edu>
        MIME-Version: 1.0
        Content-Type: TEXT/PLAIN; charset=US-ASCII


The internal messages are handled properly by the Groupwise rules that
Paul was so kind to provide but, as I have said, those external messages
are not handled properly and result in problems with the index in my
account.

Anyone have advice for me on how to remedy this problem? Thanks very much
for listening...



Here is the Groupwise recipe that Paul wrote (minor modifications by me):

#Groupwise
:0
* ^Subject: Fwd:
* ^X-Mailer: Novell GroupWise Internet Agent
* ^Content-Type: message/rfc822
{
:0
* 1^0 B ?? ^Message-ID: \/.+
{ msgid="$MATCH" }

:0 E
* ^Message-ID: \/.+
{ msgid="$MATCH" }

:0 E
* 1^0 B ?? ^Return-Path:[^(_at_)]+@\/[^>]+
{ msgid="`date '+%Y%m%d%T'`(_dot_)$$(_at_)$MATCH" }

:0 E
* ^Return-Path:[^(_at_)]+@\/[^>]+
{ msgid="`date '+%Y%m%d%T'`(_dot_)$$(_at_)$MATCH" }

:0 fhw
| sed -e '1,/^$/ d'

:0 fhw
* ! ^Message-ID:
| formail -I"Message-ID: $msgid" -I"X-Mailer: TCSU Groupwise"

}
#Groupwise

--
_______________________________________________
Mike Neuharth
ADCS Technology Specialist
http://www.umn.edu/adcs
===============================================
E-Mail          : mjn(_at_)umn(_dot_)edu
Page Mail       : 6126486512(_at_)page(_dot_)metrocall(_dot_)com
_______________________________________________
"What is important, it seems to me, is not so much to defend a culture
 whose existence has never kept a man from going hungry, as to extract,
 from what is called culture, ideas whose compelling force is identical
 with that of hunger."  -Antonin Artaud

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>