From fa20360b88f494b842bb44e4c90aef470f3a7b7c Mon Sep 17 00:00:00 2001 From: Mic Date: Mon, 13 Jan 2025 00:03:00 +0100 Subject: [PATCH] datetime placeholder added. fixes #223 --- js/mzta-menus.js | 3 +++ js/mzta-placeholders.js | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/js/mzta-menus.js b/js/mzta-menus.js index 10068ba8..68b9ce7e 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -175,6 +175,9 @@ export class mzta_Menus { case 'junk_score': finalSubs['junk_score'] = curr_message.junkScore; break; + case 'mail_datetime': + finalSubs['mail_datetime'] = curr_message.date; + break; case 'tags_current_email': let tags_current_email_array = await transformTagsLabels(curr_message.tags, tags_full_list[1]); finalSubs['tags_current_email'] = tags_current_email_array.join(", "); diff --git a/js/mzta-placeholders.js b/js/mzta-placeholders.js index 152facb4..0be1f83f 100644 --- a/js/mzta-placeholders.js +++ b/js/mzta-placeholders.js @@ -103,6 +103,13 @@ const defaultPlaceholders = [ type: 0, is_default: "1", }, + { + id: 'mail_datetime', + name: "__MSG_placeholder_mail_datetime__", + default_value: "", + type: 1, + is_default: "1", + }, { id: 'tags_current_email', name: "__MSG_placeholder_tags_current_email__",