You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2009/09/15 02:54:16 UTC

[Bug 6202] New: Poor address parsing by $pms->get("from:addr")

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6202

           Summary: Poor address parsing by $pms->get("from:addr")
           Product: Spamassassin
           Version: 3.3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Libraries
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: Mark.Martinec@ijs.si


While investigating why a junk string like
  "u?.%a_<%k_(b_ <kbpjdrejn@kaasmerk.com"
ends up in AWL database:

dbg: auto-whitelist: sql-based get_addr_entry:
  found entry for u?.%a_<%k_(b_ <kbpjdrejn@kaasmerk.com|190.74

it turns out the PerMsgStatus::get does a poor job in obtaining
an address from a valid From header field. Here is the original
valid header field which resulted in the above junk:

From: "=?ISO-2022-JP?B?GyRCIiEhfjx1Py4lYSE8JWsbKEI=?=" <kb...@kaasmerk.com>

The decoded display name is: "_$B"!!~<u?.%a!<%k_(B". The root of the problem
seems to be that $pms->get("from:addr") does the decoding before extracting
(or discarding) address, display name and comments. So any strange characters
in a decoded display name throws further parsing off-balance.

Don't know what is the proper solution. Perhaps :addr should imply :raw ?

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6202] Poor address parsing by $pms->get("from:addr")

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6202

Henrik Krohns <he...@hege.li> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hege@hege.li
         Resolution|                            |DUPLICATE

--- Comment #1 from Henrik Krohns <he...@hege.li> 2009-09-14 21:35:19 PDT ---
Same problem as https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5201

*** This bug has been marked as a duplicate of bug 5201 ***

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 6202] Poor address parsing by $pms->get("from:addr")

Posted by bu...@bugzilla.spamassassin.org.
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6202

Mark Martinec <Ma...@ijs.si> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Mark.Martinec@ijs.si
   Target Milestone|Undefined                   |3.3.0

-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.