On 2012-02-19 3:19 PM, Tanstaafl <tan...@li...> wrote:
> Here is another example of one I just saw go out (was watching the logs
> for something else):
This is the line that I want to test for:
> Feb 19 15:03:26 myhost postfix/qmgr[11885]: CCD158B3D5B:
> from=<m-g...@bo...>,
> size=6660, nrcpt=2 (queue active)
Seeing as it contains a from= (this is the mail-from, not just some
random from header, right?), I have tried the following, which doesn't
seem to work:
elsif (/^from:\s*(.*)\n$/i) {
$logger->debug("linkedin.com found; exiting");
exit (0);
}
I need to know what expression to use for "from:\s*(.*)\n$/i)" to make
this work so that if the from contains the string 'linkedin.com'
anywhere, it will exit (0)...
If I can get just one working example, then I can add a new line
whenever I see one like this that I don't want to respond to.
Appreciate any help anyone can provide...
|