diff -r 5ad8ee953d0f -r 9636197f2f43 app/models/mail_handler.rb --- a/app/models/mail_handler.rb Fri Feb 27 09:01:12 2015 +0100 +++ b/app/models/mail_handler.rb Wed Apr 22 10:17:57 2015 +0200 @@ -524,6 +524,8 @@ regex = Regexp.new("^[> ]*(#{ delimiters.join('|') })\s*[\r\n].*", Regexp::MULTILINE) body = body.gsub(regex, '') end + body = body.gsub(/[^0-9<]+/,'* ') + body = body.gsub(/[0-9].+[^<]/,'# ') body.strip end