diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-01-06 22:59:26 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-01-06 22:59:26 +0800 |
commit | 25b947edf445a96db335fe285a8b253b214649ff (patch) | |
tree | 3f785cdbef303c71111debd067c95a62ea456587 /.offlineimap/postsync.sh | |
parent | 0ed3373f1c2d47aba769aa67439e05350c2792e9 (diff) | |
download | dotfiles-25b947edf445a96db335fe285a8b253b214649ff.tar.bz2 |
Rename .* => _*; Move out private contents.
Diffstat (limited to '.offlineimap/postsync.sh')
-rwxr-xr-x | .offlineimap/postsync.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/.offlineimap/postsync.sh b/.offlineimap/postsync.sh deleted file mode 100755 index c5a3985..0000000 --- a/.offlineimap/postsync.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# OfflineIMAP postsynchook -# -# Weitian LI -# 2015/02/02 -# - -## Check new mails & send notification -MAILDIR="${HOME}/Mail/" -newmails=0 -for d in `find ${MAILDIR} -maxdepth 2 -type d -iname '*inbox'`; do - n=`ls ${d}/new/ | wc -l` - newmails=`expr ${newmails} + ${n}` -done - -if [ ${newmails} -gt 0 ] && which notify-send >/dev/null 2>&1; then - export DISPLAY=":0" - export XAUTHORITY="${HOME}/.Xauthority" - notify-send -i 'mail-unread' -a "OfflineIMAP" \ - "OfflineIMAP: Received ${newmails} new mail(s)!" -fi - -## Invoke notmuch to index mails -notmuch new - |