update and clean
This commit is contained in:
parent
e5129a0c19
commit
91d40febf2
@ -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
|
||||||
|
@ -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
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user