aboutsummaryrefslogtreecommitdiff
path: root/scripts/dot-local/bin/mailsync
diff options
context:
space:
mode:
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." ;;