tag emails as inbox if addressed in To or Cc
This commit is contained in:
@@ -21,6 +21,10 @@ sync=`date +%s`
|
|||||||
echo "[DEBUG] Sync notmuch database with new mails"
|
echo "[DEBUG] Sync notmuch database with new mails"
|
||||||
notmuch new
|
notmuch new
|
||||||
|
|
||||||
|
# Inbox (first time)
|
||||||
|
echo "[DEBUG] Tag mails in in INBOX folder"
|
||||||
|
notmuch tag +inbox -- path:INBOX/**
|
||||||
|
|
||||||
# Move selectedly tagged mails to folders if they are only in INBOX
|
# Move selectedly tagged mails to folders if they are only in INBOX
|
||||||
echo "[DEBUG] Move tagged mails in INBOX to folders (move-tag.sh)"
|
echo "[DEBUG] Move tagged mails in INBOX to folders (move-tag.sh)"
|
||||||
bash $CURDIR/scripts/move-tag.sh ${var_conn}
|
bash $CURDIR/scripts/move-tag.sh ${var_conn}
|
||||||
@@ -35,7 +39,7 @@ notmuch new
|
|||||||
echo "[DEBUG] Tag mails in offline ARCHIVE folder"
|
echo "[DEBUG] Tag mails in offline ARCHIVE folder"
|
||||||
notmuch tag +archive -- path:ARCHIVE/**
|
notmuch tag +archive -- path:ARCHIVE/**
|
||||||
|
|
||||||
# Inbox
|
# Inbox (2nd time)
|
||||||
echo "[DEBUG] Tag mails in in INBOX folder"
|
echo "[DEBUG] Tag mails in in INBOX folder"
|
||||||
notmuch tag +inbox -- path:INBOX/**
|
notmuch tag +inbox -- path:INBOX/**
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user