At 20:06 +0000 14-04-2004, Nick Palmer wrote:
Hey All,

Is it possible to have qmail-scanner pass the -u option to spamc with the username of the intended recipient. I need it to send just the username, not the full email address. The FAQ indicates that it does this, but the version I have (1.20) certainly does not.

Thanks,
-Nick

You have to add a line of code in the sub spamassassin:


  #Cleanup $one_recip so it's usable from the commandline...
  #any char that isn't supported to changed into an '_'
  ($cmdline_recip=$one_recip)=~s/[EMAIL PROTECTED]/_/gi;
  $cmdline_recip=~ s/^([EMAIL PROTECTED])$/$1/i;

$cmdline_recip=~ s/^(.*)\@(.*)$/$1/; #### Add this line

$cmdline_recip=tolower($1);



Cheers

Salvatore


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Qmail-scanner-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to