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 v2 2/5] pop3: implement IN-USE from RESP-CODES (RFC 2449)
  2022-07-20  9:24  6% ` [PATCH v2 0/5] public-inbox POP3 daemon Eric Wong
@ 2022-07-20  9:24  7%   ` Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2022-07-20  9:24 UTC (permalink / raw)
  To: meta

This may help clients communicate to users if they're
making parallel connections or if we have server bugs.
---
 lib/PublicInbox/POP3.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/PublicInbox/POP3.pm b/lib/PublicInbox/POP3.pm
index 86123563..51c2b71a 100644
--- a/lib/PublicInbox/POP3.pm
+++ b/lib/PublicInbox/POP3.pm
@@ -176,7 +176,7 @@ sub _login_ok ($) {
 		$self->{uid_max} = $self->{ibx}->over(1)->max;
 		\"+OK logged in\r\n";
 	} else {
-		\"-ERR unable to lock maildrop\r\n";
+		\"-ERR [IN-USE] unable to lock maildrop\r\n";
 	}
 }
 
@@ -350,6 +350,7 @@ USER\r
 PIPELINING\r
 UIDL\r
 EXPIRE 0\r
+RESP-CODES\r
 .\r
 EOM
 }

^ permalink raw reply related	[relevance 7%]

* [PATCH v2 0/5] public-inbox POP3 daemon
  2022-07-19  2:49  6% [PATCH 0/2] preliminary POP3 daemon Eric Wong
  2022-07-19  2:49  7% ` [PATCH 2/2] pop3: implement IN-USE from RESP-CODES (RFC 2449) Eric Wong
@ 2022-07-20  9:24  6% ` Eric Wong
  2022-07-20  9:24  7%   ` [PATCH v2 2/5] pop3: implement IN-USE from RESP-CODES (RFC 2449) Eric Wong
  1 sibling, 1 reply; 4+ results
From: Eric Wong @ 2022-07-20  9:24 UTC (permalink / raw)
  To: meta

Deletes seem working, and some more bugs with well-known ports.

Mainly tested with public-inbox-netd, but it's live and running
on public-inbox.org (sharing the same process with NNTP and
IMAP).

username: $(uuidgen)@inbox.comp.mail.public-inbox.meta
password: anonymous
ports 110 (POP3 w/ STARTTLS) and 995 (POP3S)

7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion:110
should also work for Tor users.

Eric Wong (5):
  public-inbox-pop3d - a mostly read-only POP3 server
  pop3: implement IN-USE from RESP-CODES (RFC 2449)
  pop3: TOP requests do not expire messages
  netd: setup TLS bits for well-known STARTTLS ports
  pop3: advertise STLS in CAPA if appropriate

 Documentation/public-inbox-config.pod |  12 +-
 Documentation/public-inbox-pop3d.pod  | 122 +++++++
 Documentation/standards.perl          |  13 +-
 MANIFEST                              |   5 +
 lib/PublicInbox/Config.pm             |   5 +-
 lib/PublicInbox/Daemon.pm             |  10 +-
 lib/PublicInbox/Inbox.pm              |  10 +-
 lib/PublicInbox/POP3.pm               | 447 ++++++++++++++++++++++++++
 lib/PublicInbox/POP3D.pm              | 231 +++++++++++++
 script/public-inbox-pop3d             |   8 +
 t/pop3d.t                             | 303 +++++++++++++++++
 11 files changed, 1148 insertions(+), 18 deletions(-)
 create mode 100644 Documentation/public-inbox-pop3d.pod
 create mode 100644 lib/PublicInbox/POP3.pm
 create mode 100644 lib/PublicInbox/POP3D.pm
 create mode 100755 script/public-inbox-pop3d
 create mode 100644 t/pop3d.t

^ permalink raw reply	[relevance 6%]

* [PATCH 2/2] pop3: implement IN-USE from RESP-CODES (RFC 2449)
  2022-07-19  2:49  6% [PATCH 0/2] preliminary POP3 daemon Eric Wong
@ 2022-07-19  2:49  7% ` Eric Wong
  2022-07-20  9:24  6% ` [PATCH v2 0/5] public-inbox POP3 daemon Eric Wong
  1 sibling, 0 replies; 4+ results
From: Eric Wong @ 2022-07-19  2:49 UTC (permalink / raw)
  To: meta

This may help clients communicate to users if they're
making parallel connections or if we have server bugs.
---
 lib/PublicInbox/POP3.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/PublicInbox/POP3.pm b/lib/PublicInbox/POP3.pm
index f920571d..5cffc556 100644
--- a/lib/PublicInbox/POP3.pm
+++ b/lib/PublicInbox/POP3.pm
@@ -176,7 +176,7 @@ sub _login_ok ($) {
 		$self->{uid_max} = $self->{ibx}->over(1)->max;
 		\"+OK logged in\r\n";
 	} else {
-		\"-ERR unable to lock maildrop\r\n";
+		\"-ERR [IN-USE] unable to lock maildrop\r\n";
 	}
 }
 
@@ -350,6 +350,7 @@ USER\r
 PIPELINING\r
 UIDL\r
 EXPIRE 0\r
+RESP-CODES\r
 .\r
 EOM
 }

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/2] preliminary POP3 daemon
@ 2022-07-19  2:49  6% Eric Wong
  2022-07-19  2:49  7% ` [PATCH 2/2] pop3: implement IN-USE from RESP-CODES (RFC 2449) Eric Wong
  2022-07-20  9:24  6% ` [PATCH v2 0/5] public-inbox POP3 daemon Eric Wong
  0 siblings, 2 replies; 4+ results
From: Eric Wong @ 2022-07-19  2:49 UTC (permalink / raw)
  To: meta

Only tested with mpop and getmail as far as real-world clients
go.  mpop is pretty strict and fast, too; getmail was ignoring
sequence number bugs :x

...And now I think I know where IMAP inherited horrible message
sequence number idea from :P

The on-disk storage aspect still has me a little nervous :x

over.sqlite3 is totally overkill (and thus slower than optimal)
for this, but I don't think it's worth a schema version change,
either.

Lot more code cleanups and maybe some optimizations on the way.

Eric Wong (2):
  public-inbox-pop3d - a mostly read-only POP3 server
  pop3: implement IN-USE from RESP-CODES (RFC 2449)

 Documentation/public-inbox-config.pod |  12 +-
 Documentation/public-inbox-pop3d.pod  | 122 +++++++
 Documentation/standards.perl          |  12 +-
 MANIFEST                              |   5 +
 lib/PublicInbox/Config.pm             |   5 +-
 lib/PublicInbox/Daemon.pm             |   8 +-
 lib/PublicInbox/Inbox.pm              |  10 +-
 lib/PublicInbox/POP3.pm               | 444 ++++++++++++++++++++++++++
 lib/PublicInbox/POP3D.pm              | 231 ++++++++++++++
 script/public-inbox-pop3d             |   8 +
 t/pop3d.t                             | 254 +++++++++++++++
 11 files changed, 1094 insertions(+), 17 deletions(-)
 create mode 100644 Documentation/public-inbox-pop3d.pod
 create mode 100644 lib/PublicInbox/POP3.pm
 create mode 100644 lib/PublicInbox/POP3D.pm
 create mode 100755 script/public-inbox-pop3d
 create mode 100644 t/pop3d.t

^ permalink raw reply	[relevance 6%]

Results 1-4 of 4 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-07-19  2:49  6% [PATCH 0/2] preliminary POP3 daemon Eric Wong
2022-07-19  2:49  7% ` [PATCH 2/2] pop3: implement IN-USE from RESP-CODES (RFC 2449) Eric Wong
2022-07-20  9:24  6% ` [PATCH v2 0/5] public-inbox POP3 daemon Eric Wong
2022-07-20  9:24  7%   ` [PATCH v2 2/5] pop3: implement IN-USE from RESP-CODES (RFC 2449) 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).