[OSGeo] #3073: Discourse email having malformed text

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: new
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution:
Keywords: |
--------------------------------+------------------------
Changes (by strk):

* Attachment "mutt-discourse-email-good.png" added.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3073&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: closed
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution: fixed
Keywords: |
--------------------------------+------------------------
Changes (by strk):

* status: new => closed
* resolution: => fixed

Comment:

I've just received a new email and was formatted good:
[[Image(mutt-discourse-email-good.png)]]

It might have been fixed by upgrade to 3.2.0.beta5-dev ( #3113 )
I'm closing this as fixed
--
Ticket URL: <#3073 (Discourse text/plain email use html entities, markdown and backslash-escapes for no reason) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: closed
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution: fixed
Keywords: |
--------------------------------+------------------------
Changes (by strk):

* Attachment "mspot-discourse-bad-mail.png" added.

--
Ticket URL: <https://trac.osgeo.org/osgeo/ticket/3073&gt;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: reopened
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution:
Keywords: |
--------------------------------+------------------------
Changes (by strk):

* status: closed => reopened
* resolution: fixed =>

Comment:

And I'm reopening this because I just got a badly formatted email from
Marting Spott:

[[Image(mspot-discourse-bad-mail.png)]]
--
Ticket URL: <#3073 (Discourse text/plain email use html entities, markdown and backslash-escapes for no reason) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: reopened
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution:
Keywords: |
--------------------------------+------------------------
Comment (by robe):

@strk,

It might have been fixed by my unchecking the "Category is mirror"
checkbox on sac-tickets.
It's probably broken again for trac tickets because I had to check that
back, since it was causing issues with trac emails being received.
Discourse started rejecting some with Reason "Title already used". I
think it might have also broken the threading when I did that.

Anyrate if that is the case, you should not have issues in Testing
category, as that is not a mirrored category or have issues in general or
any of the real lists.

Hey maybe you can join pgrouting-develop which has moved to discourse and
say something there.
--
Ticket URL: <#3073 (Discourse text/plain email use html entities, markdown and backslash-escapes for no reason) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

It’s actually broken again:

Good that’s what I expected that it would break when I checked back on the “Category mirrors a mailing list”

I had to turn it back on because some of trac emails were being rejected with an error something like “Title already exists” and I think it broke the threading too.

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: reopened
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution:
Keywords: |
--------------------------------+------------------------
Comment (by jef):

For the time being I now use this procmail recipe:

{{{
:0
* ^List-ID: OSGeo Discourse
{
         :0 c
         osgeo-discourse-orig

         :0 fb
         | sed -e '/Content-Type: text\/plain/,/^----/ s/\\\(.\)/\1/g;
s/&quot;/"/g; s/&nbsp;/ /g; s/&lt;/</g; s/&gt;/>/g; s/&#39;/'"'"'/g;'

         :0
         * ^X-Discourse-Category: SAC/SAC
         osgeo-discourse-sac

         :0
         * ^X-Discourse-Category: OSGeo Forum Feedback
         osgeo-discourse-forumfeedback

         :0
         * ^X-Discourse-Category: pgRouting
         osgeo-discourse-pgrouting

         :0
         osgeo-discourse
}

}}}

from the few mails I got so far. At least the SAC tickets look ok in
mutt.
--
Ticket URL: <#3073 (Discourse text/plain email use html entities, markdown and backslash-escapes for no reason) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: reopened
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution:
Keywords: |
--------------------------------+------------------------
Comment (by strk):

Thanks for the recipe, I'll give it a try. I just realized by having
mailing list mode off in my preferences I'm not receiving any mail so
didn't really have a chance to test it. This comment might send me the
email as I now started "watching" the SAC tickets category.
--
Ticket URL: <#3073 (Discourse text/plain email use html entities, markdown and backslash-escapes for no reason) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.

#3073: Discourse text/plain email use html entities, markdown and backslash-
escapes for no reason
--------------------------------+------------------------
Reporter: strk | Owner: sac@…
     Type: defect | Status: reopened
Priority: normal | Milestone: Unplanned
Component: SysAdmin/Discourse | Resolution:
Keywords: |
--------------------------------+------------------------
Comment (by strk):

By watching the SAC tickets category I finally received the email from
Discourse, 10 minutes after I received it directly from Mailman.

I confirm the procmail filter helps in making SAC tickets nicer in Mutt.
--
Ticket URL: <#3073 (Discourse text/plain email use html entities, markdown and backslash-escapes for no reason) – OSGeo;
OSGeo <Gter - OSGeo;
OSGeo committee and general foundation issue tracker.