aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/qtmaildir/MailComposeModule.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/modules/qtmaildir/MailComposeModule.qml')
-rw-r--r--desktop/modules/qtmaildir/MailComposeModule.qml36
1 files changed, 36 insertions, 0 deletions
diff --git a/desktop/modules/qtmaildir/MailComposeModule.qml b/desktop/modules/qtmaildir/MailComposeModule.qml
new file mode 100644
index 0000000..e34fc07
--- /dev/null
+++ b/desktop/modules/qtmaildir/MailComposeModule.qml
@@ -0,0 +1,36 @@
+// Copyright (C) 2026 Danilo M. <danix@danix.xyz>
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License version 2 as
+// published by the Free Software Foundation.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+import QtQuick
+import "../.."
+
+// qtmaildir's [compose].
+Module {
+ name: "mail-compose"
+ label: "Compose"
+ // nf-fa-pencil, present in Inconsolata Nerd Font.
+ icon: "\uf040"
+ settings: true
+ group: "Mail"
+ keywords: ["qtmaildir", "html", "quote", "reply", "send", "undo", "autosave", "attachment", "draft"]
+ searchItems: [["send_html", "Send HTML"], ["quote_position", "Quote"], ["default_account", "Default account"],
+ ["send_delay_ms", "Undo send window"], ["autosave_interval_ms", "Autosave every"],
+ ["attachment_warn_bytes", "Warn attaching over"]]
+ .map(f => ({ text: f[1], key: "compose/" + f[0] }))
+ function refresh() { Qtm.refresh(); }
+
+ page: Component {
+ Page {
+ title: "Compose"
+ ComposePage { width: parent.width }
+ }
+ }
+}