32
9
Using normal bash
tools (ie, built-ins or commonly-available command-line tools), is it
- possible, and
- how
to extract/save attachments on emails?
For example, say I have a nightly report which arrives via email but is a zip archive of several log files. I want to save all those zips into a backup directory. How would I accomplish that?
"normal bash tools" -- do you mean using only the functions built into bash (i.e. what you'll find in the bash man page) or do you mean, more generally, command line tools which you could add to a bash shell script? – Doug Harris – 2010-09-10T17:46:56.210
@Doug Harris - either.. if I can call
mail
and do this, or save the attachment elsewise, that's fine too :) – warren – 2010-09-10T17:47:49.477