How do I "unforward" mail, was RE: How do I point a mail client at Microsoft outlook?

Mikkel L. Ellertson mellertson at gmail.com
Thu Jul 21 21:37:14 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/20/2011 11:45 AM, Michael Hennebry wrote:
> On Wed, 20 Jul 2011, Mikkel L. Ellertson wrote:
> 
>> I guess I did not see it as complicated. But this was before you
>> said the message was base 64 encoded. But I would use a sed script
>> file, not the command line.
>>
>> Remove the forwarding header by matching the start/finish as an
>> address range. Delete that range.
>>
>> For me, it would be:
>>
>> /Delivered-To:/,/-------- Original Message --------/d
>>
>> You may need s@^> @@ if you get "> " added when forwarding messages.
> 
> Mostly, I don't have an -------- Original Message -------- marker.
> For example:
<------------------------[snip]----------------------->
> 
I forgot to mention that if the mail is in one big file, it can be
split using formail. It will also do some headers. You will have to
check the docs to see how much of the work it will do for you. I
have never used it to strip forwarding headers.

Mikkel
- -- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4onAMACgkQqbQrVW3JyMRDIACbBEZ3eqbYyGrovsDpOWXDTV/q
ZBIAn090imuHMPBJCcndnlocpfXDWbPw
=41gi
-----END PGP SIGNATURE-----


More information about the users mailing list