diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2017-06-13 08:03:30 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2017-06-13 08:07:31 +0100 |
commit | 7a77118b1cec1e0bf1ed935742945336108af5cb (patch) | |
tree | a06694024b6819574f2ee59ff5f9ca7127d4c1d5 /.fmail | |
parent | f92fc15665cee95f5e993a08e9598f63ad3733d6 (diff) | |
download | dotfiles-7a77118b1cec1e0bf1ed935742945336108af5cb.tar.gz |
remove notmuch & shells in Emacs
See notes on current blocker in ~/doc/org/notmuch.org
Diffstat (limited to '.fmail')
-rwxr-xr-x | .fmail/.notmuch/hooks/post-new | 18 | ||||
-rwxr-xr-x | .fmail/.notmuch/hooks/pre-new | 46 |
2 files changed, 0 insertions, 64 deletions
diff --git a/.fmail/.notmuch/hooks/post-new b/.fmail/.notmuch/hooks/post-new deleted file mode 100755 index e824a866..00000000 --- a/.fmail/.notmuch/hooks/post-new +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -. $HOME/.shenv - -# mark all sent mail as read -notmuch tag -unread -- folder:sent - -# mark all drafts as drafts, and as read -notmuch tag -unread +draft -- folder:drafts - -# mark all spam as spam -notmuch tag +spam -- folder:spam - -# mark all trash as trash -notmuch tag +deleted -- folder:trash - -# mark all archived mail as read and unflagged -notmuch tag -unread -flagged -- path:pre2012/** or path:2013/** or path:2014/** or path:2015/** or path:2016/** or path:2017a/** diff --git a/.fmail/.notmuch/hooks/pre-new b/.fmail/.notmuch/hooks/pre-new deleted file mode 100755 index 2c4f014e..00000000 --- a/.fmail/.notmuch/hooks/pre-new +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -. $HOME/.shenv - -# The primary purpose of my pre-new and post-new scripts is to -# maintain the 'draft', 'spam', 'deleted' and 'unread' tags such that -# the only data in the notmuch database that cannot be reproduced from -# the Maildir is which threads have been killed, which is not -# important information. Then there is no need to sync the notmuch -# database between machines. Syncing the maildir with mbsync(1) is -# sufficient. - -# 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 - -# propagate the 'killed' tag to all messages in the killed message's thread -killed_threads=$(notmuch search --output=threads tag:killed) -if [ ! -z "$killed_threads" ]; then - notmuch tag -unread -- $killed_threads -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 - -movemail - -#mount-archived-mail |