~openerp-dev/openobject-server/7.0-mail_issues-adh-1168376

« back to all changes in this revision

Viewing changes to openerp/tools/mail.py

  • Committer: Anand Dharampuriya(OpenERP)
  • Date: 2014-06-04 08:45:38 UTC
  • Revision ID: adh@tinyerp.com-20140604084538-7gekt92dtabwh7ew
[FIX] Mail: Solve while you get project isue after configure incoming mail server you get > instead of every > sign

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
    html = re.sub('<br\s*/?>', '\n', html)
212
212
    html = re.sub('<.*?>', ' ', html)
213
213
    html = html.replace(' ' * 2, ' ')
 
214
    html = html.replace('&lt;', '<')
 
215
    html = html.replace('&gt;', '>')
 
216
    html = html.replace('&amp;', '&')
214
217
 
215
218
    # strip all lines
216
219
    html = '\n'.join([x.strip() for x in html.splitlines()])
373
376
                # sometimes returns emails without at least '@'. The '@'
374
377
                # is strictly required in RFC2822's `addr-spec`.
375
378
                if addr[1]
376
 
                if '@' in addr[1]]
 
 
b'\\ No newline at end of file'
 
379
                if '@' in addr[1]]