diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2017-08-16 17:58:47 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2017-08-16 17:58:47 -0700 |
commit | b930ffd00ee65d19512176b6bf32ba3c6b628c39 (patch) | |
tree | 445f3b17112616e84d545a689f9101307c4dd1c3 /.fmail | |
parent | b18513b2907b7ab1655422d31841577971ae5a2a (diff) | |
download | dotfiles-b930ffd00ee65d19512176b6bf32ba3c6b628c39.tar.gz |
move notmuch db->maildir processing into movemail
So that just typing 'movemail' ensures that all info stored on IMAP
server.
Diffstat (limited to '.fmail')
-rwxr-xr-x | .fmail/.notmuch/hooks/pre-new | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/.fmail/.notmuch/hooks/pre-new b/.fmail/.notmuch/hooks/pre-new index 215e3569..5e77289b 100755 --- a/.fmail/.notmuch/hooks/pre-new +++ b/.fmail/.notmuch/hooks/pre-new @@ -12,28 +12,10 @@ # Note that another aspect of this setup is not using an 'inbox' tag. -# In this script, we move mail according to tags that may have been -# added since the last 'notmuch new' run. Then we sync with my IMAP -# server. Then in the post-new script we add tags to new messages in -# particular folders - -# ensure all drafts are in the drafts folder -floating_drafts=$(notmuch search --output=files -- tag:draft and not folder:drafts) -if [ ! -z "$floating_drafts" ]; then - mdmv $floating_drafts $HOME/.fmail/drafts -fi - -# ensure all spam is in the spam folder to train FastMail's spam filter -floating_spam=$(notmuch search --output=files -- tag:spam and not folder:spam) -if [ ! -z "$floating_spam" ]; then - mdmv $floating_spam $HOME/.fmail/spam -fi - -# ensure all deleted messages are in the trash folder -floating_deleted=$(notmuch search --output=files -- tag:deleted and not folder:trash) -if [ ! -z "$floating_deleted" ]; then - mdmv $floating_deleted $HOME/.fmail/trash -fi +# In this script (actually within movemail), we move mail according to +# tags that may have been added since the last 'notmuch new' run. +# Then we sync with my IMAP server. Then in the post-new script we +# add tags to new messages in particular folders movemail |