diff options
author | Joe <rrbo@proton.me> | 2023-01-12 14:45:51 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-01-12 14:45:51 +0100 |
commit | fc59e659114f29ddb3cc63a4cc6fd543fb946c31 (patch) | |
tree | 673b16b575f39bf08e7c97ea56d3cef9b105052d /.local/bin/fetch_mail.sh | |
parent | up (diff) | |
download | dotfiles-bsd-fc59e659114f29ddb3cc63a4cc6fd543fb946c31.tar.gz dotfiles-bsd-fc59e659114f29ddb3cc63a4cc6fd543fb946c31.tar.bz2 dotfiles-bsd-fc59e659114f29ddb3cc63a4cc6fd543fb946c31.tar.xz dotfiles-bsd-fc59e659114f29ddb3cc63a4cc6fd543fb946c31.tar.zst dotfiles-bsd-fc59e659114f29ddb3cc63a4cc6fd543fb946c31.zip |
up
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/fetch_mail.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh index f9eee36..4faabb2 100755 --- a/.local/bin/fetch_mail.sh +++ b/.local/bin/fetch_mail.sh @@ -17,14 +17,14 @@ else pre_count="$((pre_count + mb1 + mb2))" fi killall mbsync >/dev/null 2>&1 -# notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1 -{ +notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1 +# { mbsync -a -c /usr/home/jozan/.config/mbsync/mbsyncrc || notify-send -u low -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1 -}& -gsleep 0.2 -kill -74 $(pidof dwmblocks) >/dev/null 2>&1 -fg +# }& +# gsleep 0.2 +# kill -74 $(pidof dwmblocks) >/dev/null 2>&1 +# fg pre_count="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new | wc -l 2>/dev/null)" mb1="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new | wc -l 2>/dev/null)" mb2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_tos/INBOX/new | wc -l 2>/dev/null)" @@ -34,4 +34,4 @@ if [ $post_count -gt $pre_count ]; then fi echo $post_count >$mc_file sleep 1 -kill -74 $(pidof dwmblocks) >/dev/null 2>&1 +# kill -74 $(pidof dwmblocks) >/dev/null 2>&1 |