1
0
mirror of https://github.com/moparisthebest/mail synced 2025-02-07 10:30:18 -05:00

bugfix detect html in reply

This commit is contained in:
Tankred Hase 2013-05-06 10:56:15 +02:00
parent d2565df871
commit 61d97ab145

View File

@ -49,7 +49,7 @@
var bodyRows = re.get('body').split('\n'); var bodyRows = re.get('body').split('\n');
var isHtml = false; var isHtml = false;
_.each(bodyRows, function(row) { _.each(bodyRows, function(row) {
if (row.indexOf('<') === 0) { if (row.indexOf('</') !== -1) {
isHtml = true; isHtml = true;
} }
body += (!isHtml) ? '> ' + row + '\n' : ''; body += (!isHtml) ? '> ' + row + '\n' : '';