On Tuesday, February 22 at 09:33 AM, quoth Arvinn LÑkkebakken:
> >BTW: The "mail from" and "rcpt to" SMTP headers are appended to the 
> >bottom of the file if that's what you are looking for
> >
> Yeah I know, but since this isn't a part of the header it will be more 
> difficult to be certain that I have the right line.This information 
> might be duplicated in the message body.

In a shell script, you mean? Nah, it's easy - qmail-scanner always adds 
6 lines to the end of the mail, so if you're processing the mail itself, 
just look for X-Qmail-Scanner-Mail-From and X-Qmail-Scanner-Rcpt-To in 
the last 6 lines. Something like:

    cat mailfile | tail -6 | grep X-Qmail-Scanner-Mail-From

should be sufficient.

~Kyle
-- 
I hope our wisdom will grow with our power, and teach us, that the less we
use our power the greater it will be.
-- Thomas Jefferson

Attachment: signature.asc
Description: Digital signature

Reply via email to