<<< Date Index >>>     <<< Thread Index >>>

(Auto-)extracting forwarded mail



I have a mail address at work which is bound to a Windws/Outlook
server that I can't access directly from my own machine, only through
webmail. 
I have set up an auto-forwarding filter at the server, so I get all
the mail to my regular box, but all the mails look as if they are from
me.

Is there a way to automatically remove the outer message and only see
the original message when it arrives in my inbox, e.g. through
procmail or something?
What about encodings, headers, etc - are there things to be aware of
there? If I just remove everything up to where the original message
begins, it appears in the index with a date in feb 1970 and with the =
line dividers in place. (Se below for full message, with addresses
masked).


what I would like to see is what the message looks like in the pager:


----- Forwarded message from Eyolf Østrem <xxxxxxxxxxxxxxx -----

Date: Sun, 9 Sep 2007 20:48:55 +0200
Subject: FW: Test
From: Eyolf Østrem <xxxxxxxxxxxxxx>
To: eyolf@xxxxxxxxxxx
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.5


-------------------------------------------
From: Eyolf Østrem[SMTP:xxxxxxxxxxxxxxxxx]
Sent: Sunday, September 09, 2007 8:21:24 PM
To: Eyolf Østrem
Subject: Test
Auto forwarded by a Rule

And this is the test.

-- 
"A wizard cannot do everything; a fact most magicians are reticent to admit,
let alone discuss with prospective clients.  Still, the fact remains that 
there are certain objects, and people, that are, for one reason or another, 
completely immune to any direct magical spell.  It is for this group of
beings that the magician learns the subtleties of using indirect spells.
It also does no harm, in dealing with these matters, to carry a large club
near your person at all times."
                -- The Teachings of Ebenezum, Volume VIII


----- End forwarded message -----




#########################################################################
#          raw version of forwarded mail
#########################################################################



>From xxxxxxxxxxxxxx Sun Sep  9 20:50:05 2007
Return-Path: xxxxxxxxxxxxxxk>
Delivered-To: unknown
Received: from xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx by eyo with IMAP4; 09 Sep 2007
  18:50:05 -0000
<etc --- loads of headers deleted for brevity>
X-MS-TNEF-Correlator: 
Thread-Topic: Test
thread-index: AcfzEhKgr+Lo9bkQShGJVTx4yaxSAgAAAAS+
From: =?iso-8859-1?Q?Eyolf_=D8strem?= <xxxxxxxxxxxxxx>
To: <xxxxxxxxxxxxxxxxx>
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.5


-------------------------------------------
From: Eyolf =D8strem[SMTP:xxxxxxxxxxxxxxxxx]
Sent: Sunday, September 09, 2007 8:21:24 PM
To: Eyolf =D8strem
Subject: Test
Auto forwarded by a Rule

And this is the test.

--=20
"A wizard cannot do everything; a fact most magicians are reticent to =
admit,
let alone discuss with prospective clients.  Still, the fact remains =
that=20
there are certain objects, and people, that are, for one reason or =
another,=20
completely immune to any direct magical spell.  It is for this group of
beings that the magician learns the subtleties of using indirect spells.
It also does no harm, in dealing with these matters, to carry a large =
club
near your person at all times."
                -- The Teachings of Ebenezum, Volume VIII