]> source.dussan.org Git - rspamd.git/commitdiff
[WebUI] Match envelope and mime addresses following in arbitrary order 2256/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 22 May 2018 18:17:22 +0000 (21:17 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 22 May 2018 18:17:22 +0000 (21:17 +0300)
interface/js/app/history.js

index d686a50ca075a5365f24c07b35d8867732f76ce9..3d73c034ff46e7c6886cc46d7ac55adc7b67c77f 100644 (file)
@@ -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(",&#8203;") + "] " + item.rcpt_mime.join(",&#8203;");
             } else {
                 item.rcpt_mime = item.rcpt_mime.join(",&#8203;");