cyclestreets / cyclescape

Cyclescape - cycle campaign group toolkit
https://www.cyclescape.org/
MIT License
33 stars 15 forks source link

Posts are sent as raw HTML embedded in a text/plain email #328

Closed wookey closed 6 years ago

wookey commented 10 years ago

The mail that arrives is text/plain and so are the additions added by cyclescape, but the original content part of the mail is an HTML doc, including the DOCTYPE header, HTML entity conversions etc, making it a hard read, and well, just wrong. I'm guessing this happens when the original mail was sent as HTML-only with no text/plain part for cyclescape to use? This fits with the fact that I see this behaviour with posts from one particular poster, not others, so I assume it's down to what they are sending in to the system.

It should un-html the mail to send as proper plain text. (e.g using links -dump), or (worse, but better than the current breakage) make the whole mail type text/html and properly format the message.

Here is an example: Reply-To: thread-3f890bc9173809e7389e@ cyclescape.org
To: wookey wookey@wookware.org Message-ID: 53e49a182e528_76cf75788071350@sebastian.mail References: <thread-3f890bc9173809e7389e@ cyclescape.org> Mime-Version: 1.0
Content-Type: text/plain;
charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 93.93.130.6 X-SA-Exim-Mail-From: notifications@ cyclescape.org X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on stoneboat.aleph1.co.uk X-Spam-Level: X-Spam-Status: No, score=-4.2 required=4.5 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Subject: Re: [Cyclescape] Study Visit to Assen X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)

Monica Frisch added a message to the thread.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

If we want to get councillors etc. along I think we need to be sowing the seed of the idea now, so thatwhen we announce possible dates they are already considering the idea of going. We could consider giving a presentation about previous study visits to groups of councillors, write to them explaining the purpose of a visit to Assen and inviting them to express interest. I doubt if we'll get much response if we just say "we are going in.... please come along".


E-Mail scanned for viruses by The Co-operative Phone & Broadband.


Cyclescape discussion thread: http://www.cyclescape.org/threads/1463

Only members of Cambridge Cycling Campaign can view and post messages to this discussion thread.

[MLS: Added spaces between e-mail address parts to avoid spam.]

wookey commented 10 years ago

And of course this web UI has interpreted most of the HTML in the example so that it looks fairly normal. Sigh. Rest assured it's a lot more of a mess than that in a real mail client that actually shows what was sent.

davidearl commented 10 years ago

I came here to report this exact same bug on a different post: http://www.cyclescape.org/threads/984/#message_17593

I've seen it from at least three different people, but it is specific people, so those using certain email clients I guess, primarily phonecoop but also waitrose.com

nikolai-b commented 6 years ago

I believe this is fixed now. Please re-open if now