diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-09 16:43:48 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-09 16:43:48 +0100 |
commit | 8b1676966a1df9bfb627e0f8b1f7ba80cbde9694 (patch) | |
tree | 4afcd0322a9bb11aa11881fd0601dad852c4c520 | |
parent | bc6c8b191a092bcd0bc0da35c2b72ff142fa64bb (diff) |
Enables gmail and notmuch in aearc and mbsync
-rw-r--r-- | aerc/accounts.conf | 15 | ||||
-rw-r--r-- | aerc/notmuch_querymap.conf | 4 | ||||
-rw-r--r-- | mbsyncrc | 29 |
3 files changed, 48 insertions, 0 deletions
diff --git a/aerc/accounts.conf b/aerc/accounts.conf index d69f496..ee9d401 100644 --- a/aerc/accounts.conf +++ b/aerc/accounts.conf @@ -7,7 +7,22 @@ archive = Archive aliases = y@yulqen.org folders-sort = INBOX,Archive,Drafts,Sent,Subscriptions #outgoing-cret-cmd = pass purelymail_neomutt +check-mail-timeout = 25s check-mail-cmd = mbsync -a #check-mail = 5m copy-to = Sent pgp-auto-sign = true + +[gmail] +source = maildir://~/.mail/gmail +default = Inbox +from = "Matthew Lemon" <matthew.lemon@gmail.com> +archive = Archive +folders-sort = INBOX,Archive,Drafts,Sent,Subscriptions +copy-to = Sent + +[notmuch] +source = notmuch:///home/lemon/.mail +from = "Matthew Lemon" <matt@matthewlemon.com> +query-map = ~/.config/aerc/notmuch_querymap.conf + diff --git a/aerc/notmuch_querymap.conf b/aerc/notmuch_querymap.conf new file mode 100644 index 0000000..0504f2e --- /dev/null +++ b/aerc/notmuch_querymap.conf @@ -0,0 +1,4 @@ +from-me=from:matt@matthewlemon.com +from-gmail=from:matthew.lemon@gmail.com +to-jo=to:joannalemon1@gmail.com +school-bms=from:SC9294404a@schoolcomms.com @@ -1,6 +1,35 @@ SyncState * Sync Pull All Push All +IMAPAccount gmail +Host imap.gmail.com +User matthew.lemon@gmail.com +PassCmd "echo $(pass google_isync_mbsync)" +SSLType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore gmail-remote +Account gmail + +MaildirStore gmail-local +SubFolders Verbatim +Path ~/.mail/gmail/ +Inbox ~/.mail/gmail/Inbox + +Channel gmail +Far :gmail-remote: +Near :gmail-local: +# Exclude everything under the internal [Gmail] folder, except the interesting folders +Patterns * ![Gmail]* "[Gmail]/Sent Mail" "[Gmail]/Starred" "[Gmail]/All Mail" +# Or include everything +#Patterns * +# Automatically create missing mailboxes, both locally and on the server +Create Both +# Sync the movement of messages between folders and deletions, add after making sure the sync works +Expunge Both +# Save the synchronization state files in the relevant directory +SyncState * + IMAPAccount mrlemon@purelymail.com Host imap.purelymail.com Port 993 |