https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8559
Bertrand Jacquin <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #15 from Bertrand Jacquin <[email protected]> --- Thanks for the review and squashing from previous patches. (In reply to Sidney Markowitz from comment #9) > I left the mailto match in > FreeMail.pm alone, because email_regex is the same for every object. About the mailto: match: email_regex is not the same for every object. init_email_regex() ends it with $self->{main}->{registryboundaries}->{valid_tlds_re}, the valid TLD list of the plugin's Mail::SpamAssassin object (util_rb_tld, util_rb_2tld, ...). That is the same dependency as the text URI regex fixed in r1940711. With /o the first object's pattern is kept, so a later object with another TLD list misses the mailto: addresses in its own TLDs and extracts those in the first object's TLDs. Reproduced on trunk r1940711: two objects in one process, differing only by util_rb_tld, with freemail_domains mail.first mail.second and a check_freemail_body() rule. Each checks two messages whose only address is in an <a href="mailto:..."> link: util_rb_tld mailto: address rule address extracted first [email protected] hit [email protected] first [email protected] miss - second [email protected] hit [email protected] second [email protected] miss - The second object should find [email protected] and ignore [email protected]. Addresses in the body text are matched without /o, so only mailto: links are affected. The impact is low, as in the text URI case: it takes several objects with different TLD lists in one process. The attached patch removes the o, as at the other 13 places, and adds a test to t/freemail.t like the one in t/uri_text.t: two objects with util_rb_tld zzf and zzg check the same message, and each must only find the mailto: address in its own TLD. Without the change, the zzg object gets FREEMAIL_BODY_ZZF instead of FREEMAIL_BODY_ZZG. -- You are receiving this mail because: You are the assignee for the bug.
