update and clean

This commit is contained in:
Jeff Lance 2021-02-26 22:42:26 +01:00
parent e5129a0c19
commit 91d40febf2
2 changed files with 7 additions and 4 deletions

View File

@ -8,6 +8,8 @@
# Set some constants # Set some constants
MAILDIR=${HOME}/Mail MAILDIR=${HOME}/Mail
echo "[Begin astroid] $(basename $0) script"
function test_connection() { function test_connection() {
# Check if we have a connection # Check if we have a connection
@ -85,9 +87,9 @@ if [ test_connection ]; then
if [ test_maildir ]; then if [ test_maildir ]; then
# deal_with_spam # deal_with_spam
purge_trash purge_trash
sync_mail # sync_mail
sync_db # sync_db
refresh # refresh
else else
echo "[ASTROID]: no maildir" echo "[ASTROID]: no maildir"
fi fi
@ -98,5 +100,6 @@ fi
# We stop polling # We stop polling
# astroid --stop-polling # astroid --stop-polling
echo "[End astroid] $(basename $0) script"
# vim:ft=sh # vim:ft=sh

View File

@ -1,7 +1,7 @@
{ {
"host": "imap.ac-creteil.fr", "host": "imap.ac-creteil.fr",
"port": 143, "port": 143,
"tls": true, "tls": false,
"tlsOptions": { "tlsOptions": {
"rejectUnauthorized": false "rejectUnauthorized": false
}, },