* [PATCH 3/3] www_text: add AUTH=ANONYMOUS to IMAP URLs
2022-08-10 7:40 6% [PATCH 0/3] www: help text tweaks Eric Wong
@ 2022-08-10 7:40 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-08-10 7:40 UTC (permalink / raw)
To: meta
While the ';' requires escaping on the command-line, the
presence of ";AUTH=ANONYMOUS" communicates clearly that
anonymous access is supported in accordance to RFC 4505.
---
lib/PublicInbox/WwwText.pm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm
index 71b04561..c067369e 100644
--- a/lib/PublicInbox/WwwText.pm
+++ b/lib/PublicInbox/WwwText.pm
@@ -276,10 +276,12 @@ sub _add_non_http_urls ($$) {
$ctx->{ibx}->can('nntp_url') or return; # TODO extindex can have IMAP
my $urls = $ctx->{ibx}->imap_url($ctx);
if (@$urls) {
- $$txt .= "\nIMAP subfolder(s) are available under:";
- $$txt .= "\n " . join("\n ", @$urls);
+ $urls = join("\n ", @$urls);
+ $urls =~ s!://([^/@]+)/!://;AUTH=ANONYMOUS\@$1/!sg;
$$txt .= <<EOM
+IMAP subfolder(s) are available under:
+ $urls
# each subfolder (starting with `0') holds 50K messages at most
EOM
}
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] www: help text tweaks
@ 2022-08-10 7:40 6% Eric Wong
2022-08-10 7:40 7% ` [PATCH 3/3] www_text: add AUTH=ANONYMOUS to IMAP URLs Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2022-08-10 7:40 UTC (permalink / raw)
To: meta
Hope this is more helpful than before, already deployed to:
https://public-inbox.org/meta/_/text/help/#pop3
Eric Wong (3):
www_text: add #nntp, #pop3, and #imap anchors to help HTML
www_text: clarify the password+username is for POP3
www_text: add AUTH=ANONYMOUS to IMAP URLs
lib/PublicInbox/WwwText.pm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
^ permalink raw reply [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-08-10 7:40 6% [PATCH 0/3] www: help text tweaks Eric Wong
2022-08-10 7:40 7% ` [PATCH 3/3] www_text: add AUTH=ANONYMOUS to IMAP URLs 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).