Hi there,
Is there a way in procmail to extract certain headers (eg. Return Path:,
Content
Type: etc..) from a mail message while keep the body of the message intact ?
Say for example that I have the following message within the --'s:
-----
From calvani(_at_)pha(_dot_)jhu(_dot_)edu Sat Sep 26 12:00:51 1998
Return-Path: <calvani(_at_)pha(_dot_)jhu(_dot_)edu>
Received: from aquila.pha.jhu.edu by violet.pha.jhu.edu (SMI-8.6/SMI-SVR4)
id MAA06222; Sat, 26 Sep 1998 12:00:51 -0400
Received: by aquila.pha.jhu.edu (SMI-8.6/SMI-SVR4)
id LAA16083; Sat, 26 Sep 1998 11:53:23 -0400
Date: Sat, 26 Sep 1998 11:53:23 -0400
From: calvani(_at_)pha(_dot_)jhu(_dot_)edu (Humberto Calvani)
Message-Id:
<199809261553(_dot_)LAA16083(_at_)aquila(_dot_)pha(_dot_)jhu(_dot_)edu>
Content-Type: text
Apparently-To: calvani(_at_)pha(_dot_)jhu(_dot_)edu
content-length: 5
test
-----
And I'm just interested in filtering via procmail the following information out
the e-mail and appended it to a file:
------
Date: Sat, 26 Sep 1998 11:53:23 -0400
From: calvani(_at_)pha(_dot_)jhu(_dot_)edu (Humberto Calvani)
Message-Id:
<199809261553(_dot_)LAA16083(_at_)aquila(_dot_)pha(_dot_)jhu(_dot_)edu>
Content-Type: text
Apparently-To: calvani(_at_)pha(_dot_)jhu(_dot_)edu
content-length: 5
test
-------
In other words filtering out the Return Path, Received: etc.. Can this be
specified at the beginning of recipe somehow (that is not using stream editing
using by "sed" for example)?
Thanks in advance!!
Humberto Calvani