Topic regexes are never applied

Bug #266340 reported by Jkeating-redhat
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

Topic filters are checked via a provided regex. The
code that applies regexes to a message, and tags a
message with a topic and adds a header is called
Tagger.process. This function is only called by a
test/ script, to test the code path. In the production
code Tagger.process is never called, so a mail is never
checked/tagged with a topic, and thus when later
checked for who it should be delivered to based on
topic, it has no topic so it doesn't get delivered
correctly.

This is 2.1.8.

[http://sourceforge.net/tracker/index.php?func=detail&aid=1484722&group_id=103&atid=100103]

Revision history for this message
Jkeating-redhat (jkeating-redhat) wrote :

Upon closer looking, it would seem that this could be called
through a pipeline. I'm looking in our config to see if we
haven't defined this as a pipeline.

Revision history for this message
Mark Sapiro (msapiro) wrote :

Yes, Tagger is in GLOBAL_PIPELINE, so unless you have
redefined GLOBAL_PIPELINE in mm_cfg.py to not include Tagger
or the list has a pipeline attribute defined (default lists
don't) that doesn't include Tagger,
Mailman.Handlers.Tagger.process() is called by
IncomingRunner in processing the message through the pipeline.

Revision history for this message
Sf-robot (sf-robot) wrote :

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

Revision history for this message
Mark Sapiro (msapiro) wrote :

Original problem was due to submitter not recognizing that
topic regexps are compiled in VERBOSE mode requiring
escaping of significant white space. This 'gotcha' is
planned to be addressed in the next release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.