[SPAM?] Re: [SPAM?] Re: [SPAM?] Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-14 Thread David Champion
* On 14 Sep 2016, Cameron Simpson wrote: > > Mutt is probably a poor match for the task because although it will decode > messages etc, all the saving is interactive. In particular, there's no API > for "iterating" over attachments, let along recursively. Agree. It's entirely doable, but not

[SPAM?] Re: Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-14 Thread Cameron Simpson
On 14Sep2016 18:35, David Champion 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

[SPAM?] Re: Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-14 Thread Luis Mochan
On Wed, Sep 14, 2016 at 04:12:48PM -0700, Are Troi wrote: > Hi All, > > Last night at a technical talk I lamented the loss around 5 years ago > from Fedora of command-line tools to extract email attachments from a > BASH script and a colleague told me Mutt can do this. > ... Maybe you could use

[SPAM?] Re: [SPAM?] Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-14 Thread Cameron Simpson
On 14Sep2016 16:12, Are Troi wrote: Last night at a technical talk I lamented the loss around 5 years ago from Fedora of command-line tools to extract email attachments from a BASH script and a colleague told me Mutt can do this. If you mean the MIME tools mpack and

[SPAM?] Can I use Mutt from Bash to extract attachments into an arbitrary directory?

2016-09-14 Thread Are Troi
Hi All, Last night at a technical talk I lamented the loss around 5 years ago from Fedora of command-line tools to extract email attachments from a BASH script and a colleague told me Mutt can do this. I installed Mutt, checked out the man pages, went through the documentation, spent an hour or