Created
March 31, 2018 13:58
-
-
Save inbasic/8edcc086d4816408dec6d4f4bb361054 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/usr/local/bin/notmuch search --exclude=false --output=files tag:deleted | grep -v "offline/trash" | xargs -I % sh -c "mv % /Volumes/emails/archive/offline/trash/cur/" | |
/usr/local/bin/notmuch search --exclude=false --output=files tag:spam | grep -v "offline/spam" | xargs -I % sh -c "mv % /Volumes/emails/archive/offline/spam/cur/" | |
/usr/local/bin/notmuch tag -deleted --exclude=false path:offline/trash/** | |
/usr/local/bin/notmuch tag -spam --exclude=false path:offline/spam/** | |
/usr/local/bin/notmuch new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment