You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Kim Christensen <ki...@01.se> on 2007/02/05 15:51:04 UTC

spamc getting wrong usernames from qmail-queue-scanner.pl

Hey list,


I'm using SA in a qmail setup, thus invoking spamc through
qmail-queue-scanner.pl. 

I've been using AWL through MySQL for a few hours now, and it works
great so far. However, it seems that SA doesn't really get the
correct username passed from qmail-queue-scanner.pl - every now and
then, an AWL record gets added with 'vpopmail' as username. 


The script used for parsing the username is as follows:

[snip]
  if ($sa_sql) {
     my ($cmdline_recip);
     ($cmdline_recip=$one_recip)=~s/[^0-9a-z\.\_\-\=\+\@]/_/gi;
     $cmdline_recip=~/^([0-9a-z\.\_\-\=\+\@]+)$/i;
     $cmdline_recip=tolower($1);
     $spamc_options="$spamc_options -u \"$cmdline_recip\"" if ($cmdline_recip ne "");
  }
[/snip]


Anyone else been experiencing this?

Best regards
-- 
Kim Christensen
"Losing all hope is freedom."