summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xofflineimap-notification8
1 files changed, 4 insertions, 4 deletions
diff --git a/offlineimap-notification b/offlineimap-notification
index 35abb24..eeecff0 100755
--- a/offlineimap-notification
+++ b/offlineimap-notification
@@ -1,11 +1,11 @@
#!/usr/bin/zsh
-new="$(find $HOME/.mail/*/*/new/ -type f | wc -l)"
-old="$(find $HOME/.mail/*/*/cur/ -type f | wc -l)"
+new="$(find $HOME/.mail/*/inbox/new/ -type f | wc -l)"
+old="$(find $HOME/.mail/*/inbox/cur/ -type f | wc -l)"
if [ $new -gt 0 ]
then
- export DISPLAY=:0; export XAUTHORITY=~/.Xauthority;
- notify-send "You've got mail."
+ export DISPLAY=:0; export XAUTHORITY=~/.Xauthority;
+ notify-send "You've got mail."
fi