aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2018-05-22 13:08:15 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2018-05-22 13:08:15 +0300
commit91780fdfbeb754191c9efba7ee2e59d07c201020 (patch)
tree52f47a5839afb0ef0c636031a5561d5cb3b3b016
parent4653f1e9031133bcc9734a68b9e1c6a9a7cddd43 (diff)
downloadrspamd-91780fdfbeb754191c9efba7ee2e59d07c201020.tar.gz
rspamd-91780fdfbeb754191c9efba7ee2e59d07c201020.zip
[WebUI] Display smtp sender/recipient in history
if it doesn't match From/To..Cc..Bcc
-rw-r--r--interface/js/app/history.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/interface/js/app/history.js b/interface/js/app/history.js
index dc44a2ddf..4fa3d9e07 100644
--- a/interface/js/app/history.js
+++ b/interface/js/app/history.js
@@ -171,7 +171,14 @@ function($, _, Humanize) {
"value": scan_time
};
item.id = item['message-id'];
- item.rcpt_mime = item.rcpt_mime.join(",&#8203;");
+ if (JSON.stringify(item.rcpt_smtp) !== JSON.stringify(item.rcpt_mime)) {
+ item.rcpt_mime = "[" + item.rcpt_smtp.join(",&#8203;") + "] " + item.rcpt_mime.join(",&#8203;");
+ } else {
+ item.rcpt_mime = item.rcpt_mime.join(",&#8203;");
+ }
+ if (item.sender_mime !== item.sender_smtp) {
+ item.sender_mime = "[" + item.sender_smtp + "] " + item.sender_mime;
+ }
items.push(item);
});
@@ -225,7 +232,7 @@ function($, _, Humanize) {
}
}, {
"name": "sender_mime",
- "title": "From",
+ "title": "[Envelope From] From",
"breakpoints": "xs sm md",
"style": {
"font-size": "11px",
@@ -233,7 +240,7 @@ function($, _, Humanize) {
}
}, {
"name": "rcpt_mime",
- "title": "To",
+ "title": "[Envelope To] To",
"breakpoints": "xs sm md",
"style": {
"font-size": "11px",