mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(notmuch): second acc
This commit is contained in:
parent
a5b8c27879
commit
077391d793
6 changed files with 9 additions and 3 deletions
|
|
@ -2,4 +2,5 @@
|
|||
.config/filezilla/sitemanager.xml
|
||||
.config/filezilla/filezilla.xml
|
||||
Mail/thexcloud/.credentials.gmailieer.json
|
||||
Mail/progin6304/.credentials.gmailieer.json
|
||||
.wegorc
|
||||
Binary file not shown.
3
Mail/.notmuch/hooks/post-new
Executable file
3
Mail/.notmuch/hooks/post-new
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
notmuch tag +main "path:thexcloud/**"
|
||||
notmuch tag +progin "path:progin6304/**"
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
1
Mail/progin6304/.gmailieer.json
Normal file
1
Mail/progin6304/.gmailieer.json
Normal 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": ""}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue