user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 8/8] net_reader: support Mail::IMAPClient Ignoresizeerrors
  2021-09-09  5:24  7% [PATCH 0/8] net_reader: simplify + fix bugs Eric Wong
@ 2021-09-09  5:25  6% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-09-09  5:25 UTC (permalink / raw)
  To: meta

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.
---
 lib/PublicInbox/NetReader.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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)) {

^ permalink raw reply related	[relevance 6%]

* [PATCH 0/8] net_reader: simplify + fix bugs
@ 2021-09-09  5:24  7% Eric Wong
  2021-09-09  5:25  6% ` [PATCH 8/8] net_reader: support Mail::IMAPClient Ignoresizeerrors Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-09-09  5:24 UTC (permalink / raw)
  To: meta

What started off as a series of cleanups leads to some minor bug
fixes for some uncommon corner-cases.  These changes will
hopefully simplify IPC for sharing auth with lei/store and
IMAP IDLE watchers.

Eric Wong (8):
  net_reader: do not set "SSL" fields for non-TLS
  net_reader: set IMAPClient Keepalive flag late
  net_reader: preserve memoized IMAPClient arg for SOCKS
  net_reader: nntp_opt => cfg_opt
  net_reader: imap_opt => cfg_opt
  net_reader: combine Net::NNTP and IMAPClient args
  net_reader: improve naming of common args
  net_reader: support Mail::IMAPClient Ignoresizeerrors

 lib/PublicInbox/NetReader.pm | 94 ++++++++++++++++++------------------
 lib/PublicInbox/Watch.pm     | 10 ++--
 2 files changed, 53 insertions(+), 51 deletions(-)

^ permalink raw reply	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-09-09  5:24  7% [PATCH 0/8] net_reader: simplify + fix bugs Eric Wong
2021-09-09  5:25  6% ` [PATCH 8/8] net_reader: support Mail::IMAPClient Ignoresizeerrors Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).