aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/login
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/login')
-rwxr-xr-xcontrib/login16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/login b/contrib/login
new file mode 100755
index 00000000..952594af
--- /dev/null
+++ b/contrib/login
@@ -0,0 +1,16 @@
+# ~/.bash_login
+#
+
+# Start Fetchmail up when I Login.
+#
+# TDEV=my PRESENT terminal device IE: ttyp2, tty5, ....
+#
+export TDEV=`tty | sed -n -e "s#/dev/##p"`
+#
+if [ ! -s ~/.fetchmail ]; then
+ /usr/local/bin/fetchmail -d 300
+ echo "owner" >.fetchmail.$TDEV
+else
+ echo "notowner" >.fetchmail.$TDEV
+fi
+# END of Fetchmail startup