On 14Sep2016 18:35, David Champion <d...@bikeshed.us> wrote:
I'd be going for the Python stuff, lacking your context.
See attached.
You can pipe a message into this program (within mutt or elsewhere):
| mutt-savefiles /tmp/foo

It will create a directory under /tmp/foo named for the message's
message-id, and store each attachment inside. Filenames are taken
from the MIME or generated sequentially if there is no filename.

Just an aside, now often do you encounter "/" in a Message-ID? It is legal, and has long discouraged me from the otherwise obvious and inuitive name-a-file-after-the-message-id.

#!/usr/bin/env python

That is very nice, even cleaner than I imagined it might be.

Cameron Simpson <c...@zip.com.au>

Reply via email to