Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

automating attachment processing

Status
Not open for further replies.

eanda10

Programmer
Apr 9, 2002
141
US
I am running qmail on a RH 8.0 server and I am looking for a way that when emails come into a particular email account the files get seperated and dumped into a directory so I can then program my db to process that file.


Thank you
 
Further to the above you will need to make an entry in the aliases file as well so as to pass the email on to the script, sample below:

test: |"/usr/local/bin/unmime"

Another option is to use munpack (part of the mpack package), an aliases entry like this should do it for you:

test1: |"/usr/local/bin/munpack -C /var/tmp/MIME"

The paths are as I use it, you may have to change to suit your application and installation.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top