From fc59e659114f29ddb3cc63a4cc6fd543fb946c31 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 12 Jan 2023 14:45:51 +0100 Subject: up --- .local/bin/fetch_mail.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '.local/bin/fetch_mail.sh') 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 -- cgit v1.2.3