oza-4h07 at myamail.com Guest
|
Posted: Mon Mar 03, 2008 4:20 pm Post subject: [asterisk-users] OT - Mime-construct, exim4 and job numbers |
|
|
Hi,
I'm using mime-construct to send fax files (from an Asterisk server).
mime-construct is using exim4 to have its job done.
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.
In syslog, I've got :
2008-03-03 10:53:02 hostname emailfax: sending file foo.tiff to
bar at example.com produced 0 exit code
In exim4, I've got :
2008-03-03 10:53:02 1JWHdV-0006g8-1u <= jdoe at example.com U=root P=local
S=24891
So I guess, this foo.tiff file were sent with this 1JWHdV-0006g8-1u exim4
message.
I'm looking for a way to have in syslog :
2008-03-03 10:53:02 hostname emailfax: sending file foo.tiff to
bar at example.com produced 0 exit code using 1JWHdV-0006g8-1u exim4 message
How can I teach :
- exim4 to report mime-construct this 1JWHdV-0006g8-1u code
- and mime-construct to log it
My understanding of Perl (mime-construct is written in Perl) is poor.
Regards
PS: I warned that this message is really Off-Topic but I know a lot of
talented Linux administrators read this mailing list, so ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080303/13888e7c/attachment.htm |
|