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

Mikkel L. Ellertson mellertson at gmail.com
Wed Jul 20 12:46:22 UTC 2011


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

On 07/19/2011 11:33 AM, Michael Hennebry wrote:
> On Mon, 18 Jul 2011, Mikkel L. Ellertson wrote:
> 
>> For the mail you have, you could probably use sed to remove the
>> forwarding "boiler plate". Exactly how you will want to do it
>> depends on if the messages are in one big file, or separate files.
> 
> For a one-off, I think I'd use python before
> sed for something especially complicated.
> 
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.

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)

iEYEARECAAYFAk4mzh4ACgkQqbQrVW3JyMQ+VgCdGSPDzPaWTxjsVAmary7Gehy+
T9UAn1j08WJrnEqyKaqmiJAgPlCy5Cz+
=FXhv
-----END PGP SIGNATURE-----


More information about the users mailing list