Bug 700 - auto-whitelist is case sensitive and case not handled consistently
Summary: auto-whitelist is case sensitive and case not handled consistently
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Rules (Eval Tests) (show other bugs)
Version: 2.31
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-14 15:34 UTC by Crist Clark
Modified: 2002-08-14 08:59 UTC (History)
0 users



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Crist Clark 2002-08-14 15:34:23 UTC
When you add an address or set of addresses to the auto-whitelist, they
are added with their case 
intact.

  $ spamassassin -W -D < testspam4
  debug: 32545 Trying to get lock on 
/home/cclark/.spamassassin/auto-whitelist pass 0
  debug: Tie-ing to DB file R/W in 
/home/cclark/.spamassassin/auto-whitelist
  debug: using 
"/usr/local/share/spamassassin" for default rules dir
  debug: using 
"/etc/mail/spamassassin" for site rules dir
  debug: using "/home/cclark/.spamassassin" 
for user state dir
  debug: using "/home/cclark/.spamassassin/user_prefs" for user prefs 
file
  debug: auto-whitelist (db-based): ICMC_0502@mail.ciscomessage.com scores 0/0
  
debug: add_score: New count: 1, new totscore: -100
  [snip some other addresses]
  debug: DB addr 
list: untie-ing and destroying lockfile.
  debug: DB addr list: file locked, breaking 
lock.

But the checks and database operations done during a normal scan
seem to be done with 
email addresses shifted to all lowecase,

  $ spamassassin -t -a -D < testspam4
  debug: using 
"/usr/local/share/spamassassin" for default rules dir
  debug: using 
"/etc/mail/spamassassin" for site rules dir
  debug: using "/home/cclark/.spamassassin" 
for user state dir
  [blah-blah...]
  debug: 32548 Trying to get lock on 
/home/cclark/.spamassassin/auto-whitelist pass 0
  debug: Tie-ing to DB file R/W in 
/home/cclark/.spamassassin/auto-whitelist
  debug: auto-whitelist (db-based): 
icmc_0502@mail.ciscomessage.com scores 0/0
  debug: AWL active, pre-score: 12, mean: undef
  
debug: Post AWL score: 12
  debug: add_score: New count: 1, new totscore: 12
  debug: DB addr 
list: untie-ing and destroying lockfile.
  debug: DB addr list: file locked, breaking 
lock.

Notice that the forced auto-whitelist stores
ICMC_0502@mail.ciscomessage.com 
and the scan puts it all in
lowercase. The two are treated as distinct email addresses.

I 
would suggest that case-insensitivity be built into the
auto-whitelist functions at a low level 
so that problems
like this are taken care of automatically.
Comment 1 Justin Mason 2002-08-14 16:59:30 UTC
noted, and fixed. cheers