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

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

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 :
#2

Thanks Mark Sapiro, that solved my question.