feat(notmuch): second acc

This commit is contained in:
Pavel Korytov 2021-02-22 19:39:16 +03:00
parent a5b8c27879
commit 077391d793
6 changed files with 9 additions and 3 deletions

View file

@ -2,4 +2,5 @@
.config/filezilla/sitemanager.xml .config/filezilla/sitemanager.xml
.config/filezilla/filezilla.xml .config/filezilla/filezilla.xml
Mail/thexcloud/.credentials.gmailieer.json Mail/thexcloud/.credentials.gmailieer.json
Mail/progin6304/.credentials.gmailieer.json
.wegorc .wegorc

Binary file not shown.

3
Mail/.notmuch/hooks/post-new Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
notmuch tag +main "path:thexcloud/**"
notmuch tag +progin "path:progin6304/**"

View file

@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
GMI="/home/pavel/Programs/miniconda3/envs/mail/bin/gmi" GMI="/home/pavel/Programs/miniconda3/envs/mail/bin/gmi"
(cd /home/pavel/Mail/thexcloud/ && $GMI sync) (cd /home/pavel/Mail/thexcloud/ && $GMI sync)
(cd /home/pavel/Mail/progin6304/ && $GMI sync)

View file

@ -0,0 +1 @@
{"replace_slash_with_dot": false, "account": "progin6304@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["main", "progin", "new"], "ignore_remote_labels": ["CATEGORY_PROMOTIONS", "CATEGORY_UPDATES", "CATEGORY_PERSONAL", "CATEGORY_FORUMS", "CATEGORY_SOCIAL"], "remove_local_messages": true, "file_extension": ""}

View file

@ -13,9 +13,9 @@ NEW_UNREAD=$(notmuch count "$QUERY")
ALL_UNREAD=$(notmuch count "$ALL_QUERY") ALL_UNREAD=$(notmuch count "$ALL_QUERY")
if [ $NEW_UNREAD -gt 0 ]; then if [ $NEW_UNREAD -gt 0 ]; then
notify-send "New Mail" "$NEW_UNREAD new messages\n$ALL_UNREAD total" MAIN_UNREAD=$(notmuch count "tag:unread AND tag:main")
# elif [ $ALL_UNREAD -gt 0 ]; then PROGIN_UNREAD=$(notmuch count "tag:unread AND tag:progin")
# notify-send "New Mail" "$ALL_UNREAD unread messages" notify-send "New Mail" "$NEW_UNREAD new messages\n$MAIN_UNREAD thexcloud@gmail.com\n$PROGIN_UNREAD progin6304@gmail.com\n$ALL_UNREAD total"
fi fi
echo "$(date +%s)" > $CHECK_FILE echo "$(date +%s)" > $CHECK_FILE