On Apr 2, 2008, at 21:49, Volker Kuhlmann wrote:
Is there a command line program which can extract the first attachment, or even the first attachment of a given type? Reading stdin and writing
I don't know of a ready-made program that does it... but I have written a couple of my own variants on that theme using Python's email module which is quite good at parsing a message and handing you some data structures that allow you slice/dice it quite cleanly.
http://docs.python.org/lib/module-email.html -- Jim Tittsler http://www.OnNZ.net/ GPG: 0x01159DB6 Python Starship http://Starship.Python.net/crew/jwt/ Mailman IRC irc://irc.freenode.net/#mailman
