Hi,<br><br>I'm using mime-construct to send fax files (from an Asterisk server).<br>mime-construct is using exim4 to have its job done.<br><br>Trouble is I'm not pleased with the way I can link mime-construct and exim4 jobs (whenever an exim4 job fails, mime-construct exit code is still 0) : all I'm doing at the moment is reading exim4 and syslog log files for events matching.<br>
<br>In syslog, I've got :<br>2008-03-03 10:53:02 hostname emailfax: sending file foo.tiff to <a href="mailto:bar@example.com">bar@example.com</a> produced 0 exit code<br><br>In exim4, I've got :<br>2008-03-03 10:53:02 1JWHdV-0006g8-1u <= <a href="mailto:jdoe@example.com">jdoe@example.com</a> U=root P=local S=24891<br>
<br>So I guess, this foo.tiff file were sent with this 1JWHdV-0006g8-1u exim4 message.<br><br><br>I'm looking for a way to have in syslog :<br>2008-03-03 10:53:02 hostname emailfax: sending file foo.tiff to <a href="mailto:bar@example.com">bar@example.com</a> produced 0 exit code using 1JWHdV-0006g8-1u exim4 message<br>
<br>How can I teach :<br>- exim4 to report mime-construct this 1JWHdV-0006g8-1u code<br>- and mime-construct to log it<br><br>My understanding of Perl (mime-construct is written in Perl) is poor.<br><br>Regards<br><br>PS: I warned that this message is really Off-Topic but I know a lot of talented Linux administrators read this mailing list, so ...<br>