Koozali.org: home of the SME Server

extract attachments from mail in a mail folder

Offline commanda

  • **
  • 30
  • +0/-0
    • http://swafl.org (not smeserver)
extract attachments from mail in a mail folder
« on: August 20, 2005, 03:29:00 AM »
My sme-server at work, daily sends me several emails with zip attachments. The attachments are mysql dumps and zip archives of a php application.

My webmail filters sort this mail into a seperate folder.

What I want to do is run a cron job on this folder to seperate the mail attachment from the mail, and save it in another seperate folder. It's not necessary to actually unzip it.

Anybody have any suggestions on how to accomplish this?

Amanda
...

Offline commanda

  • **
  • 30
  • +0/-0
    • http://swafl.org (not smeserver)
extract attachments from mail in a mail folder
« Reply #1 on: August 20, 2005, 03:30:33 AM »
Should clarify;
running sme-server (6.0.1-01) at home as well.

Amanda
...

Offline commanda

  • **
  • 30
  • +0/-0
    • http://swafl.org (not smeserver)
extract attachments from mail in a mail folder
« Reply #2 on: August 20, 2005, 11:40:36 AM »
It's alright, more googling turned up the answer.

uudecode.

And even better, it's already installed.

Amanda
...

Offline kruhm

  • *
  • 680
  • +0/-0
extract attachments from mail in a mail folder
« Reply #3 on: August 21, 2005, 02:51:18 PM »
lol, glad we could help