MailLoop: create mail dir in loop. (can be removed by cleaner or by another reason).
This commit is contained in:
parent
434e84ff8c
commit
b841873b38
|
@ -2,9 +2,9 @@
|
||||||
# mymail_gmail_loop.sh
|
# mymail_gmail_loop.sh
|
||||||
|
|
||||||
MAILDIR=/tmp/$USER-mail_loop
|
MAILDIR=/tmp/$USER-mail_loop
|
||||||
mkdir --mode=700 $MAILDIR 2>/dev/null
|
|
||||||
|
|
||||||
while [ 1 ]; do
|
while [ 1 ]; do
|
||||||
|
mkdir --mode=700 $MAILDIR 2>/dev/null
|
||||||
val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py)
|
val=$(timeout -k 30 25 ~/.config/awesome/mail_loop_mymail.py)
|
||||||
if [[ "$val" == "" ]]; then val = "?"; fi
|
if [[ "$val" == "" ]]; then val = "?"; fi
|
||||||
echo $val > $MAILDIR/mymail_count
|
echo $val > $MAILDIR/mymail_count
|
||||||
|
|
Loading…
Reference in New Issue