🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
29 messages
29 total messages Started by Ivan Shmakov Wed, 11 Jan 2012 07:12
news servers offering IMAP access?
#84595
Author: Ivan Shmakov
Date: Wed, 11 Jan 2012 07:12
13 lines
1657 bytes
	Now, I know that NNTP is great.  But then, did anyone experiment
	with offering IMAP access to the news spool?

	Two particular benefits of using IMAP are that it allows for the
	list of the articles read to be kept on the server (which comes
	handy for those who read newsgroups from different places, such
	as home, work, etc.), and that it allows for the messages' MIME
	parts to be sent to the user separately (which should be useful
	for discarding the unwanted parts of multipart/alternative
	containers right away.)

-- 
FSF associate member #7257
Re: news servers offering IMAP access?
#84596
Author: Russ Allbery
Date: Wed, 11 Jan 2012 18:25
13 lines
1665 bytes
Ivan Shmakov <oneingray@gmail.com> writes:

> 	Now, I know that NNTP is great.  But then, did anyone experiment
> 	with offering IMAP access to the news spool?

Yup, CMU did this for years.  I'm not sure if they still do.  Cyrus IMAP
can speak either NNTP or IMAP with the same backend storage.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: news servers offering IMAP access?
#84597
Author: River Tarnell
Date: Wed, 11 Jan 2012 21:54
18 lines
1893 bytes
In article <8762gidrku.fsf@windlord.stanford.edu>,
Russ Allbery  <rra@stanford.edu> wrote:
>Ivan Shmakov <oneingray@gmail.com> writes:
>> 	Now, I know that NNTP is great.  But then, did anyone experiment
>> 	with offering IMAP access to the news spool?
>Yup, CMU did this for years.

How do you post?  Most IMAP clients don't have a 'reply via an NNTP 
server' feature.

(I can see that it would be useful for some kinds of readers, though.)

Regards,
-- 
        -- river.                      | Free Usenet: http://news.rt.uk.eu.org/
Non-Reciprocal Laws of Expectations:   | PGP: 2B9CE6F2
    Negative expectations yield negative results.
    Positive expectations yield negative results.
Re: news servers offering IMAP access?
#84598
Author: Russ Allbery
Date: Wed, 11 Jan 2012 22:06
22 lines
2099 bytes
River Tarnell <river@RT.UK.EU.ORG> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> Yup, CMU did this for years.

> How do you post?  Most IMAP clients don't have a 'reply via an NNTP
> server' feature.

The presentation over IMAP I was familiar with was read-only.  I don't
know if they had some sort of mail to news gateway set up to let people go
the other way.  Gatewaying gets to be quite a bit trickier.

> (I can see that it would be useful for some kinds of readers, though.)

Yeah, my recollection was that the primary use case was mailing list
archives of public mailing lists presented over both IMAP and NNTP.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: news servers offering IMAP access?
#84604
Author: Ivan Shmakov
Date: Sun, 15 Jan 2012 06:19
23 lines
1857 bytes
>>>>> Russ Allbery <rra@stanford.edu> writes:
>>>>> Ivan Shmakov <oneingray@gmail.com> writes:

	[Cross-posting to news:comp.mail.imap.]

 >> Now, I know that NNTP is great.  But then, did anyone experiment
 >> with offering IMAP access to the news spool?

 > Yup, CMU did this for years.  I'm not sure if they still do.  Cyrus
 > IMAP can speak either NNTP or IMAP with the same backend storage.

	ACK, thanks.

	BTW, what backend storage formats it supports?

	The last time I've checked, Cyrus IMAP somehow looked less
	appealing to me than Dovecot IMAP (which I now use for years.)
	I wonder, is there anything else (other than NNTP support) in
	Cyrus IMAP worth looking at?

-- 
FSF associate member #7257
Re: news servers offering IMAP access?
#84605
Author: Mark Crispin
Date: Sun, 15 Jan 2012 16:45
46 lines
3460 bytes
Panda IMAP and UW IMAP also support export via IMAP of local netnews 
spools. They also support IMAP/NNTP proxy.

I don't know Dovecot's capabilities with NNTP. However, Dovecot is an 
excellent IMAP server in all other respects. Dovecot, Panda, and SurgeMail 
are the only IMAP servers that completely pass IMAP protocol compliancy 
testing.

With netnews and NNTP being more or less moribund, this is primarily of 
historical interest these days.

The UW IMAP installation at UW exported netnews via IMAP for many years in 
the 1990s. I used it that way; but could probably count the number of 
other people who used it on one hand and have fingers left over. As 
obvious and attractive as the capability seemed, there was simply no 
demand. Then again, by the 2000s fewer than 100 people at UW still used 
netnews at all; UW's NNTP service was turned off several years ago with 
little protest.

On Sun, 15 Jan 2012, Ivan Shmakov posted:
>>>>>> Russ Allbery <rra@stanford.edu> writes:
>>>>>> Ivan Shmakov <oneingray@gmail.com> writes:
>
> 	[Cross-posting to news:comp.mail.imap.]
>
> >> Now, I know that NNTP is great.  But then, did anyone experiment
> >> with offering IMAP access to the news spool?
>
> > Yup, CMU did this for years.  I'm not sure if they still do.  Cyrus
> > IMAP can speak either NNTP or IMAP with the same backend storage.
>
> 	ACK, thanks.
>
> 	BTW, what backend storage formats it supports?
>
> 	The last time I've checked, Cyrus IMAP somehow looked less
> 	appealing to me than Dovecot IMAP (which I now use for years.)
> 	I wonder, is there anything else (other than NNTP support) in
> 	Cyrus IMAP worth looking at?

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
Re: news servers offering IMAP access?
#84606
Author: Ivan Shmakov
Date: Mon, 16 Jan 2012 04:06
32 lines
2158 bytes
>>>>> Mark Crispin <mrc@panda.com> writes:

[…]

 > Panda IMAP and UW IMAP also support export via IMAP of local netnews
 > spools.  They also support IMAP/NNTP proxy.

	ACK, thanks.

 > I don't know Dovecot's capabilities with NNTP.

	AIUI, there're none.  But then, it isn't like I badly need any.

[…]

 > With netnews and NNTP being more or less moribund, this is primarily
 > of historical interest these days.

	There seems to be a few still active newsgroups, actually.
	Consider, e. g., news:sci.electronics.design, news:comp.os.vms,
	news:comp.arch.embedded, news:alt.russian.z1, etc.

	Although it became hardly common nowadays, I believe that it
	still has a chance to become more widespread.  Usenet is just a
	“federation of forums” (in a modern parlance), and as Web forums
	are still quite active, I don't see why Usenet shouldn't be.

[…]

-- 
FSF associate member #7257
Re: news servers offering IMAP access?
#84607
Author: Doug713705
Date: Mon, 16 Jan 2012 07:51
16 lines
1993 bytes
Le 11-01-2012, Ivan Shmakov nous expliquait dans 
news.software.nntp :

> 	Now, I know that NNTP is great.  But then, did anyone experiment
> 	with offering IMAP access to the news spool?
>

http://en.wikipedia.org/wiki/Comparison_of_mail_servers

A nice comparison chart.

-- 
Doug - Linux user #307925 - Slackware64 roulaize ;-)
http://usenet-fr.chainon-marquant.org
http://newsportal.chainon-marquant.org
http://news.chainon-marquant.org
Re: news servers offering IMAP access?
#84609
Author: River Tarnell
Date: Mon, 16 Jan 2012 09:47
27 lines
2323 bytes
In article <86hazwjnpt.fsf@gray.siamics.net>,
Ivan Shmakov  <oneingray@gmail.com> wrote:
>>>>>> Mark Crispin <mrc@panda.com> writes:
> > With netnews and NNTP being more or less moribund, this is primarily
> > of historical interest these days.

>	There seems to be a few still active newsgroups, actually.
>	Consider, e. g., news:sci.electronics.design, news:comp.os.vms,
>	news:comp.arch.embedded, news:alt.russian.z1, etc.

I'm currently working on a new NNTP server -- so it's not entirely 
moribund ;-).  

For now it is transit only (no readers), but I would like to eventually 
add reader support.  I'd already intended to support both NNTP and IMAP 
access once that happens.

However, given the lack of any way to post new messages via IMAP, I'm 
not sure it would be very useful for Usenet.  

Regards,
-- 
        -- river.                      | Free Usenet: http://news.rt.uk.eu.org/
Non-Reciprocal Laws of Expectations:   | PGP: 2B9CE6F2
    Negative expectations yield negative results.
    Positive expectations yield negative results.
Re: news servers offering IMAP access?
#84611
Author: Mark Crispin
Date: Mon, 16 Jan 2012 16:31
29 lines
3045 bytes
On Mon, 16 Jan 2012, Ivan Shmakov posted:
> 	Although it became hardly common nowadays, I believe that it
> 	still has a chance to become more widespread.  Usenet is just a
> 	“federation of forums” (in a modern parlance), and as Web forums
> 	are still quite active, I don't see why Usenet shouldn't be.

I have nothing against Usenet. After all, I still use it (albeit I only 
read three newsgroups). Sadly, due to a combination of factors (not all 
technological), Usenet passed its zenith long ago. I don't see much hope 
for it to arise again.

I have little doubt that some vestige of Usenet will continue to exist for 
quite some time to come, but never again as a major infrastructure. The 
"tragedy of the commons" factor will never go away; the lesson learned is 
that the otherwise-desirable notion of the "commons" does not scale.

It's actually remarkable that Usenet scaled as well as it once did. 
Dedicated and honorable individuals fought a valiant battle to keep Usenet 
usable for many long years. But ultimately it proved futile.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
vague plans for one more "news server" software
#84613
Author: Ivan Shmakov
Date: Tue, 17 Jan 2012 08:12
92 lines
5684 bytes
>>>>> River Tarnell <river@RT.UK.EU.ORG> writes:
>>>>> In article <86hazwjnpt.fsf@gray.siamics.net>, Ivan Shmakov wrote:
>>>>> Mark Crispin <mrc@panda.com> writes:

	[Cross-posting to news:news.misc, for it's no longer just about
	NNTP and IMAP.]

 >>> With netnews and NNTP being more or less moribund, this is
 >>> primarily of historical interest these days.

 >> There seems to be a few still active newsgroups, actually.
 >> Consider, e. g., news:sci.electronics.design, news:comp.os.vms,
 >> news:comp.arch.embedded, news:alt.russian.z1, etc.

 > I'm currently working on a new NNTP server -- so it's not entirely
 > moribund ;-).

	I'm contemplating developing a kind of a “news caching proxy”,
	actually.  However, I consider making somewhat radical changes
	to the usual news processing procedures.

	In particular, I aim for a better support of presentation of
	netnews as (apart from having them accessible via IMAP and NNTP)
	both Atom feeds (including Atom Posting Protocol support) and
	Web pages (XHTML.)  To this end, I believe it's essential to
	outrightly discard non-ASCII article headers, /and/ non-ASCII
	article bodies of the articles lacking proper MIME headers, as
	both are ambiguous as to what character encoding is used.

	Also, I consider using an RDBMS to store particular
	(Message-ID:, References:), if not all, of the message headers,
	so to allow for instant threading.  Perhaps this storage could
	be used to implement some “extended search” facilities within
	either or both of the NNTP and IMAP interfaces as well, but I
	have no specific plans on that at this moment.

	Perhaps, RDBMS could also be used for MIME parts below certain
	threshold of size (in octets; or perhaps characters, for text/*
	MIME parts, and for strictly ASCII non-MIME article bodies.)

	The MIME parts are to be stored separately (from each other and
	from the header), in 8-bit, even if originally coming as, e. g.,
	Base64 or quoted-printable.  The parts above the size threshold
	would be stored separately on the filesystem.  If possible, a
	few more transformations would also be implemented.  In
	particular, it may be possible to transform any armored OpenPGP
	signatures into their MIME-based counterparts.

	I also intend to compute message digests (SHA 256, SHA-1) for
	the MIME parts of over some trivial (1024 octets or so) size,
	and aggressively replace duplicates with links.  If the message
	(or a part) is digitally signed with a known key, the digests
	computed would be verified against the signature, and the
	message discarded on failure.

	As for the “caching” part, this agent would both allow
	conventional feeds (for input), as well as periodical and
	on-demand fetching of articles (like, e. g., suck(1), but also
	allowing for partial retrieval of the newsgroups' articles,
	based on criteria specified over the XOVER data.)  It will also
	maintain the “last access time” for the articles, to be taken
	into account in the “expiration” process.

	The “proxy” part would mean that the server could be instructed
	to preserve the Xref: header of its “primary” (“backing”) source
	(though only for the specific newsgroups or hierarchies, and
	still allowing for different sources to be used to actually
	fetch the articles.)  The posting in proxy mode will be
	performed synchronously, with no reply being sent to the user
	agent before the “backing” source itself replies, or a timeout.

	For the implementation of the prototype, I'm now considering the
	Perl language, as there's a sheer amount of extensions
	available, providing support for a variety of protocols and data
	presentations.

 > For now it is transit only (no readers), but I would like to
 > eventually add reader support.  I'd already intended to support both
 > NNTP and IMAP access once that happens.

 > However, given the lack of any way to post new messages via IMAP, I'm
 > not sure it would be very useful for Usenet.

	The IMAP protocol allows for both retrieval /and/ storage of
	messages.  In particular, certain MUA's allow for the copies of
	the messages sent via e-mail to be saved into a dedicated IMAP
	mailbox.  Although unconventional, I guess that the MUA's could
	be changed to use such a functionality to post new messages.

-- 
FSF associate member #7257
Re: vague plans for one more "news server" software
#84612
Author: River Tarnell
Date: Tue, 17 Jan 2012 09:05
69 lines
4524 bytes
[-comp.mail.imap]

In article <86y5t6hhnm.fsf_-_@gray.siamics.net>,
Ivan Shmakov  <oneingray@gmail.com> wrote:
>	                    To this end, I believe it's essential to
>	outrightly discard non-ASCII article headers, /and/ non-ASCII
>	article bodies of the articles lacking proper MIME headers, as
>	both are ambiguous as to what character encoding is used.

This will discard all yEnc-encoded binaries, although you may not care 
about that.

>	Also, I consider using an RDBMS to store particular
>	(Message-ID:, References:), if not all, of the message headers,
>	so to allow for instant threading.

This is called the overview database, and it's already implemented for 
the OVER (or XOVER) command, which most clients use for threading 
without having to download the entire message.  See RFC3977 section 8.3.  
Unfortunately there's no way to handle non-ASCII text in the overview.

>	                                               If possible, a
>	few more transformations would also be implemented.  In
>	particular, it may be possible to transform any armored OpenPGP
>	signatures into their MIME-based counterparts.

I think you need to be careful modifying message bodies.  For example, 
when I send PGP-signed messages on Usenet, I always use the legacy PGP 
encoding[0].  If you converted this into MIME, and it offended someone who 
dislikes MIME, then they would blame me for it.

Also note that when you relay messages to another server, you are not 
allowed to make *any* changes to the message except for Path and Xref
(RFC 5537, section 3.6).

[0] Firstly because my client doesn't support OpenPGP, but also because 
MIME messages are fairly ugly for people using non-MIME-capable reader 
software.

>	I also intend to compute message digests (SHA 256, SHA-1) for
>	the MIME parts of over some trivial (1024 octets or so) size,
>	and aggressively replace duplicates with links.

Most people already do this for the entire message, but duplicates are 
discarded than than de-duped.  (Used to filter EMP.)

>>>>>> River Tarnell <river@RT.UK.EU.ORG> writes:
> > However, given the lack of any way to post new messages via IMAP, I'm
> > not sure it would be very useful for Usenet.

>	The IMAP protocol allows for both retrieval /and/ storage of
>	messages.  In particular, certain MUA's allow for the copies of
>	the messages sent via e-mail to be saved into a dedicated IMAP
>	mailbox.  Although unconventional, I guess that the MUA's could
>	be changed to use such a functionality to post new messages.

It might be possible to implement, but that requires the project be 
active and have developers willing to spend time on Usenet improvements, 
which is not always the case.  AIUI, even Mozilla's NNTP support is 
fairly decrepit, even though that's a very active project.

I think the version of trn I'm using was released around 2001.

Regards,
-- 
        -- river.                      | Free Usenet: http://news.rt.uk.eu.org/
Non-Reciprocal Laws of Expectations:   | PGP: 2B9CE6F2
    Negative expectations yield negative results.
    Positive expectations yield negative results.
Re: vague plans for one more "news server" software
#84614
Author: Ivan Shmakov
Date: Tue, 17 Jan 2012 09:58
112 lines
6145 bytes
>>>>> River Tarnell <river@RT.UK.EU.ORG> writes:
>>>>> In article <86y5t6hhnm.fsf_-_@gray.siamics.net> Ivan Shmakov wrote:

 >> To this end, I believe it's essential to outrightly discard
 >> non-ASCII article headers, /and/ non-ASCII article bodies of the
 >> articles lacking proper MIME headers, as both are ambiguous as to
 >> what character encoding is used.

 > This will discard all yEnc-encoded binaries, although you may not
 > care about that.

	It's hardly of any value to me, but the primary question is
	whether I'd be able to unambiguously detect the use of a
	particular encoding?  For sure, I'd prefer using MIME
	exclusively for this end.

 >> Also, I consider using an RDBMS to store particular (Message-ID:,
 >> References:), if not all, of the message headers, so to allow for
 >> instant threading.

 > This is called the overview database, and it's already implemented
 > for the OVER (or XOVER) command, which most clients use for threading
 > without having to download the entire message.

	Indeed, and this database will be used to back the XOVER command
	in particular.  (Note that I've explicitly mentioned XOVER in
	the original article.)

 > See RFC3977 section 8.3.  Unfortunately there's no way to handle
 > non-ASCII text in the overview.

	Yes there is, as long as RFC 2047 is used.

	While RFC 3977 says that the header contents "SHOULD be in
	UTF-8", it doesn't seem to suggest any way to discern proper
	UTF-8-encoded headers from similarly-looking octet sequences.

	OTOH, RFC 5322 (which, as long as this issue is concerned, could
	be considered a sibling of a kind to both RFC 1036 and RFC 3977)
	explicitly defines the ("unstructured") header fields' bodies as
	"any printable US-ASCII characters plus white space characters".

	As RFC 5322 definition of the message header allows for much
	less ambiguity in this respect, I'm inclined to disallow
	non-7-bit message headers completely.

	(Internally, the components of the system I propose would use a
	protocol different to NNTP for communication, so non-ASCII text
	anywhere, and even raw binary data, won't be a problem.)

 >> If possible, a few more transformations would also be implemented.
 >> In particular, it may be possible to transform any armored OpenPGP
 >> signatures into their MIME-based counterparts.

 > I think you need to be careful modifying message bodies.  For
 > example, when I send PGP-signed messages on Usenet, I always use the
 > legacy PGP encoding[0].  If you converted this into MIME, and it
 > offended someone who dislikes MIME, then they would blame me for it.

	Actually, that's precisely what OpenPGP signatures are for: to
	be able to detect if the message was tampered.  (Which makes me
	doubt whether such a transformation is possible at all.)

 > Also note that when you relay messages to another server, you are not
 > allowed to make *any* changes to the message except for Path and Xref
 > (RFC 5537, section 3.6).

	For this reason, I don't consider relaying at this moment at
	all.  (Not that I've stated that the software in question is
	aimed at strict RFC 5537 compliance.)

 > [0] Firstly because my client doesn't support OpenPGP, but also
 > because MIME messages are fairly ugly for people using
 > non-MIME-capable reader software.

	Somehow, I'm inclined to think that it's the support for legacy
	software that draws Usenet towards its demise.  (Though I may
	easily be wrong.)

 >> I also intend to compute message digests (SHA 256, SHA-1) for the
 >> MIME parts of over some trivial (1024 octets or so) size, and
 >> aggressively replace duplicates with links.

 > Most people already do this for the entire message, but duplicates
 > are discarded than than de-duped.  (Used to filter EMP.)

	ACK, thanks.

	For individual MIME parts, however, I believe that de-duping may
	be more appropriate.

 >>> However, given the lack of any way to post new messages via IMAP,
 >>> I'm not sure it would be very useful for Usenet.

 >> The IMAP protocol allows for both retrieval /and/ storage of
 >> messages.  In particular, certain MUA's allow for the copies of the
 >> messages sent via e-mail to be saved into a dedicated IMAP mailbox.
 >> Although unconventional, I guess that the MUA's could be changed to
 >> use such a functionality to post new messages.

 > It might be possible to implement, but that requires the project be
 > active and have developers willing to spend time on Usenet
 > improvements, which is not always the case.  AIUI, even Mozilla's
 > NNTP support is fairly decrepit, even though that's a very active
 > project.

	Agreed.

 > I think the version of trn I'm using was released around 2001.

-- 
FSF associate member #7257
Re: vague plans for one more "news server" software
#84615
Author: River Tarnell
Date: Tue, 17 Jan 2012 14:16
67 lines
4282 bytes
In article <86ehuyhcr4.fsf@gray.siamics.net>,
Ivan Shmakov  <oneingray@gmail.com> wrote:
>>>>>> River Tarnell <river@RT.UK.EU.ORG> writes:
> > This will discard all yEnc-encoded binaries, although you may not
> > care about that.

>	It's hardly of any value to me, but the primary question is
>	whether I'd be able to unambiguously detect the use of a
>	particular encoding?  For sure, I'd prefer using MIME
>	exclusively for this end.

You can detect yEnc by looking for a line that begins with "=ybegin" and 
contains the strings "line=", "size=" and "name=", and is followed some 
time later by a line that begins with "=yend" and contains the string 
"size=".  (Yes, this is a terrible format.)  There's also some sort of 
"standard" for what the subject line should be, at least for multi-part 
binaries.

yEnc has no "encoding" as such apart from that of the encoded file, 
which is usually binary data.

If you feel clever, you could extract the filename from the =ybegin line 
and convert the data into a MIME attachment ;-) (of type 
application/octet-stream, unless you want to guess from the filename -- 
yEnc, of course, doesn't say what the file type is).

> > See RFC3977 section 8.3.  Unfortunately there's no way to handle
> > non-ASCII text in the overview.

>	Yes there is, as long as RFC 2047 is used.

Yes, I forgot about that.  But I think its use is less widespread in 
Usenet than email (since most mail clients support MIME nowadays, while 
many newsreaders do not).

> >> If possible, a few more transformations would also be implemented.
> >> In particular, it may be possible to transform any armored OpenPGP
> >> signatures into their MIME-based counterparts.

> > I think you need to be careful modifying message bodies.  For
> > example, when I send PGP-signed messages on Usenet, I always use the
> > legacy PGP encoding[0].  If you converted this into MIME, and it
> > offended someone who dislikes MIME, then they would blame me for it.

>	Actually, that's precisely what OpenPGP signatures are for: to
>	be able to detect if the message was tampered.  (Which makes me
>	doubt whether such a transformation is possible at all.)

But people aren't going to verify the signature; most people who cared 
about that would use a UA that supported OpenPGP to start with.  They'll
just look at the message and say "oh, an annoying MIME message".

Of course anyone could post an annoying message claiming to be from me, 
but that's a bit different to software generating such a message on 
purpose.

PS: I would like to see Usenet keep going as well.  I have no idea how 
to achieve that, though.  I think most people just expect forums to be 
on the Web nowadays; for many topics there are many more Web forums than 
mailing lists.

Regards,
-- 
        -- river.                      | Free Usenet: http://news.rt.uk.eu.org/
Non-Reciprocal Laws of Expectations:   | PGP: 2B9CE6F2
    Negative expectations yield negative results.
    Positive expectations yield negative results.
Re: vague plans for one more "news server" software
#84617
Author: Mark Crispin
Date: Tue, 17 Jan 2012 16:48
32 lines
2981 bytes
On Tue, 17 Jan 2012, Ivan Shmakov posted:
> 	To this end, I believe it's essential to
> 	outrightly discard non-ASCII article headers, /and/ non-ASCII
> 	article bodies of the articles lacking proper MIME headers, as
> 	both are ambiguous as to what character encoding is used.

Good luck on this. This was a battle that was fought, and lost, about 20 
years ago. Search for "just send 8-bits" in old old flamewars. Prepare to 
be nauseated.

> 	Also, I consider using an RDBMS

You're a glutton for punishment, I see. Lots of people have had this idea 
in the past...

I'll just say "good luck".

However, I will give you an important hint. To do IMAP in any sort of 
reasonable way, you MUST have access to the message as a single RFC *822 
format char* string.

Don't assume that you can assemble on the fly from a database. EVERYBODY 
who has ever tried has failed, miserably. Whatever you do to store the 
message in separate parts, you MUST have the message as the big char*. 
You'll regret doing otherwise.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
Re: vague plans for one more "news server" software
#84616
Author: Russ Allbery
Date: Tue, 17 Jan 2012 17:08
33 lines
2795 bytes
Ivan Shmakov <oneingray@gmail.com> writes:

> 	In particular, I aim for a better support of presentation of
> 	netnews as (apart from having them accessible via IMAP and NNTP)
> 	both Atom feeds (including Atom Posting Protocol support) and Web
> 	pages (XHTML.)  To this end, I believe it's essential to
> 	outrightly discard non-ASCII article headers, /and/ non-ASCII
> 	article bodies of the articles lacking proper MIME headers, as
> 	both are ambiguous as to what character encoding is used.

I highly recommend talking to larsi about what he did with GMANE, since
that's a large part of what you're trying to do here and it seems to work
quite well (and is *very* widely used in some parts of the free software
community).

I think a lot of the backend code is written in Lisp, since, well, it's
larsi, which may make it challenging to reuse depending on your preferred
languages.  But the ideas at least are there.

> 	For the implementation of the prototype, I'm now considering the
> 	Perl language, as there's a sheer amount of extensions available,
> 	providing support for a variety of protocols and data
> 	presentations.

Speaking IMAP properly is going to be the hardest part of this problem, I
think.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: vague plans for one more "news server" software
#84618
Author: Russ Allbery
Date: Tue, 17 Jan 2012 17:09
22 lines
2350 bytes
Mark Crispin <mrc@panda.com> writes:
> On Tue, 17 Jan 2012, Ivan Shmakov posted:

>> 	To this end, I believe it's essential to outrightly discard
>> 	non-ASCII article headers, /and/ non-ASCII article bodies of the
>> 	articles lacking proper MIME headers, as both are ambiguous as to
>> 	what character encoding is used.

> Good luck on this. This was a battle that was fought, and lost, about 20
> years ago. Search for "just send 8-bits" in old old flamewars. Prepare
> to be nauseated.

Believe it or not, it's actually gotten better since the old flamewars.
Not to the point where you can just assume this, of course, but more and
more clients just quietly do the right thing, and people seem to cope.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: vague plans for one more "news server" software
#84619
Author: Ralf Döblitz
Date: Tue, 17 Jan 2012 17:11
21 lines
2651 bytes
In news.software.nntp River Tarnell <river@rt.uk.eu.org> wrote:
> [-comp.mail.imap]
> 
> In article <86y5t6hhnm.fsf_-_@gray.siamics.net>,
> Ivan Shmakov  <oneingray@gmail.com> wrote:
>>                           To this end, I believe it's essential to
>>       outrightly discard non-ASCII article headers, /and/ non-ASCII
>>       article bodies of the articles lacking proper MIME headers, as
>>       both are ambiguous as to what character encoding is used.
> 
> This will discard all yEnc-encoded binaries, although you may not care 
> about that.

Discarding that junk could also be considered as a nice feature.

Ralf
-- 
[Abhängen von Kruzifixen in Rechnerräumen]
Nicht opportun. Normalerweise haengt an diesen Kruzifixen ja schon jemand.
Wurde Jesus gelartet?
                            – Jens Chr. Bachem in de.alt.sysadmin.recovery
Re: vague plans for one more "news server" software
#84621
Author: Xavier Roche
Date: Tue, 17 Jan 2012 18:37
9 lines
2033 bytes
Le 17/01/2012 18:09, Russ Allbery a �crit :
> Believe it or not, it's actually gotten better since the old flamewars.
> Not to the point where you can just assume this, of course, but more and
> more clients just quietly do the right thing, and people seem to cope.

One of the greatest battle won on fr.* recently was to *accept* UTF-8 as
charset (rather than the venerable ISO-8859 family members). I'd say
that things are getting better, but a bit slowly :)
Re: vague plans for one more "news server" software
#84620
Author: Julien ÉLIE
Date: Tue, 17 Jan 2012 19:48
26 lines
2575 bytes
Hi Xavier,

> One of the greatest battle won on fr.* recently was to *accept* UTF-8 as
> charset (rather than the venerable ISO-8859 family members). I'd say
> that things are getting better, but a bit slowly :)

:-)

The next great step will be to send monthly charters or recommendations 
with a Subject: header field body in MIME!  (And, in a few years, in UTF-8.)

I am still amazed to read non-MIME 7-bit subjects like:

   Subject: [DOC] Tables de caracteres utilisees dans la hierarchie fr.*


(Note for non-French speakers:  the above subject should be written in 
MIME or UTF-8 so as to properly appear in a news client as
   Subject: [DOC] Tables de caractères utilisées dans la hiérarchie fr.*
)

-- 
Julien ÉLIE

« C'est une forêt vierge où la main de l'homme n'a jamais mis le
   pied. »
Re: vague plans for one more "news server" software
#84622
Author: Xavier Roche
Date: Tue, 17 Jan 2012 20:12
16 lines
2271 bytes
Le 17/01/2012 20:48, Julien ÉLIE a écrit :
> The next great step will be to send monthly charters or recommendations
> with a Subject: header field body in MIME!  (And, in a few years, in
> UTF-8.)

To be honest, I have always considered this RFC 2047 "hack" as clumsy.
And especially painful to handle (especially in scripts ; darn - why do
I have to play with substrings, decode base64 and big5 to extract
relevant information ?)

(Yes, I know that a "Header-Charset" mechanism would have been difficult
for many reasons, including adding headers to existing headers ; but a
ASCII => UTF-8 transition for headers would probably have been better)


Re: vague plans for one more "news server" software
#84623
Author: Julien ÉLIE
Date: Tue, 17 Jan 2012 20:27
34 lines
3067 bytes
Hi Russ and Ivan,

>> 	In particular, I aim for a better support of presentation of
>> 	netnews as (apart from having them accessible via IMAP and NNTP)
>> 	both Atom feeds (including Atom Posting Protocol support) and Web
>> 	pages (XHTML.)  To this end, I believe it's essential to
>> 	outrightly discard non-ASCII article headers, /and/ non-ASCII
>> 	article bodies of the articles lacking proper MIME headers, as
>> 	both are ambiguous as to what character encoding is used.
> 
> I highly recommend talking to larsi about what he did with GMANE, since
> that's a large part of what you're trying to do here and it seems to work
> quite well (and is *very* widely used in some parts of the free software
> community).
> 
> I think a lot of the backend code is written in Lisp, since, well, it's
> larsi, which may make it challenging to reuse depending on your preferred
> languages.  But the ideas at least are there.

In case it could be of help, an improved version of Newsportal
    http://amrhein.eu/newsportal/
with UTF-8 support, and even MIME attachments (but not yEnc support) can
be seen here:
    http://iulius.dinauz.org/usenet/webnews-test/thread.php?group=news.software.nntp
    http://iulius.dinauz.org/usenet/webnews-test/

Written in PHP.

-- 
Julien �LIE

� C'est une for�t vierge o� la main de l'homme n'a jamais mis le
  pied. ďż˝
Re: vague plans for one more "news server" software
#84625
Author: Ivan Shmakov
Date: Wed, 18 Jan 2012 04:00
42 lines
3101 bytes
>>>>> Russ Allbery <rra@stanford.edu> writes:
>>>>> Ivan Shmakov <oneingray@gmail.com> writes:

 >> In particular, I aim for a better support of presentation of netnews
 >> as (apart from having them accessible via IMAP and NNTP) both Atom
 >> feeds (including Atom Posting Protocol support) and Web pages
 >> (XHTML.)  To this end, I believe it's essential to outrightly
 >> discard non-ASCII article headers, /and/ non-ASCII article bodies of
 >> the articles lacking proper MIME headers, as both are ambiguous as
 >> to what character encoding is used.

 > I highly recommend talking to larsi about what he did with GMANE,
 > since that's a large part of what you're trying to do here and it
 > seems to work quite well (and is *very* widely used in some parts of
 > the free software community).

	Well, I'd rather check the published sources behind Gmane first.

	However, it was my understanding that they've chosen to use an
	NNTP "server" (namely, INN) as the backend.  An approach which
	seems to have certain drawbacks.

 > I think a lot of the backend code is written in Lisp, since, well,
 > it's larsi, which may make it challenging to reuse depending on your
 > preferred languages.  But the ideas at least are there.

	ACK, thanks.

 >> For the implementation of the prototype, I'm now considering the
 >> Perl language, as there's a sheer amount of extensions available,
 >> providing support for a variety of protocols and data presentations.

 > Speaking IMAP properly is going to be the hardest part of this
 > problem, I think.

	Perhaps even further complicated by the fact that I have little
	experience with IMAP whatsoever.  (Apart from keeping Dovecot
	running here and there.)

-- 
FSF associate member #7257
Re: vague plans for one more "news server" software
#84624
Author: Russ Allbery
Date: Wed, 18 Jan 2012 04:04
26 lines
2473 bytes
Ivan Shmakov <oneingray@gmail.com> writes:

> 	Well, I'd rather check the published sources behind Gmane first.

> 	However, it was my understanding that they've chosen to use an
> 	NNTP "server" (namely, INN) as the backend.  An approach which
> 	seems to have certain drawbacks.

Only because he never got around writing his own in Lisp, but he had some
of the pieces and a bunch of ideas.  That's part of why it would be good
to talk to him and not only look at the source.  But starting with the
source is good, of course.

> 	Perhaps even further complicated by the fact that I have little
> 	experience with IMAP whatsoever.  (Apart from keeping Dovecot
> 	running here and there.)

IMAP is easily many times harder to implement properly than NNTP.  All
that extra useful functionality comes at a cost.  :)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: vague plans for one more "news server" software
#84626
Author: Ivan Shmakov
Date: Wed, 18 Jan 2012 04:22
44 lines
2861 bytes
>>>>> Mark Crispin <mrc@panda.com> writes:
>>>>> On Tue, 17 Jan 2012, Ivan Shmakov posted:

	[Setting Followup-To: to drop news.software.nntp.]

 > Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

	BTW, is this "format=flowed" bit intentional?  Somehow, I
	thought that it's "incompatible" with >-quoting.

[...]

 >> Also, I consider using an RDBMS

 > You're a glutton for punishment, I see.  Lots of people have had this
 > idea in the past...

 > I'll just say "good luck".

 > However, I will give you an important hint.  To do IMAP in any sort
 > of reasonable way, you MUST have access to the message as a single
 > RFC *822 format char* string.

	Why is it so?

 > Don't assume that you can assemble on the fly from a database.
 > EVERYBODY who has ever tried has failed, miserably.

	To my mind, the biggest problem here is to preserve "message
	boundary" sequences, which may be essential for digital
	signatures to work.

 > Whatever you do to store the message in separate parts, you MUST have
 > the message as the big char*.  You'll regret doing otherwise.

	Assuming that "char *" means an "octet sequence" here (and not a
	"sequence of characters", as it doesn't make sense for, say,
	application/octet-stream parts), I guess that I may do it the
	other way around, by storing the offsets of the individual MIME
	parts within the octet sequence.

-- 
FSF associate member #7257
Re: vague plans for one more "news server" software
#84628
Author: Ivan Shmakov
Date: Wed, 18 Jan 2012 04:30
33 lines
2716 bytes
>>>>> Russ Allbery <rra@stanford.edu> writes:
>>>>> Ivan Shmakov <oneingray@gmail.com> writes:

 >> Well, I'd rather check the published sources behind Gmane first.

 >> However, it was my understanding that they've chosen to use an NNTP
 >> "server" (namely, INN) as the backend.  An approach which seems to
 >> have certain drawbacks.

 > Only because he never got around writing his own in Lisp, but he had
 > some of the pieces and a bunch of ideas.  That's part of why it would
 > be good to talk to him and not only look at the source.  But starting
 > with the source is good, of course.

	ACK, thanks.  Though I'd note that NNTP /server/ functionality
	wouldn't probably be a priority for me.  Perhaps I'd focus on
	IMAP and Atom (with Atom Posting Protocol) instead.

 >> Perhaps even further complicated by the fact that I have little
 >> experience with IMAP whatsoever.  (Apart from keeping Dovecot
 >> running here and there.)

 > IMAP is easily many times harder to implement properly than NNTP.
 > All that extra useful functionality comes at a cost.  :)

	The question is, could the Net::IMAP::Server Perl module [1] (as
	available from CPAN) relief most of the implementor's pain?

[1] http://search.cpan.org/~alexmv/Net-IMAP-Server-1.30/

-- 
FSF associate member #7257
Re: news servers offering IMAP access?
#84631
Author: RS Wood
Date: Sat, 21 Jan 2012 19:49
41 lines
3533 bytes
> > With netnews and NNTP being more or less moribund, this is primarily
> > of historical interest these days.
>
> 	There seems to be a few still active newsgroups, actually.
> 	Consider, e. g., news:sci.electronics.design, news:comp.os.vms,
> 	news:comp.arch.embedded, news:alt.russian.z1, etc.
>
> 	Although it became hardly common nowadays, I believe that it
> 	still has a chance to become more widespread.  Usenet is just a
> 	“federation of forums” (in a modern parlance), and as Web forums
> 	are still quite active, I don't see why Usenet shouldn't be.

I know NNTP is now on the extreme end of "Old Skool."  But there's
something about it I still love.  And when it came time to build a forum
for www.dictatorshandbook.net to discuss the specific topic of dictators
and their methods, I chose to build an INN server.

If you read the web forum software people (I think I was looking at
phpBB and some others to see if they'd ever implemented proper
indented/threaded conversations - they hadn't that I'm aware of) you'll
see they're all feeling eclipsed by Facebook, which is where a lot of
the chatting happens these days.  

So even perhaps web forums are now "Old Skool" and all the hip young
things are all selling off their freedom by giving their data up to
Facebook.  That makes us "older skool THAN old skool."  Awesome.

Not me.  I'm happy with netnews, which I think accurately captures the
spirit of the Internet as originally conceived: connectivity, anonymity,
and net neutrality.  So my site is going to stick with NNTP.  Maybe I'll
only convince a few old-skoolers to participate on the site, but I'd
rather have a select few participants than a mass of mediocrity.  I'm
happy to have Facebook siphon all those people away, so the rest of us
can mess around on NNTP the way we like.  Call it snobbery.

Final thought: anyone using their cellphone to access the Internet over
a 3G connection knows how slow it can be.  But it's specifically low
bandwidth connections where NNTP excels (no ads! no search statistics!
no stupid Flash graphics and animated GIFs!).  I'm trying to attract
people to my site using mobile Usenet apps on their iphones and Android
phones.  I'd say Netnews has LOTS of potential left.
Re: vague plans for one more "news server" software
#84632
Author: RS Wood
Date: Sat, 21 Jan 2012 20:07
13 lines
1799 bytes
> In case it could be of help, an improved version of Newsportal
> http://amrhein.eu/newsportal/ with UTF-8 support, and even MIME
> attachments (but not yEnc support) can be seen here:
> http://iulius.dinauz.org/usenet/webnews-test/thread.php?group=news.software.nntp
> http://iulius.dinauz.org/usenet/webnews-test/
>
> Written in PHP.

I'm really happy to hear about newsportal.  I'd been looking for
something like that and given up hope.  (Paperclip seemed similar at
first, but turned out to not do what I wanted).  Life is good!  That
reminds me, it seems to me the Germans are still big fans of netnews in
general.
Re: vague plans for one more "news server" software
#84638
Author: Ivan Shmakov
Date: Fri, 03 Feb 2012 05:43
51 lines
3250 bytes
>>>>> River Tarnell <river@RT.UK.EU.ORG> writes:
>>>>> Ivan Shmakov  <oneingray@gmail.com> wrote:
>>>>> River Tarnell <river@RT.UK.EU.ORG> writes:

 >>> This will discard all yEnc-encoded binaries, although you may not
 >>> care about that.

 >> It's hardly of any value to me, but the primary question is whether
 >> I'd be able to unambiguously detect the use of a particular
 >> encoding?  For sure, I'd prefer using MIME exclusively for this end.

[...]

 > yEnc has no "encoding" as such apart from that of the encoded file,
 > which is usually binary data.

	In MIME parlance, yEnc /is/ an encoding.  The mapping of octets
	to characters is called charset in MIME specifications.

 > If you feel clever, you could extract the filename from the =ybegin
 > line and convert the data into a MIME attachment ;-) (of type
 > application/octet-stream, unless you want to guess from the filename
 > -- yEnc, of course, doesn't say what the file type is).

	In the absence of an OpenPGP signature, it may be sensible to do
	just that.  And also for non-MIME Base64- and UUE-encoded data.

 >>> See RFC3977 section 8.3.  Unfortunately there's no way to handle
 >>> non-ASCII text in the overview.

 >> Yes there is, as long as RFC 2047 is used.

 > Yes, I forgot about that.  But I think its use is less widespread in
 > Usenet than email (since most mail clients support MIME nowadays,
 > while many newsreaders do not).

	If there's a list, I could check if these user agents could be
	easily fixed.

[...]

 > PS: I would like to see Usenet keep going as well.  I have no idea
 > how to achieve that, though.  I think most people just expect forums
 > to be on the Web nowadays; for many topics there are many more Web
 > forums than mailing lists.

	That's my intent: to allow for better interoperability between
	Web, netnews, and perhaps even certain social networking sites.

-- 
FSF associate member #7257
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads