To what extent can mailman 3 handle images and html?
Hi
The other day I attempted to send a message from my mail client (Apple computer, Mail program, html--well, what they call Rich Text). While a user was able to send a message previously that contained an image, I was unsuccessful.
As well, links were weird.
LINKS
Because My wordpress often has a Japanese URL and they can become very long, I tried both the URL as is and embedded (made a clickable html link).
URL
So while I typed https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis....
It came out double as
https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis... <https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis... (The full link was truncated with ... at the end, and the link appeared twice with the second instance preceded by "">")
The embedded one did not come out embedded buy showed the text like this: Alternate link: 多摩川河川敷に男性の遺体、増水した川に流されたか <https://www.tokyoprogressive.org/%e5%a4%9a%e6%91%a9%e5%b7%9d%e6%b2%b3%e5%...
QUESTION 1: Is there a preferred way to write links, or will there always be problems with the mail clients? (Even the web archive shows this problem though):
https://list.tokyoprogressive.org/hyperkitty/list/discuss@list.tokyoprogress... See the top item Homeless man drowns in river during Typhoon and what I mean.
IMAGE No image appears though one was added inline.
And, as I said, a user was previously able to add one. I do not know how she did it. I also posted it to my web site instead of the newsletter for unrelated reasons. But there was an image (Originally got a warning the message was held because the attachment or something).
So are there guidelines one whether/how to attach an image so that it makes it?
Thanks
On 10/20/19 2:11 AM, Paul Arenson wrote:
Hi
The other day I attempted to send a message from my mail client (Apple computer, Mail program, html--well, what they call Rich Text). While a user was able to send a message previously that contained an image, I was unsuccessful.
It should be the same as Mailman 2.1. What are your settings for content filtering. In Postorius the only thing exposed are Settings -> Alter Messages -> Filter content, Collapse alternatives and Convert html to plaintext. If this Filter content Yes, content is filtered according to the other two settings and MIME parts may be removed according to the list settings filter_types, pass_types, filter_extensions and pass_extensions. These settings exist in core, but aren't exposed in Postorius. For a new MM3 list these settings are empty, but for a list imported from Mailman 2.1, they are set according to the corresponding MM 2.1 settings.
I suspect in your case the issue is Filter content and Collapse alternatives are both Yes.
Or perhaps the issue is HyperKitty's rendering of the message
As well, links were weird.
LINKS
Because My wordpress often has a Japanese URL and they can become very long, I tried both the URL as is and embedded (made a clickable html link).
URL
So while I typed https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis....
It came out double as
https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis... <https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis... (The full link was truncated with ... at the end, and the link appeared twice with the second instance preceded by "">")
I think the doubling is due to your MUA. The truncation of the displayed link in HyperKitty is expected, but the link itself should reference the full URL.
The embedded one did not come out embedded buy showed the text like this: Alternate link: 多摩川河川敷に男性の遺体、増水した川に流されたか <https://www.tokyoprogressive.org/%e5%a4%9a%e6%91%a9%e5%b7%9d%e6%b2%b3%e5%...
What do these look like in the message received from thge list as opposed to HyperKitty?
QUESTION 1: Is there a preferred way to write links, or will there always be problems with the mail clients? (Even the web archive shows this problem though):
https://list.tokyoprogressive.org/hyperkitty/list/discuss@list.tokyoprogress...
See what this looks like at <https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/4XFDDBGV5R2MW3K2A222UO3MMKMXJYBQ/>
See the top item Homeless man drowns in river during Typhoon and what I mean.
The first of those 3 links actually works. The other two don't work because the Japanese characters have been encoded as hex values by your MUA (which may be HyperKitty if you are posting via HyperKitty.
To answer your question, you can just type the URL as you did above in your thread link, or you can surround it with angle brackets as I did in my message link. If you don't use angle brackets, it should be surrounded by whitespace to avoid ambiguity. See <https://www.rfc-editor.org/rfc/rfc3986#appendix-C>
IMAGE No image appears though one was added inline.
And, as I said, a user was previously able to add one. I do not know how she did it. I also posted it to my web site instead of the newsletter for unrelated reasons. But there was an image (Originally got a warning the message was held because the attachment or something).
So are there guidelines one whether/how to attach an image so that it makes it?
Are you posting via email or HyperKitty? If by email, I suspect the issue is Filter content and Collapse alternatives are both Yes. If by HyperKitty you can only post plain text.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Paul Arenson writes:
The other day I attempted to send a message from my mail client (Apple computer, Mail program, html--well, what they call Rich Text). While a user was able to send a message previously that contained an image, I was unsuccessful.
The user's MUA probably used embedded content in the HTML, while yours used a MIME attachment. I don't think our email package looks inside the HTML. It's also possible that the user's image was an embedded link to a network resource.
As well, links were weird.
It came out double as
https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis... <https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapis... (The full link was truncated with ... at the end, and the link appeared twice with the second instance preceded by "">")
I believe that this is an MUA issue, not Mailman. Mailman doesn't touch content at that level. It optionally
(1) removes MIME parts as wholes, (2) converts whole text/html parts to text/plain (3) adds a header before the main content part without touching the main content, or (4) adds a footer after the main content part without touching the main content.
None of these can affect the main content except (2), but I believe you have this feature configured OFF.
I don't know much about these problems. It's really not possible to diagnose either of these problems without access to the emails.
QUESTION 1: Is there a preferred way to write links, or will there always be problems with the mail clients?
It's a client question.
One client that is always available with Mailman is HyperKitty. The most recent versions of HyperKitty will format Markdown in plain text mail. I'm not familiar with the particular flavor of Markdown used though.
Note: Markdown is only relevant to plain text mail, not HTML or other kinds of "rich text". It also is *only* useful in HyperKitty (and a few other clients used by a few programmer types).
So are there guidelines one whether/how to attach an image so that it makes it?
No. It should just work. It's possible you need to add the string 'image' to the mailing list's 'pass_types' attribute, or delete strings starting with 'image' from the mailing list's 'filter_types' attribute. Unfortunately, as far as I can see those are not accessible from the web interface.
Steve
Thank you Mark and Steve
To clarify, Mark, I am posting by my email client (I am using the hosted version of MM3, which is only up to version 1.2.2. I don't see any formatting or uploading options.
I suspect in your case the issue is Filter content and Collapse alternatives are both Yes.
That is correct. Thank you. I have set them to NO.
About links looking different in Hyperkitty vs Mail Client, it seems it comes out truncated in Hyperkitty in at least one case, but the link works. I will take your suggestions nd just type the link, or add white space to avoid ambiguity, or use brackets < and >. Thanks for the appendix C reference: "... In practice, URIs are delimited in a variety of ways, but usually within double-quotes "http://example.com/", angle brackets <http://example.com/>, or just by using whitespace:"
Steve, taking a cue from your message about embedding, I tried to recreate the message using cut and paste from the website so that images (as well as URL) are embedded. (It seems to add a string to the mailing list's pass_types attribute, etc. I would need to have my own installation. I guess in that sense my issues reflect a user who uses a hosted version, as I did with Mailman 2.)
I would like to try to upload my embedded version in the next message to see if it works.
Thanks
paul
THIS IS A TEST as explained in the previous message. Note that all is embedded except the very last URL, which has brackets around it.
Click titles to read
NEWEST STORIES/最新の記事
October 21, 2019 <https://www.tokyoprogressive.org/i-was-exposed-to-nerve-agent-on-okinawa-us-soldier-sickened-by-chemical-weapon-leak-at-chibana-ammunition-depot-in-1969-breaks-silence-on-what-happened-that-day/>October 21, 2019 “I was exposed to nerve agent on Okinawa” – US soldier sickened by chemical weapon leak at Chibana Ammunition Depot in 1969 breaks silence on what happened that day. <https://www.tokyoprogressive.org/i-was-exposed-to-nerve-agent-on-okinawa-us-soldier-sickened-by-chemical-weapon-leak-at-chibana-ammunition-depot-in-1969-breaks-silence-on-what-happened-that-day/> By Jon Mitchell (Japan Focus) On July 8 1969, 19-year old US soldier Daniel Plemons was working at Chibana Ammunition Depot, Okinawa, in one of the most dangerous – and secretive – jobs in the US military: the maintenance of chemical weapons. “There were 500-pound (227 kg) bombs filled with nerve agent and we were... October 17, 2019 <https://www.tokyoprogressive.org/%e5%a4%9a%e6%91%a9%e5%b7%9d%e6%b2%b3%e5%b7%9d%e6%95%b7%e3%81%ab%e7%94%b7%e6%80%a7%e3%81%ae%e9%81%ba%e4%bd%93%e3%80%81%e5%a2%97%e6%b0%b4%e3%81%97%e3%81%9f%e5%b7%9d%e3%81%ab%e6%b5%81%e3%81%95%e3%82%8c/>October 17, 2019 多摩川河川敷に男性の遺体、増水した川に流されたか <https://www.tokyoprogressive.org/%e5%a4%9a%e6%91%a9%e5%b7%9d%e6%b2%b3%e5%b7%9d%e6%95%b7%e3%81%ab%e7%94%b7%e6%80%a7%e3%81%ae%e9%81%ba%e4%bd%93%e3%80%81%e5%a2%97%e6%b0%b4%e3%81%97%e3%81%9f%e5%b7%9d%e3%81%ab%e6%b5%81%e3%81%95%e3%82%8c/> 14日午後、東京・日野市の多摩川の河川敷でホームレスとみられる男性の遺体が見つかり、警視庁は、台風で増水した川に流されたとみて調べています... October 16, 2019 <https://www.tokyoprogressive.org/%e5%8f%b0%e6%9d%b1%e5%8c%ba%e3%81%ae%e8%87%aa%e4%b8%bb%e9%81%bf%e9%9b%a3%e6%89%80%e3%80%81%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%ac%e3%82%b9%e7%94%b7%e6%80%a7%e3%81%ae%e9%81%bf%e9%9b%a3%e6%96%ad%e3%82%8b/>October 16, 2019 台東区の自主避難所、ホームレス男性の避難断る <https://www.tokyoprogressive.org/%e5%8f%b0%e6%9d%b1%e5%8c%ba%e3%81%ae%e8%87%aa%e4%b8%bb%e9%81%bf%e9%9b%a3%e6%89%80%e3%80%81%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%ac%e3%82%b9%e7%94%b7%e6%80%a7%e3%81%ae%e9%81%bf%e9%9b%a3%e6%96%ad%e3%82%8b/>
台風19号が接近、上陸した12日、東京都台東区が、自主避難所を訪れたホームレスの男性2人を受け入れなかったことが、区や関係者への取材でわかった。区側は、避難所は区民を対象としたもので、2人が住所不定であることを理由に受け入れを断ったという。
区は「住所不定者をどうするかとの観点が抜けていた」と説明し、「反省点とし、今後、住所不定者をどう援助できるかを検討する」としている。 October 16, 2019 <https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapist-for-11-million-yen/>October 16, 2019 Journalist Ito Shiori Sues Alleged Rapist for 11 Million Yen <https://www.tokyoprogressive.org/journalist-ito-shiori-sues-alleged-rapist-for-11-million-yen/>
「…性暴力の被害を受けた方々に対して世間があたたかい温度にできるように、ポジティブな言葉だったり、『あなただけじゃない』というメッセージをどんどん発信していただけたら、と思います」
“I hope that victims of sexual violence will receive words of encouragement and messages like “You’re not the only one” so that the world can understand them.” October 16, 2019 <https://www.tokyoprogressive.org/freedom-fighting-nagoyas-censored-art-exhibition-and-the-comfort-women-controversy/>October 16, 2019 Freedom Fighting: Nagoya’s censored art exhibition and the “comfort women” controversy <https://www.tokyoprogressive.org/freedom-fighting-nagoyas-censored-art-exhibition-and-the-comfort-women-controversy/>
By David McNeil An exhibition of censored artwork in Nagoya city triggers a furious debate on artistic expression. The artistic director of the Aichi Triennale 2019 had few illusions when he planned an exhibition called “After Freedom of Expression”. By choosing items that poked painfully at some of Japan’s most tender spots – war crimes, […] October 10, 2019 <https://www.tokyoprogressive.org/bread-roses-is-your-attending-physician-working-for-free/>October 10, 2019 Bread & Roses: Is Your Attending Physician Working for Free? <https://www.tokyoprogressive.org/bread-roses-is-your-attending-physician-working-for-free/>
by Hifumi Okunuki (Shingetsu News Agency) Medical professionals, even doctors themselves, often accept this anachronistic apprenticeship system as a necessary evil or as shikataganai (unavoidable). This recalls how many in the medical profession readily accepted the inevitability of robbing young women of their spots in medical school while practicing some grotesque form of affirmative action […] Plus
Bread & Roses: Is Your Attending Physician Working for Free? <https://www.tokyoprogressive.org/bread-roses-is-your-attending-physician-working-for-free/> <https://www.tokyoprogressive.org/bread-roses-is-your-attending-physician-working-for-free/> by Hifumi Okunuki (Shingetsu News Agency) Medical professionals, even doctors themselves, often accept this anachronistic apprenticeship system as a necessary evil or as shikataganai (unavoidable). This recalls how many in the medical profession readily accepted the inevitability of robbing young women of their spots in medical school while practicing some grotesque form of … <https://www.tokyoprogressive.org/bread-roses-is-your-attending-physician-working-for-free/>[Read more...] <https://www.tokyoprogressive.org/bread-roses-is-your-attending-physician-working-for-free/>
Bread and Roses: A Leftist Case Against Hate Speech Laws in Japan <https://www.tokyoprogressive.org/bread-and-roses-a-leftist-case-against-hate-speech-laws-in-japan/> <https://www.tokyoprogressive.org/bread-and-roses-a-leftist-case-against-hate-speech-laws-in-japan/> by Hifumi Okunuki, Shingetsu News Agency ...I was in a café with a friend who has little interest in politics. She turned to me and said, “South Korea really pisses me off.” Another friend of mine returned home to her octogenarian parents. During dinner her father started going off on Korea and Koreans. This shocked my friend because he had never before expressed any sort of … <https://www.tokyoprogressive.org/bread-and-roses-a-leftist-case-against-hate-speech-laws-in-japan/>[Read more...] <https://www.tokyoprogressive.org/bread-and-roses-a-leftist-case-against-hate-speech-laws-in-japan/>
Support the Waseda Chronicle <https://www.tokyoprogressive.org/a-finger-in-the-eye-of-the-powers-that-be-and-sample-article-on-sumifru-bananas/> <https://www.tokyoprogressive.org/a-finger-in-the-eye-of-the-powers-that-be-and-sample-article-on-sumifru-bananas/> By David McNeill (Foreign Correspondents Club of Japan) One autumn day five years ago, journalists at the Asahi Shimbun looked up from their desks to see their boss holding an impromptu press conference on the newsroom TV screens. For months, the newspaper had been taking flak over an article about the Fukushima nuclear accident. Now Tadakazu Kimura, its president, was … <https://www.tokyoprogressive.org/a-finger-in-the-eye-of-the-powers-that-be-and-sample-article-on-sumifru-bananas/>[Read more...] <https://www.tokyoprogressive.org/a-finger-in-the-eye-of-the-powers-that-be-and-sample-article-on-sumifru-bananas/>
Slow burn: Dirt, Radiation, and Power in Fukushima <https://www.tokyoprogressive.org/slow-burn-dirt-radiation-and-power-in-fukushima/>) <https://www.tokyoprogressive.org/wp-admin/post.php?post=111058&action=edit> <https://www.tokyoprogressive.org/slow-burn-dirt-radiation-and-power-in-fukushima/> From Peter Wynn Kirby, Japan Focus. The record earthquake and tsunami that struck Japan on 11 March 2011 ushered in a highly mediated disaster as Japanese grappled with the triple-meltdowns and radiation crisis at Fukushima Daiichi Nuclear Power Station. Largely out of sight of international camera crews and probing journalists, the Japanese state and multiple municipalities … <https://www.tokyoprogressive.org/slow-burn-dirt-radiation-and-power-in-fukushima/>[Read more...] <https://www.tokyoprogressive.org/slow-burn-dirt-radiation-and-power-in-fukushima/>
And COMMENT BY A READER
Remembering the Tsushima Maru Disaster 75 Years Later
See the bottom of the article < https://www.tokyoprogressive.org/remembering-the-tsushima-maru-disaster-75-y... <https://www.tokyoprogressive.org/remembering-the-tsushima-maru-disaster-75-years-later/> >
Success. I first tried to send a sample here but it was over 40k so it is being held for moderation. Then I realized my own list is set to hold all messages now, including my own, so I sent it and I got a message telling me it was held for moderation. I could see the message and it looked perfect (have to look in mail client, not hyperkitty).
Sent it out and it looks fine on both my computer and on my iPhone.
Hyperkitty archive is without the html view but it looks ok and the images show up as attachments.
Thanks!!
On 10/20/19 9:57 PM, Paul Arenson wrote:
Success. I first tried to send a sample here but it was over 40k so it is being held for moderation. Then I realized my own list is set to hold all messages now, including my own, so I sent it and I got a message telling me it was held for moderation. I could see the message and it looked perfect (have to look in mail client, not hyperkitty).
Sent it out and it looks fine on both my computer and on my iPhone.
Hyperkitty archive is without the html view but it looks ok and the images show up as attachments.
I have now accepted your held message. This list's content filtering collapses alternatives so what you see from the list and in HyperKitty is the plain text alternative that your MUA (Mac mail) created, but all the URLs seem to work as links even though displayed as truncated in the Hyperkitty view. Also this list will filter out images.
HyperKitty will only display plain text parts in the message and thread views. Other parts such as html and images that pass the list's content filtering will appear as attachment links in HyperKitty.
Anyway, it appears your issue is resolved by setting Filter content and Collapse alternatives to No. I'm glad it's working for you.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thank you, Mark.
Yes. All solved and your explanation on how THIS list handles attachments also understood. Appreciate as always.
(resending as i used the wrong reply-to address)
participants (4)
-
Mark Sapiro
-
Paul Arenson
-
paul@arenson.org
-
Stephen J. Turnbull