On 3/3/21 3:36 PM, Mark Dale via Mailman-Users wrote: > Hi Listers, > > I've got a client's list to which a plain text email notice is sent > everyday. > > Mailman-Version: 2.1.34 > Postfix > Debian 10 > > The message contents are fairly similar each day and the text message > renders in email clients just fine and the .mbox file reads fine also. > > However, Pipermail renders each archived message as a ".ksh" attachment. > > > ***** > >>From noreply at XXX.com Wed Mar 3 12:06:05 2021 > From: noreply at XXX.com (noreply at XXX.com) > Date: Wed, 3 Mar 2021 07:06:05 -0500 > Subject: [XXX] XXX Published daily - 26097 > Message-ID: <202103031206.123C662K015222@XXX> > > An embedded and charset-unspecified text was scrubbed... > Name: not available > URL: > <https://XXX/pipermail/XXX/attachments/20210303/06a36d4b/attachment.ksh> > > ***** > > The message header contains: > > Content-Disposition: inline > MIME-Version: 1.0 > X-Mailer: MIME::Lite 3.031 (F2.85; T2.17; A2.21; B3.15; Q3.13) > ... > Content-Type: text/plain; charset="us-ascii" > Content-Transfer-Encoding: 7bit > > > Could anyone point me in the right direction to get the archived > messages to display their content as text in the message body instead of > as an attachment?
In order to help with this, I need to see the complete MIME structure of the message. I.e. all the Content-Type: headers including the top level and all the boundaries. This information for a message received from the list is what I want to see as that's what Scrubber sees. Or the message from the archives/private/listname.mbox/listname.mbox would do too. Scrubber should not be scrubbing the 'Content-Type: text/plain; charset="us-ascii"' part with the message 'An embedded and charset-unspecified text was scrubbed...'. Something else is going on here. The .ksh extension comes from the Python library mime_types.guess_all_extensions, which returns the list ['.ksh', '.bat', '.h', '.txt', '.pl', '.c', '.asc', '.text', '.pot', '.brf', '.srt'] for text/plain and we arbitrarily pick the first one which is .ksh, but we shouldn't be doing that with a text/plain part with a declared charset. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list -- mailman-users@python.org To unsubscribe send an email to mailman-users-le...@python.org https://mail.python.org/mailman3/lists/mailman-users.python.org/ Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/ https://mail.python.org/archives/list/mailman-users@python.org/