Getting mail working better. Adding filters to afew config. Etc.

master
Dustin Swan 11 years ago
parent 6cda265a83
commit 11b9cd2d08

@ -2,21 +2,69 @@
#[ClassifyingFilter] #[ClassifyingFilter]
[KillThreadsFilter] [KillThreadsFilter]
[ListMailsFilter] [ListMailsFilter]
[ArchiveSentMailsFilter] [ArchiveSentMailsFilter] # Looks for mails sent from my addresses, adds sent tag
#[Filter.1] #[FolderNameFilter]
#message = Tagging IOCOM netmon emails #folder_blacklist = iocom/INBOX gmail/INBOX gmail/[Gmail].Important gmail/[Gmail].Starred
#query = to:netmon@insors.com #folder_transforms = Archive:archive Drafts:drafts Sent:sent Trash:trash Builder:builder Info:info Netmon:netmon Spam:spam "gmail/Kara Hetz":"Kara Hetz" "All Mail":archive "gmail/[Gmail].Drafts":drafts "gmail/[Gmail].Sent Mail":sent "Spam":spam "Important":important "gmail/[Gmail].Trash":trash
#tags = +netmon;-new # This is getting nasty. Let's just use filters
[FolderNameFilter]
folder_blacklist = iocom/INBOX
folder_transforms = Archive:archive Drafts:drafts Sent:sent Trash:trash Builder:builder Info:info Netmon:netmon Spam:spam
[Filter.1] [Filter.1]
message = Removing archived mails from inbox message = Gmail
query = tag:archive query = folder:gmail
tags = -new;-archive tags = +gmail
[Filter.2]
message = IOCOM
query = folder:iocom
tags = +iocom
[Filter.3]
message = Archived
query = folder:iocom/INBOX.Archive OR 'folder:"gmail/[Gmail].All Mail"'
tags = -new;-inbox
[Filter.4]
message = Drafts
query = folder:iocom/INBOX.Drafts OR 'folder:"gmail/[Gmail].Drafts"'
tags = -new;+drafts
[Filter.5]
message = Sent
query = folder:iocom/INBOX.Sent OR 'folder:"gmail/[Gmail].Sent Mail"'
tags = -new;+sent
[Filter.6]
message = Spam
query = folder:iocom/INBOX.spam OR 'folder:"gmail/[Gmail].Spam"'
tags = -new;+spam
[Filter.7]
message = Trash
query = folder:iocom/INBOX.Trash OR 'folder:"gmail/[Gmail].Trash"'
tags = -new;+trash
# IOCOM folders
[Filter.8]
message = Builder
query = folder:iocom/INBOX.builder
tags = +builder;-spam;-new
[Filter.9]
message = Netmon
query = folder:iocom/INBOX.netmon
tags = +netmon;-spam;-new
# IOCOM tags
[Filter.10]
message = Bugzilla
query = from:bugzilla-daemon@bugzilla.insors.net
tags = +bugzilla
# Gmail folders (what Gmail calls tags) TODO
[InboxFilter] [InboxFilter]
@ -26,3 +74,5 @@ max_age = 15
iocom/INBOX/ = 'NOT tag:inbox':iocom/INBOX.Archive/ iocom/INBOX/ = 'NOT tag:inbox':iocom/INBOX.Archive/
iocom/INBOX.Archive/ = 'tag:inbox':iocom/INBOX/ iocom/INBOX.Archive/ = 'tag:inbox':iocom/INBOX/
# TODO All folders <-> tags

@ -17,3 +17,8 @@ tabwidth = 4
gpg_key = 2B3A6377 gpg_key = 2B3A6377
sendmail_command = msmtp --account=DustinswanGmail -t sendmail_command = msmtp --account=DustinswanGmail -t
# sent_tags = sent # sent_tags = sent
[bindings]
[[search]]
'I I' = search tag:iocom AND tag:inbox
'G G' = search tag:gmail AND tag:inbox

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
while true; do while true; do
few -m; mbsync iocom; notmuch new few -m; mbsync -a; notmuch new
sleep 45 sleep 45
done done

@ -36,7 +36,7 @@ brew install ruby-install
brew install python --with-brewed-openssl brew install python --with-brewed-openssl
brew install macvim --HEAD --override-system-vim brew install macvim --HEAD --override-system-vim
brew install msmtp brew install msmtp
brew install mutt brew install watch
brew install urlview brew install urlview
brew install isync brew install isync
brew install mosh brew install mosh

@ -2,7 +2,6 @@ IMAPAccount gmail
Host imap.gmail.com Host imap.gmail.com
User dustinswan@gmail.com User dustinswan@gmail.com
PassCmd "gpg -d ~/.gmail-password.gpg" PassCmd "gpg -d ~/.gmail-password.gpg"
# SSL
UseIMAPS yes UseIMAPS yes
#CertificateFile ~/.mail/gmail.pem #CertificateFile ~/.mail/gmail.pem
@ -13,11 +12,11 @@ Account gmail
MaildirStore gmail-local MaildirStore gmail-local
Path ~/.mail/gmail/ Path ~/.mail/gmail/
Inbox ~/.mail/gmail/INBOX Inbox ~/.mail/gmail/INBOX
Flatten .
Channel gmail Channel gmail
Master :gmail-remote: Master :gmail-remote:
Slave :gmail-local: Slave :gmail-local:
#Path "[Gmail]."
# Include everything # Include everything
Patterns * Patterns *
# Automatically create missing mailboxes, both locally and on the server # Automatically create missing mailboxes, both locally and on the server
@ -32,7 +31,6 @@ IMAPAccount iocom
Host secure.emailsrvr.com Host secure.emailsrvr.com
User dswan@insors.com User dswan@insors.com
PassCmd "gpg -d ~/.iocom-password.gpg" PassCmd "gpg -d ~/.iocom-password.gpg"
# SSL
UseIMAPS yes UseIMAPS yes
IMAPStore iocom-remote IMAPStore iocom-remote

@ -61,7 +61,7 @@ ignore=
# query will override that exclusion. # query will override that exclusion.
# #
[search] [search]
exclude_tags=deleted;spam; #exclude_tags=deleted;spam;
# Maildir compatibility configuration # Maildir compatibility configuration
# #

Loading…
Cancel
Save