On Fri, Feb 11, 2005, Kasper Haagensen <[EMAIL PROTECTED]> said: > Your ex. works, but what it does, is writing the email to a file, when i > try to parse it to a perl program, it just add the mail contents, in the > end of the perl program, and that was not the way i want it.
Sounds like you want to pipe it into your Perl program? dbmail-users -x '@yourdomain' -t '|/usr/local/bin/yourprogram' In this case, your perl program would read STDIN rather than a file. I would advise against trying to write each email to a file and then call the perl program on that file. It's a race condition to see if the perl program finishes processing the file before the next message arrives. MTA should not matter, btw, since we're working within DBMail. Aaron