mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(mail): updates
This commit is contained in:
parent
0429ab2126
commit
6d0217c49c
7 changed files with 20 additions and 13 deletions
3
.bashrc
3
.bashrc
|
|
@ -5,6 +5,9 @@ xhost +local:root > /dev/null 2>&1
|
||||||
|
|
||||||
use_fish=true
|
use_fish=true
|
||||||
|
|
||||||
|
# ===================== PROGRAMS =====================
|
||||||
|
export MANPAGER="sh -c 'sed -e s/.\\\\x08//g | bat -l man -p'"
|
||||||
|
|
||||||
# ===================== PATHS =====================
|
# ===================== PATHS =====================
|
||||||
if [ -d "$HOME/bin" ] ; then
|
if [ -d "$HOME/bin" ] ; then
|
||||||
export PATH="$HOME/bin:$PATH"
|
export PATH="$HOME/bin:$PATH"
|
||||||
|
|
|
||||||
8
.mailcap
8
.mailcap
|
|
@ -1,13 +1,9 @@
|
||||||
###
|
|
||||||
### Begin Red Hat Mailcap
|
|
||||||
###
|
|
||||||
|
|
||||||
audio/*; mpc add %s
|
audio/*; mpc add %s
|
||||||
|
|
||||||
image/*; /usr/bin/xdg-open %s
|
image/*; feh %s
|
||||||
|
|
||||||
application/msword; /usr/bin/xdg-open %s
|
application/msword; /usr/bin/xdg-open %s
|
||||||
application/pdf; zathura %s
|
application/pdf; zathura %s
|
||||||
application/postscript ; /usr/bin/xdg-open %s
|
application/postscript ; zathura %s
|
||||||
|
|
||||||
text/html; /usr/bin/xdg-open %s
|
text/html; /usr/bin/xdg-open %s
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,10 @@ primary_email=thexcloud@gmail.com
|
||||||
# in the mail store.
|
# in the mail store.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
other_email=progin6304@gmail.com;
|
||||||
|
|
||||||
[new]
|
[new]
|
||||||
tags=new
|
tags=new;
|
||||||
ignore=.osync_workdir
|
ignore=.osync_workdir
|
||||||
|
|
||||||
# Search configuration
|
# Search configuration
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
notmuch tag +main "path:thexcloud/**"
|
notmuch tag +main "path:thexcloud/** AND tag:new"
|
||||||
notmuch tag +progin "path:progin6304/**"
|
notmuch tag +progin "path:progin6304/** AND tag:new"
|
||||||
|
notmuch tag -new "tag:new"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
#!/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)
|
parallel -j0 "(cd /home/pavel/Mail/{}/ && $GMI sync)" ::: thexcloud progin6304
|
||||||
(cd /home/pavel/Mail/progin6304/ && $GMI sync)
|
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"replace_slash_with_dot": true, "account": "thexcloud@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["progin", "main", "new"], "ignore_remote_labels": ["CATEGORY_PROMOTIONS", "CATEGORY_SOCIAL", "CATEGORY_PERSONAL", "CATEGORY_UPDATES", "CATEGORY_FORUMS"], "remove_local_messages": true, "file_extension": ""}
|
{"replace_slash_with_dot": true, "account": "thexcloud@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["progin", "new", "main"], "ignore_remote_labels": ["CATEGORY_UPDATES", "CATEGORY_PROMOTIONS", "CATEGORY_PERSONAL", "CATEGORY_SOCIAL", "CATEGORY_FORUMS"], "remove_local_messages": true, "file_extension": ""}
|
||||||
|
|
@ -15,7 +15,13 @@ ALL_UNREAD=$(notmuch count "$ALL_QUERY")
|
||||||
if [ $NEW_UNREAD -gt 0 ]; then
|
if [ $NEW_UNREAD -gt 0 ]; then
|
||||||
MAIN_UNREAD=$(notmuch count "tag:unread AND tag:main")
|
MAIN_UNREAD=$(notmuch count "tag:unread AND tag:main")
|
||||||
PROGIN_UNREAD=$(notmuch count "tag:unread AND tag:progin")
|
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"
|
read -r -d '' NOTIFICATION <<EOM
|
||||||
|
$NEW_UNREAD new messages
|
||||||
|
$MAIN_UNREAD thexcloud@gmail.com
|
||||||
|
$PROGIN_UNREAD progin6304@gmail.com
|
||||||
|
$ALL_UNREAD total
|
||||||
|
EOM
|
||||||
|
notify-send "New Mail" "$NOTIFICATION"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$(date +%s)" > $CHECK_FILE
|
echo "$(date +%s)" > $CHECK_FILE
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue