summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <listout@listout.xyz>2025-06-11 19:33:10 +0000
committerBrahmajit Das <listout@listout.xyz>2025-06-11 19:33:10 +0000
commitdc35f2b7059f43f7ded03586f0f59a94de5d6770 (patch)
tree2173fdff6bd29701c963695341045e2730d495dd
parente82959317c9cd7508c820ed5c30c6e47056be87f (diff)
downloaddots-dc35f2b7059f43f7ded03586f0f59a94de5d6770.tar.gz
imapfilter: adding personal email config
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '')
-rw-r--r--.imapfilter/config.lua46
1 files changed, 45 insertions, 1 deletions
diff --git a/.imapfilter/config.lua b/.imapfilter/config.lua
index a0b19ae..7c1c13b 100644
--- a/.imapfilter/config.lua
+++ b/.imapfilter/config.lua
@@ -1,7 +1,6 @@
-- The time in seconds for the program to wait for a mail server's response (default 60)
options.timeout = 120
-
-- According to the IMAP specification, when trying to write a message to a
-- non-existent mailbox, the server must send a hint to the client, whether
-- it should create the mailbox and try again or not. However some IMAP
@@ -46,6 +45,7 @@ end
-- Gets password from pass
--status, password_suse = "testtest"
status, password_suse = pipe_from("pass show suse/imap_password")
+status, password_mailbox = pipe_from("pass show mailbox.org/pass")
local suse = IMAP {
server = "imap.suse.de",
@@ -54,6 +54,46 @@ local suse = IMAP {
ssl = "ssl3"
}
+local mailbox = IMAP {
+ server = "imap.mailbox.org",
+ username = "listout@mailbox.org",
+ password = sanitize_pwd(password_mailbox),
+ ssl = "ssl3"
+}
+
+local dmarc_listout = mailbox.INBOX:contain_subject("Report Domain: listout.xyz")
+dmarc_listout:move_messages(mailbox["dmarc_reports"])
+
+local kernel_mentees = mailbox.INBOX:contain_cc("linux-kernel-mentees@lists.linux.dev") +
+ mailbox.INBOX:contain_to("linux-kernel-mentees@lists.linux.dev") +
+ mailbox.INBOX:contain_from("linux-kernel-mentees@lists.linux.dev")
+kernel_mentees:move_messages(mailbox["linux-kernel-mentees"])
+
+kernel_mentees = mailbox.INBOX:contain_cc("linux-kernel-mentees@lists.linuxfoundation.org") +
+ mailbox.INBOX:contain_to("linux-kernel-mentees@lists.linuxfoundation.org") +
+ mailbox.INBOX:contain_from("linux-kernel-mentees@lists.linuxfoundation.org")
+kernel_mentees:move_messages(mailbox["linux-kernel-mentees"])
+
+local kernel_stable = mailbox.INBOX:contain_cc("stable@kernel.org") +
+ mailbox.INBOX:contain_to("stable@kernel.org") +
+ mailbox.INBOX:contain_from("stable@kernel.org")
+kernel_stable:move_messages(mailbox["kernel-stable"])
+
+kernel_stable = mailbox.INBOX:contain_cc("stable@vger.kernel.org") +
+ mailbox.INBOX:contain_to("stable@vger.kernel.org") +
+ mailbox.INBOX:contain_from("stable@vger.kernel.org")
+kernel_stable:move_messages(mailbox["kernel-stable"])
+
+local kernel_harden = mailbox.INBOX:contain_cc("linux-hardening@vger.kernel.org") +
+ mailbox.INBOX:contain_to("linux-hardening@vger.kernel.org") +
+ mailbox.INBOX:contain_from("linux-hardening@vger.kernel.org")
+kernel_harden:move_messages(mailbox["kernel-harden"])
+
+kernel_harden = mailbox.INBOX:contain_cc("linux-hardening@kernel.org") +
+ mailbox.INBOX:contain_to("linux-hardening@kernel.org") +
+ mailbox.INBOX:contain_from("linux-hardening@kernel.org")
+kernel_harden:move_messages(mailbox["kernel-harden"])
+
--suse.INBOX:check_status()
-- Solid Ground
@@ -131,3 +171,7 @@ klp_patches:move_messages(suse["klp-patches"])
-- Meeting invitaions
local invitaions = suse.INBOX:contain_subject("Invitation:")
invitaions:move_messages(suse["meeting invitaions"])
+
+-- autobuild
+local autobuild = suse.INBOX:contain_from("autobuild@suse.de")
+autobuild:move_messages(suse["autobuild"])