Attachment Filter and Case Sensitivity

Asked by Jason Van Patten

I have Content Filtering enabled, with specific attachment removal also enabled. Attachments with extensions of, for instance, .jpg are to be removed. If one comes with with the name of .JPG, it gets by the filter. If I add .JPG to the filter, it gets converted to lowercase, and the uppercase .JPG still gets by. Can this be verified and fixed?

Version 2.1.9, as installed via CentOS YUM.

Question information

English Edit question
GNU Mailman Edit question
No assignee Edit question
Solved by:
Mark Sapiro
Last query:
Last reply:
Revision history for this message
Best Mark Sapiro (msapiro) said :

It is correct that extensions are converted to lower case when added to the filter. This is intended behavior.

It is also the case that the actual file name extension is converted to lower case when matching against {pass|filter}_filename_extensions, so everything should be compared as lower case and thus be case insensitive. However, Mailman 2.1.9 did not lower-case the actual file extension before comparison. This was fixed in Mailman 2.1.10.

Revision history for this message
Jason Van Patten (jvp) said :

Thanks Mark Sapiro, that solved my question.