On 21 Jan 2010 02:03:34 -0800, in bit.listserv.ibm-main you wrote: >many of our batch jobs take their input from data sent us by means of e-mail >attachments. >Attachments are manually stored on PCs, uploaded to z/OS, then batch starts. >This is obviously >a manual and error prone process. Therefore I ve been asked to see if it's >possible to setup z/OS >in order to receive and handle e-mails and their attachments which will >eventually feed our batch. > >Having already SMTP for outbound e-mails, I started from it and, thanks to >Steve Comstock's SMTP >saga on ibm-main, I've been able to set it up to receive e-mails. But the TSO >RECEIVE seems not >to be able to handle attachments,unless I missed something.
I haven't tried this, but theoretically you should be able to run sendmail and a custom Perl script as a local delivery agent to accomplish this function. At our shop we run sendmail under Unix System Services to send outbound mail. We don't use sendmail for incoming mail, but I don't see any reason why that won't work. This is probably the easy part. The harder part would be processing the incoming mail, stripping out attachments and saving them to the Unix System Services file system. Perl's CPAN site has a variety of packages for processing MIME-format mail. You could write a Perl script to accept an e-mail message and then use some of these packages to perform the extraction of attachments and save them to the HFS environment. As a final action, the script could then copy the attachment(s) to the native z/OS file system. This script would then be defined to sendmail as the local delivery agent. I wouldn't think this project would take very long, and could probably work fairly well. Eric -- Eric Chevalier E-mail: [email protected] Web: www.tulsagrammer.com Is that call really worth your child's life? HANG UP AND DRIVE! ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

