How does procmail "write" a mail into a program? I have written a C++ code
that takes mail and extracts the attachments from it. I want to pass the
mail file as argument into this program. Is the script going to be something
| /path/to/program/extract $MAILDIR/new/mail
where "mail" is the file where all the mail goes into. Basically, here's the
idea of what I want to do:
1. Receive email
2. Detach attachment (image)
3. Run the attachment through another C program, which modifies the image
and saves it in a specific folder.
4. Take the modified image and attach it to an email that goes back to the
So far, I have the receive email part, and I've been trying to use the:
command to split the parts - (not working)
send the mail file directly into the program - (not working. I get this
procmail: Executing "/path/to program/extract,$MAILDIR/tmp/mail"
procmail: Error while writing to "/path/to/program/extract"
procmail: Rescue of unfiltered data succeeded
Please help.. I've been struggling with this process for 3 weeks :(
procmail mailing list Procmail homepage: http://www.procmail.org/