From: Don Armstrong <don@donarmstrong.com>
Date: Sat, 17 May 2008 19:49:10 +0000 (+0000)
Subject:  * source ssh_agent info in getmail
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e1a0c99734bacad48cf42ca6cfbfe86330a2fe94;p=bin.git

 * source ssh_agent info in getmail
---

diff --git a/getmail b/getmail
index e6a2277..bb5a5e7 100755
--- 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;