summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/mailsync3
-rw-r--r--domains.csv6
2 files changed, 6 insertions, 3 deletions
diff --git a/bin/mailsync b/bin/mailsync
index a85bdf9..8ae8758 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -1,6 +1,9 @@
#!/usr/bin/env sh
# Sync mail and give notification if there is new mail.
+# Run only if user logged in (prevent cron errors)
+w | grep "^$USER\W" >/dev/null || exit
+
# Checks for internet connection and set notification script.
ping -q -c 1 1.1.1.1 > /dev/null || exit
command -v notify-send >/dev/null || echo "Note that \`libnotify\` or \`libnotify-send\` should be installed for pop-up mail notifications with this script."
diff --git a/domains.csv b/domains.csv
index 23914d6..62cdf33 100644
--- a/domains.csv
+++ b/domains.csv
@@ -100,8 +100,8 @@ illinois.edu, imap.gmail.com,993,smtp.gmail.com,465
iname.com,imap.mail.com,993,smtp.mail.com,587
insiberia.net,mail.autistici.org,993,smtp.autistici.org,465
insicuri.net,mail.autistici.org,993,smtp.autistici.org,465
-interia.eu,poczta.interia.pl,143,poczta.interia.pl,465
-interia.pl,poczta.interia.pl,143,poczta.interia.pl,465
+interia.eu,poczta.interia.pl,993,poczta.interia.pl,465
+interia.pl,poczta.interia.pl,993,poczta.interia.pl,465
inventati.org,mail.autistici.org,993,smtp.autistici.org,465
kipras.org,mail.kipras.org,993,mail.kipras.org,587
krutt.org,mail.autistici.org,993,smtp.autistici.org,465
@@ -141,7 +141,7 @@ outlook.de,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
outlook.at,imap-mail.outlook.com,993,smtp-mail.outlook.com,587
paranoici.org,mail.autistici.org,993,smtp.autistici.org,465
pm.me,127.0.0.1,1143,127.0.0.1,1025
-poczta.fm,poczta.interia.pl,143,poczta.interia.pl,465
+poczta.fm,poczta.interia.pl,993,poczta.interia.pl,465
poczta.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465
post.com,imap.mail.com,993,smtp.mail.com,587
posteo.de,posteo.de,993,posteo.de,587