MailLoop: create mail dir in loop. (can be removed by cleaner or by another reason).

awesome-3.5
Kolan Sh 2016-04-28 11:43:26 +03:00
parent 434e84ff8c
commit b841873b38
1 changed files with 1 additions and 1 deletions

View File

@ -2,9 +2,9 @@
# mymail_gmail_loop.sh
MAILDIR=/tmp/$USER-mail_loop
mkdir --mode=700 $MAILDIR 2>/dev/null
while [ 1 ]; do
mkdir --mode=700 $MAILDIR 2>/dev/null
val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py)
if [[ "$val" == "" ]]; then val = "?"; fi
echo $val > $MAILDIR/mymail_count