aboutsummaryrefslogtreecommitdiff
path: root/scripts/dot-local/bin/mailsync
diff options
context:
space:
mode:
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-02-10 09:56:03 -0500
committerMohammad Reza Karimi <m.r.karimi.j@gmail.com>2026-02-10 09:56:03 -0500
commit8d416aa3cc6a562cb4d676eafb92d52b1ef3d334 (patch)
tree05db378117b6b67d3350b56b8702d6faac1fa545 /scripts/dot-local/bin/mailsync
parentab7303e1d893f33e09dbc8493f9a9179a7a40a4a (diff)
updates
Diffstat (limited to 'scripts/dot-local/bin/mailsync')
-rwxr-xr-xscripts/dot-local/bin/mailsync9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/dot-local/bin/mailsync b/scripts/dot-local/bin/mailsync
index be2f93d..4b0df46 100755
--- a/scripts/dot-local/bin/mailsync
+++ b/scripts/dot-local/bin/mailsync
@@ -23,7 +23,12 @@ fi
notify()
{
- notify-send --app-name="Mail" -- "$1" "$2"
+ notify-send --app-name="Mail" --app-icon=/home/moreka/Pictures/read.png -- "$1" "$2"
+ # if [ $# -ge 3 ]; then
+ # dms notify "$1" "$2" --file "$3" --app "Mail" --icon /home/moreka/Pictures/read.png
+ # else
+ # dms notify "$1" "$2" --app "Mail" --icon /home/moreka/Pictures/read.png
+ # fi
}
MAILDIR="$XDG_DATA_HOME/mail"
@@ -75,7 +80,7 @@ sync_and_notify()
from="${from% *}"
from="${from%\"}"
from="${from#\"}"
- notify "$from:" "$subject"
+ notify "$from:" "$subject" "$file"
done
;;
*) echo "No new mail for $1." ;;