I think I found the source of the problem in the code.
I've done file compares between every version of ASSP between 2.0.1 rc
0.5.03 and the current one. While there was a change in 0.5.04 to fix
notgreedy, that change has remained. I dunno, maybe .04 fixed a
different problem.
In any case, I would have expected to see something in the logs that
says "Whitelisted sender address:" for the mails with a whitelisted
sender in the header. However, I only see this when the "mail from"
is a whitelisted address.
I dug into the code and it seems that in the onwhitelist sub that the
%senders array isn't getting populated with data.
I put in some debugging lines to see what I could find out.
if(! $NotGreedyWhitelist or $NotGreedyWhitelist == 2) {
mlog($fh,"debug about to get senders") <<--put in this line
while($header=~/\n(from|sender|reply-to|errors-to|list-\w+):.*?($emailadr...@$emaildomainre)/igo)
{
my $s = $2;
$s = $1 if ($s =~ /^prvs=\d\d\d\d\w{6}=(.*)/);
$senders{lc $s}=1;
mlog($fh,"debug sender in notgreedyloop: $s") <<--put in this line
}
}
The "debug about to get senders" line does get written to the log.
However, the "debug sender in notgreedyloop" line never shows It's as
if there's never a match in the regex so the loop never gets entered.
Subequent debugging lines that I put in, right after that loop do run.
I hope this is enough for you to take a quick look to see what you can see.
Thanks
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test