Hello,
How do I configure the list to remove attachments of type pdf and others.
Best Regards.
-- ...................................... Eduardo Costa Centro de Comunicações - Instituto Politécnico de Bragança raposo at ipb.pt http://www.ipb.pt/~raposo/ ......................................
On 3/4/20 7:42 AM, Eduardo Costa via Mailman-users wrote:
Hello,
How do I configure the list to remove attachments of type pdf and others.
You need to set the list's filter_types and or pass_types. For example, to filter out everything except HTML and plain text, collapse alternative parts and convert remaining HTML to plain text, you would set
filter_content = True collapse_alternatives = True convert_html_to_plaintext = True pass_types = ['multipart', 'text/plain', 'text/html']
The first 3 of these can be set in Postorius -> Settings -> Alter Messages, but the last has to be set in mailman shell as in
$ /opt/mailman/mm/bin/mailman shell -l list@example.com Welcome to the GNU Mailman shell m. The variable 'm' is the list@example.com mailing list
list(m.pass_types) [] m.pass_types = ['multipart', 'text/plain', 'text/html'] list(m.pass_types) ['multipart', 'text/plain', 'text/html'] commit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Eduardo Costa
-
Mark Sapiro