Decomissioned: archive dyndns mail parserver script for automated account renewal...
authorSven Hoexter <sven@stormbind.net>
Mon, 14 Apr 2014 15:22:43 +0000 (17:22 +0200)
committerSven Hoexter <sven@stormbind.net>
Mon, 14 Apr 2014 15:22:43 +0000 (17:22 +0200)
stormbind/dyndns-mailparser.sh [new file with mode: 0644]

diff --git a/stormbind/dyndns-mailparser.sh b/stormbind/dyndns-mailparser.sh
new file mode 100644 (file)
index 0000000..33ffbb0
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/sh
+logfile=/home/sven/.procmail/dyndns.log
+while read -r inline; do
+    if echo $inline | grep -P '^https://account.dyn.com/eml/.*' > /dev/null 2>&1; then
+        echo "Executing: curl -L -i $inline on $(date)" > $logfile
+        curl -L -i $inline >> $logfile 2>&1
+    fi
+done