]> git.donarmstrong.com Git - bin.git/commitdiff
* source ssh_agent info in getmail
authorDon Armstrong <don@donarmstrong.com>
Sat, 17 May 2008 19:49:10 +0000 (19:49 +0000)
committerDon Armstrong <don@donarmstrong.com>
Sat, 17 May 2008 19:49:10 +0000 (19:49 +0000)
getmail

diff --git a/getmail b/getmail
index e6a22779fc177488fc02cbb2f1cb2ec1c08ad04e..bb5a5e73943502ff639406f0b83c1e0df043a07b 100755 (executable)
--- a/getmail
+++ b/getmail
@@ -15,6 +15,9 @@ fi;
 # See if the server exists
 if [ -z "$CRON" ] || kill -0 `pgrep -U $(id -u) -x $MUA` 2>/dev/null; then
     if ping -q -c 3 $IMAPHOST >/dev/null 2>&1; then
+       if [ -e ~/.ssh/ssh_agent_info ]; then
+           . ~/.ssh/ssh_agent_info
+       fi;
        if nice -n 19 offlineimap -o -u Noninteractive.Basic 2>&1 |grep validity| \
            perl -ne 'my ($account,$list) = /UID validity problem for folder ([\w-]+)\.([\w-]+)/;
                       next unless defined $account and length $account;