update and clean

This commit is contained in:
Jeff Lance 2021-02-27 01:30:26 +01:00
parent 91d40febf2
commit fb4c69743c
3 changed files with 51 additions and 0 deletions

26
conf.d/notmuch/post-new Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
# File : post-new
# Author : Jeff LANCE <email@jefflance.me>
# Date : 10.02.2015
# Last Modified Date: 26.02.2021
# Last Modified By : Jeff LANCE <email@jefflance.me>
ASTROID_BIN=$(which astroid)
echo "[Begin notmuch]: $(basename $0)"
echo "[----- notmuch]: local treatment"
notmuch tag --input=${HOME}/Mail/.notmuch/tagupdate
echo "[----- notmuch]: afew treatment"
afew --tag --new
afew --move-mails
echo "[End notmuch]: $(basename $0)"
if [ "x${DISPLAY}" != "x" ]; then
logger -t notmuch "Astroid polling stop requested during post-new hook"
$ASTROID_BIN --stop-polling 2>&1 >/dev/null
fi
# vim:ft=sh

21
conf.d/notmuch/pre-new Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# File : pre-new
# Author : Jeff LANCE <email@jefflance.me>
# Date : 04.05.2020
# Last Modified Date: 26.02.2021
# Last Modified By : Jeff LANCE <email@jefflance.me>
ASTROID_BIN=$(which astroid)
echo "[Begin notmuch]: $(basename $0) script"
if [ "x${DISPLAY}" != "x" ]; then
logger -t notmuch "Astroid polling start requested during pre-new hook"
$ASTROID_BIN --start-polling 2>&1 >/dev/null
fi
echo "[End notmuch]: $(basename $0) script"
exit 0
# vim:ft=sh

View File

@ -23,4 +23,8 @@
path: conf/msmtprc path: conf/msmtprc
${HOME}/.notmuch-config: ${HOME}/.notmuch-config:
path: conf/notmuch-config path: conf/notmuch-config
${HOME}/Mail/.notmuch/hooks:
glob: true
force: true
path: conf.d/notmuch/*