about summary refs log tree commit diff
path: root/home/mail
diff options
context:
space:
mode:
Diffstat (limited to 'home/mail')
-rw-r--r--home/mail/accounts/default.nix18
1 files changed, 18 insertions, 0 deletions
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
       '';
     };