diff --git a/.config/yadm/encrypt b/.config/yadm/encrypt index a45290e..ed0c273 100644 --- a/.config/yadm/encrypt +++ b/.config/yadm/encrypt @@ -2,4 +2,5 @@ .config/filezilla/sitemanager.xml .config/filezilla/filezilla.xml Mail/thexcloud/.credentials.gmailieer.json +Mail/progin6304/.credentials.gmailieer.json .wegorc \ No newline at end of file diff --git a/.config/yadm/files.gpg b/.config/yadm/files.gpg index f29da1e..97627c9 100644 Binary files a/.config/yadm/files.gpg and b/.config/yadm/files.gpg differ diff --git a/Mail/.notmuch/hooks/post-new b/Mail/.notmuch/hooks/post-new new file mode 100755 index 0000000..6648d82 --- /dev/null +++ b/Mail/.notmuch/hooks/post-new @@ -0,0 +1,3 @@ +#!/bin/bash +notmuch tag +main "path:thexcloud/**" +notmuch tag +progin "path:progin6304/**" \ No newline at end of file diff --git a/Mail/.notmuch/hooks/pre-new b/Mail/.notmuch/hooks/pre-new index e86e1c9..d549cb2 100755 --- a/Mail/.notmuch/hooks/pre-new +++ b/Mail/.notmuch/hooks/pre-new @@ -1,3 +1,4 @@ #!/bin/bash GMI="/home/pavel/Programs/miniconda3/envs/mail/bin/gmi" (cd /home/pavel/Mail/thexcloud/ && $GMI sync) +(cd /home/pavel/Mail/progin6304/ && $GMI sync) diff --git a/Mail/progin6304/.gmailieer.json b/Mail/progin6304/.gmailieer.json new file mode 100644 index 0000000..369d4e1 --- /dev/null +++ b/Mail/progin6304/.gmailieer.json @@ -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": ""} \ No newline at end of file diff --git a/bin/scripts/check-email b/bin/scripts/check-email index f41337d..d4c86af 100755 --- a/bin/scripts/check-email +++ b/bin/scripts/check-email @@ -13,9 +13,9 @@ NEW_UNREAD=$(notmuch count "$QUERY") ALL_UNREAD=$(notmuch count "$ALL_QUERY") if [ $NEW_UNREAD -gt 0 ]; then - notify-send "New Mail" "$NEW_UNREAD new messages\n$ALL_UNREAD total" -# elif [ $ALL_UNREAD -gt 0 ]; then -# notify-send "New Mail" "$ALL_UNREAD unread messages" + MAIN_UNREAD=$(notmuch count "tag:unread AND tag:main") + PROGIN_UNREAD=$(notmuch count "tag:unread AND tag:progin") + 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 echo "$(date +%s)" > $CHECK_FILE