From e1a0c99734bacad48cf42ca6cfbfe86330a2fe94 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sat, 17 May 2008 19:49:10 +0000 Subject: [PATCH] * source ssh_agent info in getmail --- getmail | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5