procmail
[Top] [All Lists]

trimming forwarded messages

2000-11-16 19:54:41
Hi--

Right now I'm trying to clean up messages going to my pager.  My users are 
really only familiar with groupwise, so I'm forwarding their gwise messages to 
a pine account, where I am trying to use procmail to strip out unnecessary 
header stuff so that I can get the message within the 200 character limit of my 
pager.  Judging from the archives this is a recurring problem.  Below is the 
recipe I'm using to try and shorten the headers: 

:0 fhW
   | formail -k -X From: -X Subject

:0 c

 *^From:(_dot_)*mygroupwise(_at_)gwise(_dot_)louisville(_dot_)edu
        ! 12345678(_at_)epage(_dot_)arch(_dot_)com


I know I'm doing something fundamentally wrong in the above script, because 
it's not forwarding stuff that's been formail-ed, but I'll figure it out.  The 
bigger problem, however, is that the messages forwarded from Groupwise keep the 
original as attachments, so I'm trying to figure out how to scrub the forwarded 
message so that only the From:, Subject: and body go to my pager.


Here's what a forwarded groupwise message looks like when saved from pine.  
Thanks for any help you might render, and my preemptive apologies if this 
question is too simple:

<!--StartFragment-->From mark(_at_)louisville(_dot_)edu Thu Nov 16 09:52:53 2000
Return-Path: <mark(_at_)louisville(_dot_)edu>
Delivered-To: mecran01(_at_)athena(_dot_)louisville(_dot_)edu
Received: from erouter1.it-datacntr.louisville.edu
    (erouter1.it-datacntr.louisville.edu [136.165.1.15])
by athena.louisville.edu (Postfix) with ESMTP id 60349BA6
for <mecran01(_at_)athena(_dot_)louisville(_dot_)edu>; Thu, 16 Nov 2000 
09:43:01 -0500 (EST)
Received: from gwise.louisville.edu (gwise.louisville.edu [136.165.253.148])
by erouter1.it-datacntr.louisville.edu (Postfix) with SMTP id
    469DB22E12
for <mecran01(_at_)athena(_dot_)louisville(_dot_)edu>; Thu, 16 Nov 2000 
09:43:27 -0500 (EST)
Received: from gwgate-Message_Server by gwise.louisville.edu
with Novell_GroupWise; Thu, 16 Nov 2000 09:43:26 -0500
Message-Id: <sa13ac3e(_dot_)012(_at_)gwise(_dot_)louisville(_dot_)edu>
X-Mailer: Novell GroupWise Internet Agent 5.5.3.1
Date: Thu, 16 Nov 2000 09:43:15 -0500
From: "Mark E. Crane" <mark(_at_)louisville(_dot_)edu>
To: <mecran01(_at_)athena(_dot_)louisville(_dot_)edu>
Subject: Fwd: procmail and checking sendmail's second received header..
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="=_2D76099E.D0B1EFAB"


    [ Part 1.1, Text/PLAIN  3 lines. ]
    [ Unable to print this part. ]

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 10pt Times New Roman; MARGIN-LEFT: 2px">
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><A 
href="http://www.louisville.edu/~mecran01";>http://www.louisville.edu/~mecran01</A><BR></DIV></BODY></HTML>

    [ Part 2: "Included Message" ]

Received: from erouter0.it-datacntr.louisville.edu
by gwise.louisville.edu; Thu, 16 Nov 2000 02:27:57 -0500
Received: from nets5.rz.rwth-aachen.de (nets5.rz.RWTH-Aachen.DE
    [137.226.144.13])
by erouter0.it-datacntr.louisville.edu (Postfix) with ESMTP id
    53D9D24D39
for <mark(_at_)louisville(_dot_)edu>; Thu, 16 Nov 2000 02:27:56 -0500 (EST)
Received: from nets2.rz.RWTH-Aachen.DE (nets2.rz.RWTH-Aachen.DE
    [137.226.144.243])
by nets5.rz.rwth-aachen.de (8.10.1/8.10.1/7) with ESMTP id
    eAG793m03935;
Thu, 16 Nov 2000 08:09:03 +0100 (MET)
Received: from nets5.rz.rwth-aachen.de (nets5.rz.RWTH-Aachen.DE
    [137.226.144.13])
by nets2.rz.RWTH-Aachen.DE (8.9.1a/8.9.1/1) with ESMTP id IAA16079
for <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>; Thu, 16 Nov 2000 08:08:49 
+0100 (MET)
Received: from triple.des.encrypted.net 
(root(_at_)triple(_dot_)des(_dot_)encrypted(_dot_)net
    [206.52.3.29])
by nets5.rz.rwth-aachen.de (8.10.1/8.10.1/7) with ESMTP id
    eAG78mm03886
for <procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>; Thu, 16 Nov 2000 08:08:49 
+0100 (MET)
Received: (from callas(_at_)localhost)
by triple.des.encrypted.net (8.11.0/8.11.0) id eAG78li15715
for procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE; Thu, 16 Nov 2000 02:08:47 
-0500 (EST)
From: Maria callas <callas(_at_)encrypted(_dot_)net>
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: procmail and checking sendmail's second received header..
Message-ID: 
<20001116020846(_dot_)E12344(_at_)triple(_dot_)des(_dot_)encrypted(_dot_)net>
Reply-To: callas(_at_)encrypted(_dot_)net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Free-Advice: Silly string is NOT nasal spray!
Sender: procmail-admin(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Errors-To: procmail-admin(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
X-BeenThere: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
X-Mailman-Version: 2.0rc1
Precedence: bulk
List-Help: 
<mailto:procmail-request(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE?subject=help>
List-Post: <mailto:procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE>
List-Subscribe: <http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail>,
<mailto:procmail-request(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE?subject=subscribe>
List-Id: discussion of the procmail program <procmail.lists.RWTH-Aachen.DE>
List-Unsubscribe: <http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail>,
<mailto:procmail-request(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE?subject=unsubscribe>
List-Archive: <http://MailMan.RWTH-Aachen.DE/pipermail/procmail/>
Date: Thu, 16 Nov 2000 02:08:47 -0500

Hola

generic message body text...


http://www.louisville.edu/~mecran01
<Prev in Thread] Current Thread [Next in Thread>