
List has "filter content" set. Filter Mime-Type [] Filter Extensions exe bat cmd com pif scr vbs cpl Accept Mime Media Types
multipart message/rfc822 text/plain text/html application/pdf application/nappdf application/x-pdf application/rtf application/vnd.oasis.opendocument.spreadsheet application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.ms-excel application/vnd.oasis.opendocument.text application/vnd.openxmlformats-officedocument.wordprocessingml.document application/msword
Allow Extensions .zip .7z
Reduce Alternative No Convert to Plain-Text No
Now I'm sending an Message from outlook (html) with Inline Images. Content Filter off: Works fine Conent Filter On,: All except the image ist fine. The image gets lost and only a placeholder is shown
<img data-cid="image001.png@01D65210.566F56E0" height="51" id="Grafik_x0020_1" src="../../attachment/view/tmai1738975737149948386/aW1hZ2UwMDEucG5nQDAxRDY1MjEwLjU2NkY1NkUw;jsessionid=03FDBB0F16AFB10F7439822AB2C59450-n4.bap20a" style="width: 3.3437in;height: 0.5312in;" width="321">
Even if MimeTypes filter is [] signature (p7s) gets filtered. Any hint?
TIA Chris

On 2/7/25 17:32, Chris via Mailman-users wrote:
List has "filter content" set. Filter Mime-Type [] Filter Extensions exe bat cmd com pif scr vbs cpl Accept Mime Media Types
multipart message/rfc822 text/plain text/html application/pdf application/nappdf application/x-pdf application/rtf application/vnd.oasis.opendocument.spreadsheet application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.ms-excel application/vnd.oasis.opendocument.text application/vnd.openxmlformats-officedocument.wordprocessingml.document application/msword
Allow Extensions .zip .7z
Reduce Alternative No Convert to Plain-Text No
Now I'm sending an Message from outlook (html) with Inline Images. Content Filter off: Works fine Conent Filter On,: All except the image ist fine. The image gets lost and only a placeholder is shown
<img data-cid="image001.png@01D65210.566F56E0" height="51" id="Grafik_x0020_1" src="../../attachment/view/tmai1738975737149948386/aW1hZ2UwMDEucG5nQDAxRDY1MjEwLjU2NkY1NkUw;jsessionid=03FDBB0F16AFB10F7439822AB2C59450-n4.bap20a" style="width: 3.3437in;height: 0.5312in;" width="321">
This is removed because you don't have image/png in accept mime types.
If you want to accept images, you should probably add just the image
main type to accept mime types.
Even if MimeTypes filter is [] signature (p7s) gets filtered. Any hint?
To accept these, add
application/x-pkcs7-signature application/pkcs7-signature
and you may also want to add
application/pgp-signature
When accept mime types is non-empty, only those types will be accepted.
Filtering on extensions only applies to mime parts with a filename parameter and again, if Allow Extensions is non-empty, only those filename extensions will be accepted.
See https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/handlers/mime_d...
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Hey Mark,
thank you for the fast reply.
I've added image/png and in a former test "image" (to hit all image types) But also with image/png the image is not shown.
Is there a trick to find out what is filtered on that message?
(I'm sure to have all mime-types included. Better to say - more than that)
Best regards Chris
multipart message/rfc822 text/plain text/html attachment application/pdf application/nappdf application/x-pdf application/rtf application/vnd.oasis.opendocument.spreadsheet application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/vnd.ms-excel application/vnd.oasis.opendocument.text application/vnd.openxmlformats-officedocument.wordprocessingml.document application/msword image/png

On 2/8/25 18:14, Chris via Mailman-users wrote:
Hey Mark,
thank you for the fast reply.
I've added image/png and in a former test "image" (to hit all image types) But also with image/png the image is not shown.
Because the image part had a filename with a .png extension and you have
Allow Extensions .zip .7z
so parts with filename with other than those 2 allowed extensions will be removed. That allow extensions won't do what you want anyway because they will have mime type like application/zip and application/x-7z-compressed and you aren't allowing those.
Allow extensions should not be set because if it is non-empty, any part that has a filename with an extension not in that list will be removed.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Mark,
thx again for your answer. I didn't realize that complexity.
My first "non"-understanding was:
Content Filter "yes": ok, there're some extensions you wan't in distributed mails Mime-Types Filter: all listet mime-types here get's filtered out of the mail Extension-Filter: all listet Extension filtered out Accept Mime-Mediatypes: Alle here listet are accepted , all others gets removed from Mail Allow Extension: (eg. .png .zip, .7z ) allow all listet Extensions, all others are filtered out
I didn't realize the two Extension parts ('cause between them is "Allow MIME-Mediatypes".
Explizit allowing was not the same for me as allow "this" but everything else. Ough... but ok, now I believe to understand that logik
Best regards Chris
participants (2)
-
Chris
-
Mark Sapiro