From: Alexander Moisseev Date: Tue, 22 May 2018 18:17:22 +0000 (+0300) Subject: [WebUI] Match envelope and mime addresses following in arbitrary order X-Git-Tag: 1.7.6~112^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F2256%2Fhead;p=rspamd.git [WebUI] Match envelope and mime addresses following in arbitrary order --- diff --git a/interface/js/app/history.js b/interface/js/app/history.js index d686a50ca..3d73c034f 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -171,7 +171,7 @@ function($, _, Humanize) { "value": scan_time }; item.id = item['message-id']; - if (JSON.stringify(item.rcpt_smtp) !== JSON.stringify(item.rcpt_mime)) { + if ($(item.rcpt_mime).not(item.rcpt_smtp).length !== 0 || $(item.rcpt_smtp).not(item.rcpt_mime).length !== 0) { item.rcpt_mime = "[" + item.rcpt_smtp.join(",​") + "] " + item.rcpt_mime.join(",​"); } else { item.rcpt_mime = item.rcpt_mime.join(",​");