From bcad823b60035c55ca101e4d8217136786198391 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 2 Jul 2022 13:47:20 -0700 Subject: feat(home/mail): add more rules for afew Change-Id: Ieaa3163db8f73bb6e299304099e3325bba99cc10 Reviewed-on: https://cl.fcuny.net/c/world/+/602 Tested-by: CI Reviewed-by: Franck Cuny --- home/mail/accounts/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'home') diff --git a/home/mail/accounts/default.nix b/home/mail/accounts/default.nix index 9cddcd2..97a5bbd 100644 --- a/home/mail/accounts/default.nix +++ b/home/mail/accounts/default.nix @@ -32,7 +32,25 @@ in [SpamFilter] [KillThreadsFilter] [ArchiveSentMailsFilter] + + [FolderNameFilter] + maildir_separator = / + folder_transforms = Archive:archive Drafts:draft Sent:sent + folder_lowercases = true + [InboxFilter] + [Filter.1] + query = path:Fastmail/Archive/** + tags = +archive;-new;-inbox + message = Tag archived messages + + [MailMover] + folders = Fastmail/Inbox + rename = True + max_age = 30 + + # rules + Fastmail/Inbox = 'NOT tag:inbox':Fastmail/Archive ''; }; -- cgit 1.4.1