chiark / gitweb /
pull-mail: New script to encapsulate what my crontab needs to do to pull
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Fri, 25 Oct 2002 12:32:28 +0000 (12:32 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Fri, 25 Oct 2002 12:32:28 +0000 (12:32 +0000)
down mail.

pull-mail [new file with mode: 0644]

diff --git a/pull-mail b/pull-mail
new file mode 100644 (file)
index 0000000..2c11b99
--- /dev/null
+++ b/pull-mail
@@ -0,0 +1,10 @@
+#! /bin/sh
+set -e
+
+if ! [ -e ~/.nomail ]; then
+    date >> ~/.fetchmail/log
+    fetchmail >> ~/.fetchmail/log
+    bsmtp-pull gluck
+fi
+
+exit 0