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 3/3] watch: add space before "UID" or "ARTICLE" in warnings
  2023-03-13 19:38  4% [PATCH 0/3] watch-related IMAP/NNTP tweaks Eric Wong
@ 2023-03-13 19:38  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-03-13 19:38 UTC (permalink / raw)
  To: meta

In other words, it now shows `imap://example.com/INBOX.foo UID:123'
instead of: `imap://example.com/INBOX.foo UID:123'
---
 lib/PublicInbox/Watch.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/PublicInbox/Watch.pm b/lib/PublicInbox/Watch.pm
index 90d82d21..d9aadf82 100644
--- a/lib/PublicInbox/Watch.pm
+++ b/lib/PublicInbox/Watch.pm
@@ -312,7 +312,7 @@ sub imap_fetch_all ($$) {
 	local $SIG{__WARN__} = sub {
 		my $pfx = ($_[0] // '') =~ /^([A-Z]: |# )/g ? $1 : '';
 		my $uid = $self->{cur_uid};
-		$warn_cb->("$pfx$uri", $uid ? ("UID:$uid") : (), "\n", @_);
+		$warn_cb->("$pfx$uri", $uid ? (" UID:$uid") : (), "\n", @_);
 	};
 	PublicInbox::NetReader::imap_each($self, $uri, \&net_cb, $self,
 					$self->{imap}->{$$uri});
@@ -451,7 +451,7 @@ sub watch_nntp_fetch_all ($$) {
 	local $SIG{__WARN__} = sub {
 		my $pfx = ($_[0] // '') =~ /^([A-Z]: |# )/g ? $1 : '';
 		my $art = $self->{cur_uid};
-		$warn_cb->("$pfx$uri", $art ? ("ARTICLE $art") : (), "\n", @_);
+		$warn_cb->("$pfx$uri", $art ? (" ARTICLE $art") : (), "\n", @_);
 	};
 	for $uri (@$uris) {
 		PublicInbox::NetReader::nntp_each($self, $uri, \&net_cb, $self,

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/3] watch-related IMAP/NNTP tweaks
@ 2023-03-13 19:38  4% Eric Wong
  2023-03-13 19:38  7% ` [PATCH 3/3] watch: add space before "UID" or "ARTICLE" in warnings Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-03-13 19:38 UTC (permalink / raw)
  To: meta

Forcing myself to use the slow IMAP/NNTP client libraries and
maybe make them pipelined someday...

Eric Wong (3):
  use v5.12 for various network client-side packages
  spamcheck: use v5.12 and golf
  watch: add space before "UID" or "ARTICLE" in warnings

 lib/PublicInbox/GitCredential.pm   |  8 +++++---
 lib/PublicInbox/NetNNTPSocks.pm    |  5 ++---
 lib/PublicInbox/NetReader.pm       |  3 +--
 lib/PublicInbox/NetWriter.pm       |  5 ++---
 lib/PublicInbox/Spamcheck.pm       | 12 ++++--------
 lib/PublicInbox/Spamcheck/Spamc.pm |  5 ++---
 lib/PublicInbox/URIimap.pm         |  5 ++---
 lib/PublicInbox/URInntps.pm        |  4 ++--
 lib/PublicInbox/Watch.pm           |  4 ++--
 9 files changed, 22 insertions(+), 29 deletions(-)

^ permalink raw reply	[relevance 4%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-03-13 19:38  4% [PATCH 0/3] watch-related IMAP/NNTP tweaks Eric Wong
2023-03-13 19:38  7% ` [PATCH 3/3] watch: add space before "UID" or "ARTICLE" in warnings 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).