summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-01-27 17:39:44 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-01-27 17:39:44 -0700
commitf95a05571afe962dc9aa1ffe6995444c06026910 (patch)
treeceeb3e7df6cc267dd3939c6df05fae39c1c2c36c
parent344694d50aa941e90c09108e453a17b273130c14 (diff)
downloadmailscripts-f95a05571afe962dc9aa1ffe6995444c06026910.tar.gz
gmi2email: treat SSL connection failure as a temporary failure
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rwxr-xr-xgmi2email4
1 files changed, 3 insertions, 1 deletions
diff --git a/gmi2email b/gmi2email
index 716a866..6b8bd6c 100755
--- a/gmi2email
+++ b/gmi2email
@@ -109,7 +109,9 @@ foreach my $sub (<$subs_fh>) {
($type, $data) = gemini_fetch($sub, abs_links => 1);
} catch {
my ($code) = /"gemini error: ([1-6])/;
- if (defined $code and $code == 4 or /missing or invalid gemini response/) {
+ if ( defined $code and $code == 4
+ or /missing or invalid gemini response/
+ or /failed to establish SSL connection/) {
warn "temporary failure retrieving $sub";
$next = 1, return; # try again next run
} else {