about summary refs log tree commit homepage
path: root/lib/PublicInbox/NetReader.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-09-09 05:25:05 +0000
committerEric Wong <e@80x24.org>2021-09-09 05:42:58 +0000
commitbbc43425b6710d5687365956764dffc8590a7c58 (patch)
treeb66fce32cbdf20443cbf6b5ede851a93530bca7a /lib/PublicInbox/NetReader.pm
parent4558467b5265828b19958e920fd9388d734cf9e9 (diff)
downloadpublic-inbox-bbc43425b6710d5687365956764dffc8590a7c58.tar.gz
Some proprietary servers may do wacky things and give the
wrong size, so Mail::IMAPClient has a knob for this which
we can expose to users to workaround this.
Diffstat (limited to 'lib/PublicInbox/NetReader.pm')
-rw-r--r--lib/PublicInbox/NetReader.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/PublicInbox/NetReader.pm b/lib/PublicInbox/NetReader.pm
index 181741f6..a0e52fc5 100644
--- a/lib/PublicInbox/NetReader.pm
+++ b/lib/PublicInbox/NetReader.pm
@@ -285,12 +285,16 @@ sub imap_common_init ($;$) {
         my $mic_common = {}; # scheme://authority => Mail:IMAPClient arg
         for my $uri (@{$self->{imap_order}}) {
                 my $sec = uri_section($uri);
-                for my $k (qw(Starttls Debug Compress)) {
+
+                # knobs directly for Mail::IMAPClient->new
+                for my $k (qw(Starttls Debug Compress Ignoresizeerrors)) {
                         my $bool = cfg_bool($cfg, "imap.$k", $$uri) // next;
                         $mic_common->{$sec}->{$k} = $bool;
                 }
                 my $to = cfg_intvl($cfg, 'imap.timeout', $$uri);
                 $mic_common->{$sec}->{Timeout} = $to if $to;
+
+                # knobs we use ourselves:
                 my $sa = socks_args($cfg->urlmatch('imap.Proxy', $$uri));
                 $self->{cfg_opt}->{$sec}->{-proxy_cfg} = $sa if $sa;
                 for my $k (qw(pollInterval idleInterval)) {