user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: "Julien ÉLIE" <julien@trigofacile.com>
Cc: inn-workers@lists.isc.org, meta@public-inbox.org
Subject: Re: NNTP COMPRESS clients? RFC 8054
Date: Sat, 21 Sep 2019 20:35:25 +0000	[thread overview]
Message-ID: <20190921203525.GA26535@dcvr> (raw)
In-Reply-To: <4a50b21c-bd8f-a0c6-a1f9-3ff23a30328b@trigofacile.com>

Julien ÉLIE <julien@trigofacile.com> wrote:
> Hi Eric,
> 
> > 	git clone https://80x24.org/perl-libnet.git
> > 	(nntp-compress branch)

(oops, totally forgot about this for a few months :x)
<snip>

> https://80x24.org/perl-libnet.git/commit/?h=nntp-compress&id=0ab5c363a69702e586b7ef06be3ebff3e78656b7
> 
> +  croak("NNTP connection already compressed ($comp)") if $comp;
> +  croak("$alg not supported (only 'DEFLATE')") if $alg ne 'DEFLATE';
> 
> Note that these messages have different response codes:  502 for the first
> one, 503 for the last one.

I'm not sure if faking NNTP server error codes in a client is
appropriate if the failure is entirely on the client side(*).

Fwiw, Net::NNTP currently dies if ->starttls is repeated,
so I'm following that behavior.

(*) LWP fakes HTTP error codes, and it annoyed me to no end
    back in the day...

> and
> +  $err == Z_OK or die "Inflate->new failed: $err\n";
> and
> +  $err == Z_OK or die "Deflate->new failed: $err\n";
> 
> It should be a 403 response code, and then the connections goes on
> uncompressed (same remark found in your patch against public-inbox-nntpd).

Also, I most perl code (including core) just croaks/dies to
raise an exception on allocation failure.  Bugs or ABI
mismatches in Compress::Raw::Zlib leading to failure are
probably to rare to do anything with besides croak/die.

> > My plan is to keep public-inbox-nntpd read-only; since (AFAIK)
> > NNTP lacks good spam filtering
> 
> Isn't Cleanfeed good enough for your needs?
>   http://www.mixmin.net/cleanfeed/
> 
> I am also aware of a use of SpamAssassin with INN.  Maybe it would better
> fit your expectations?

*shrug*  I also wouldn't know how NNTP <-> mail would work for a
decentralized workflow where everybody is expected to To/Cc one
another and merely agree on some mailing list addresses as a
logging/archival channel (this is how Linux kernel and git
development works, at least).

I wouldn't want NNTP servers to become open relays, either...

I still think email has the best chance of being a federated
identity provider for Free software development.

      reply	other threads:[~2019-09-21 20:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190706044942.wmgjwbfy4vwntogu@dcvr>
     [not found] ` <b5fefbe5-faa2-4f70-41fb-bd5d7aa73101@trigofacile.com>
2019-07-15  1:25   ` NNTP COMPRESS clients? RFC 8054 Eric Wong
2019-07-15 20:17     ` Julien ÉLIE
2019-09-21 20:35       ` Eric Wong [this message]

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=20190921203525.GA26535@dcvr \
    --to=e@80x24.org \
    --cc=inn-workers@lists.isc.org \
    --cc=julien@trigofacile.com \
    --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).