[Bug 1074542] [NEW] ban_list: addresses which begin with caret ("^")
Public bug reported: This is very minor, but probably deserves a note in the documentation. In the ban_list (and probably other places) a regular expression requires the leading end anchor "^". Thus one without that as first character would be interpreted as an email address. With the "^", the entry will be read as a regular expression. How would you handle an email address where the localpart begins with "^"? Granted, this is a very rare thing, but it is possible. Escape it with backslash? It could be done as a regular expression also, but that fact might be worth noting. Thanks. FYI, I discussed this with Terri in IRC, and she suggested filing a bug. ** Affects: mailman Importance: Undecided Status: New -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1074542 Title: ban_list: addresses which begin with caret ("^") To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1074542/+subscriptions
Assuming there actually is such an address, it could be represented as you suggest with a regexp that would match only the literal address. E.g. if the address were "^some.name@example.com", the regexp would be "^\^some\.name@example\.com$". Escaping the leading ^ with a backslash wouldn't work without changes to Mailman. Non-regexp matches on addresses are done by simple string comparison which would treat the backslash as any other character. I'm not convinced that this is a valid bug, but I'm marking it "Won't Fix" so it can serve as documentation of how to deal with such an address. ** Changed in: mailman Importance: Undecided => Low ** Changed in: mailman Status: New => Won't Fix -- You received this bug notification because you are a member of Mailman Coders, which is subscribed to GNU Mailman. https://bugs.launchpad.net/bugs/1074542 Title: ban_list: addresses which begin with caret ("^") To manage notifications about this bug go to: https://bugs.launchpad.net/mailman/+bug/1074542/+subscriptions
participants (2)
-
/dev/rob0 -
Mark Sapiro