Best way to automatically copy out attachments from an email

m.roth at 5-cent.us m.roth at 5-cent.us
Wed Jan 12 19:16:08 UTC 2011


Matty Sarro wrote:
> As of now here is my situation:
> I am working on a system to aggregate IT data and logs. A number of
> important data are gathered by a third party system. The only
> immediate way I have to access the data is to have their system
> automatically email me updates in CSV format every hour. If I set up a
> mail client on the server, this shouldn't be a huge issue.
>
> However, is there a way to automatically open the emails, and copy the
> attachments to a directory based on the filename? Kind of a weird
> project, I know. Just looking for some ideas hence posting this on two
> lists.

Well, they are presumably in std. MIME format, so you can strip it off,
maybe with a filter either in your mail tool, or in the delivery system.
procmail comes to mind.

          mark




More information about the redhat-list mailing list