user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: Eric Wong <e@80x24.org>
Cc: meta@public-inbox.org
Subject: Re: [RFC] pop3: support `?limit=$NUM' parameter in mailbox name
Date: Wed, 13 Sep 2023 11:33:31 -0400	[thread overview]
Message-ID: <20230913-sizzling-uncoated-629002@meerkat> (raw)
In-Reply-To: <20230913062040.M617670@dcvr>

On Wed, Sep 13, 2023 at 06:20:40AM +0000, Eric Wong wrote:
> Eric Wong <e@80x24.org> wrote:
> > I'm not sure if `?' or `=' are allowed characters in POP3
> > mailbox names.  In fact, I can't find any information on
> > valid characters allowed in RFC 1081 nor RFC 1939.

It's a username, though, not mailbox name? There's no restriction on the
characters or length of the username, though I'm guessing some UI clients may
have their own limits regarding the length of the username field.

> Of course, the parameters and all manner of special characters
> can also be placed the password, so `anonymous?limit=1000'.
> 
> But somehow putting parameters in the "password" (even a
> well-known and obvious one) feels wrong.

What if we move the uuid into the password field -- it seems it belongs there
anyway, as it's tied to the user cookie.

username: newsgroup.name?params
password: $(uuidgen)

So, in my example it becomes:

username: org.kernel.vger.git?limit=1000
password: 288e5e35-1a35-46ef-b3d5-6d94c20aeab8

This could be backward-compatible with the current implementation -- if there
is an @ in the username field, then the cookie is based on what's preceding
it. If there's none, then we use the password field (unless it's "anonymous").

This way we're less likely to run into any problems with username length
limitations set by MUAs.

-K

  reply	other threads:[~2023-09-13 15:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 21:08 pop3 usability thoughts Konstantin Ryabitsev
2023-09-12 22:40 ` [RFC] pop3: support `?limit=$NUM' parameter in mailbox name Eric Wong
2023-09-13  6:20   ` Eric Wong
2023-09-13 15:33     ` Konstantin Ryabitsev [this message]
2023-09-13 22:03       ` Eric Wong
2023-09-15 19:17         ` Konstantin Ryabitsev
2023-09-13 16:08   ` Konstantin Ryabitsev
2023-09-14  0:38     ` Eric Wong
2023-09-15 20:03       ` Konstantin Ryabitsev
2023-09-15 20:41         ` Eric Wong
2023-09-18 13:46           ` Konstantin Ryabitsev
2023-09-18 21:14             ` Eric Wong
2023-09-19 21:28               ` Konstantin Ryabitsev
2023-09-22  2:18                 ` [PATCH] pop3: support initial_limit " Eric Wong
2023-09-22 18:02                   ` Konstantin Ryabitsev
2023-09-22 18:38                     ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230913-sizzling-uncoated-629002@meerkat \
    --to=konstantin@linuxfoundation.org \
    --cc=e@80x24.org \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).