summaryrefslogtreecommitdiff
path: root/.fmail/.notmuch/hooks/pre-new
blob: a445a51e61c8f2d9c540486a045173b903621612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

. $HOME/.shenv

# In this script (actually within movemymail), 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

offline || movemymail

# ensure that notmuch is able to detect renames by archive-fmail-to-annex
ionice -c 3 expand-annex-mboxes