# Email reply parsing

**URL:** <https://meta.discourse.org/t/email-reply-parsing/41597>\
**Category:** Bug\
**Tags:** email\
**Created:** [March 26, 2016, 12:03pm UTC](https://meta.discourse.org/t/email-reply-parsing/41597 "2016-03-26T12:03:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![steko](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@steko](https://meta.discourse.org/u/steko)\
**Post date:** [March 26, 2016, 12:03pm UTC](https://meta.discourse.org/t/email-reply-parsing/41597/1 "2016-03-26T12:03:58Z")

</div>

I’ve finally setup reply by email for my Discourse forum, but unfortunately parsing of replies seems suboptimal and the original message is not stripped. My forum is in Italian, but that should be accounted for, at least judging by some earlier bug reports about this same issue. I’ve seen a few other topics here on Meta (and there are probably older ones as well):

> [@Reply by email parsing links from previous messages](https://meta.discourse.org/t/reply-by-email-parsing-links-from-previous-messages/34634):
>
> Post a message with a link. Somebody replies by email to it. When Discourse handles the email reply, it improperly includes the link from the previous message. Here’s an example:

> [@Emails reply shows date, emails and «wrote» from gmail](https://meta.discourse.org/t/emails-reply-shows-date-emails-and-wrote-from-gmail/30747):
>
> If you reply using email, gmail add El 2/7/2015 3:11 p. m., “MiguelAngelLV” [hacklabalmeria.discourse@gmail.com](mailto:hacklabalmeria.discourse@gmail.com) escribió: The format is: datetime, nick of last user, email address that send the email, and “wrote” o “escribió” in spanish, and this message is show in the reply, [example](http://foro.hacklabalmeria.net/t/estamos-mandado-emails-por-encima-de-nuestras-posibilidades/5653/4?u=miguelangellv) I know that “this is not a bug of Discourse”, but gmail is a popular email. Would be added a regular expression or something to remove the message?

I don’t use Gmail, that probably accounts for 50% of my users alone and should be covered, but I wonder if there’s a more robust way to support quirks of other email clients (e.g. mobile email clients, since replying to email from mobile is one of the use cases that Discourse wants to support, I think). Of course I can just suggest users to strip entirely the original message or leave only short quotes if they like, but … I’m sure Discourse can handle this better!

---

_[View the full topic](https://meta.discourse.org/t/email-reply-parsing/41597)._
