aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-11-08 05:27:36 +0100
committerGuilhem Moulin <guilhem@fripost.org>2019-11-08 05:29:31 +0100
commit37ebe331178e2b7d225a31f64463aef5448d4970 (patch)
treeec5b13ac4be303d612a542a0442b5e540177c1d7
parenta4a371234215a7705f304875cc8af067bf3142af (diff)
libinterimap: honor compress={Yes/No}.
-rw-r--r--Changelog1
-rw-r--r--lib/Net/IMAP/InterIMAP.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog b/Changelog
index 48481dd..5b43c6f 100644
--- a/Changelog
+++ b/Changelog
@@ -84,6 +84,7 @@ interimap (0.5) upstream;
POSIX.1-2017, sec. 2.6.1.)
- libinterimap: don't panic() when inflate() reports the end of the
compression stream is reached.
+ - libinterimap: the 'compress' boolean wasn't honored.
-- Guilhem Moulin <guilhem@fripost.org> Fri, 10 May 2019 00:58:14 +0200
diff --git a/lib/Net/IMAP/InterIMAP.pm b/lib/Net/IMAP/InterIMAP.pm
index bb27009..3d5bdcf 100644
--- a/lib/Net/IMAP/InterIMAP.pm
+++ b/lib/Net/IMAP/InterIMAP.pm
@@ -61,7 +61,7 @@ my %OPTIONS = (
auth => qr/\A($RE_ATOM_CHAR+(?: $RE_ATOM_CHAR+)*)\z/,
command => qr/\A(\P{Control}+)\z/,
'null-stderr' => qr/\A(YES|NO)\z/i,
- compress => qr/\A($RE_ATOM_CHAR+(?: $RE_ATOM_CHAR+)*)\z/,
+ compress => qr/\A(YES|NO)\z/i,
SSL_protocols => qr/\A(!?$RE_SSL_PROTO(?: !?$RE_SSL_PROTO)*)\z/,
SSL_fingerprint => qr/\A((?:[A-Za-z0-9]+\$)?\p{AHex}+)\z/,
SSL_cipherlist => qr/\A(\P{Control}+)\z/,