summaryrefslogtreecommitdiff
path: root/newmail
diff options
context:
space:
mode:
authorTslil Clingman <tslil.clingman@gmail.com>2015-08-21 17:36:09 +0200
committerTslil Clingman <tslil.clingman@gmail.com>2015-08-21 17:36:09 +0200
commit0edc79de75b18aa67a35679f2d1097333861676e (patch)
tree22ae5c05464b0888d504da634043e8913547e63a /newmail
parentb3369e4e8d02e696fefdb8bda79e383717fcb843 (diff)
Tweaks
Diffstat (limited to 'newmail')
-rwxr-xr-xnewmail4
1 files changed, 2 insertions, 2 deletions
diff --git a/newmail b/newmail
index 5cbe117..5443d10 100755
--- a/newmail
+++ b/newmail
@@ -1,9 +1,9 @@
#!/usr/bin/env sh
-servers="gmail posteo"
+servers="gmail posteo gwu"
result=
-regexp='s#^machine \(.*\) login \(.*\) password \(.*\) port \([0-9]*\)$#-u \2:\3 imaps://\1:\4/INBOX#'
+regexp='s#^machine \(.*\) login \(.*\) password \(.*\) port \([0-9]*\)$#-u \2:"\3" imaps://\1:\4/INBOX#'
data=$(gpg --quiet --decrypt $HOME/.authinfo.gpg | grep 993)
for server in $servers; do
line=$(echo "$data" | grep $server | head -n 1)