🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #65116

[Propose] Enhanced (NNTP) moderation via mail (IMAP?)

#65116
From: Heiko Studt
Date: Thu, 01 May 2003 23:19
388 lines
15891 bytes
Hi,

XPost: news.software.nntp and comp.mail.imap; 
f'up2: news.software.nntp, to avoid double-discussions


Content:
~~~~~~~~

  Introduction                               0

  (NNTP-Changes)
  The traffic at moderators.isc.org          1
  The "added" headers                        2

  How to handle with moderate-posts          3

  (IMAP-Changes)
  Changing parts of MIME                     4
  "Approving"                                5

  Problems                                   6



0. Introduction
~~~~~~~~~~~~~~~

I try(ied) to find a solution for the problem we (nsn) talked about in the
thread "Moderation 2004: Just thinking loudly". 
The yet used NNTP-moderation system is not ready for moderated binary-groups 
and at all not very well organized to help moderators.
So moderators have to do a lot of their work "manually" or, with automatic
features, have problems with false-positives and headers mailserver had added.
Binary groups have a second problem: The datas going through the mail-forwarders
at *@moderators.isc.org need a large amount of traffic and servers exploding
the limits of possible, so it costs a lot of money.

In this dilemma we are, Jürgen Helbing proposed to change the complete
mod-system to NNTP and replace many 'well-known' system like DNS with an own
one via/only for NNTP. As the discussion goes long I proposed a way to handle
moderating in IMAP with the same "user-friendly-system" as Juergen proposed. 
(One-Click/Two-Buttons-Moderation)

After some thoughts around my proposual I made a "Besondere Lernleistung"
(some kind of document/referat to enhance marks) out of it. It can be found on
http://www.goldpool.org (It's in German)
Now I want to reformulate my ideas in English, so that you can think about it
and try to find a good solution for all our problems.



1. The traffic at moderators.isc.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

As I will propose in another part too, we will have to change the servers used
for incomming "post"s to usenet. The most needed change will be the change of
moderator-adresses. To avoid problems we should let the "old" system live some
months/years along the new system.

Yet every newsgroup has their address according to this rule:
<name-of-group>@moderators.isc.org
Example: news.servers.nntp@moderators.isc.org

I propose to change those names to another kind:
<name-of-group>@<name-of-group-reverse>.moderators.isc.org
Example: news.servers.nntp@nntp.servers.news.moderators.isc.org

The clue about is to provide a basical load-balance on DNS-layer:

We can set the DNS-records of *@moderators.isc.org to the old system.
Now we set the DNS-record of *@nntp.servers.news.moderators.isc.org to a
forwarder only used for traffic going to this group.
A second choice we have is to set a *@*.news.moderators.isc.org-record, 
such a record would provide a complete hierachy with their posts.

You see: 
  The traffic-load can be reduced very easily for every single server.
  """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

A second part in Juergen Helbing's proposual was to let the clients try to
find the moderator-addresses instead of the server. 
This part involve two problems: 
a) There can be (local) groups without an adress at moderators.isc.org
b) If there is a buggy client it can't be changed on every single system
   running, there don't exists so many server-implementations, so that
   problems can be solved more easily.



2. The "added" headers by mailservers/SMTP-system
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This problem was allready solved; in grandson-of-RFC1036 there is a 
proposual I want to citate:


| 6.15.5.1 Application/news-transmission
|         The Content-Type "application/news-transmission" is intended
|         for the encapsulation of complete news articles where the
|         intention is that the recipient should then inject them into
|         Netnews. This Application type SHOULD be used when mailing
|         articles to moderators and to mail-to-news gateways.
| [The remarks about sending articles to moderators should perhaps be
| made in a more appropriate place in our standard.]
|         NOTE: The benefit of such encapsulation is that it removes
|         possible conflict between news and email headers and it
|         provides a convenient way of "tunnelling" a news article
|         through a transport medium that does not support 8bit
|         characters.
|         The MIME content type definition of "application/news-
|         transmission" is:
|         MIME type name:           application
|         MIME subtype name:        news-transmission
|         Required parameters:      none
|         Optional parameters:      moderate; inject; relay
|         Encoding considerations:  A transfer-encoding (such as
|                                   Quoted-Printable or Base64) different
|                                   from that of the article transmitted
|                                   MAY be supplied (perhaps en route) to
|                                   ensure correct transmission over some
|                                   7bit transport medium.
|         Security considerations:  A news article may be a "control
|                                   message", which could have effects on
|                                   the recipient host's system beyond
|                                   just storage of the article. However,
|                                   such control messages also occur in
|                                   normal news flow, so most hosts will
|                                   already be suitably defended against
|                                   undesired effects.
|         Published specification:  [USEFOR]
|         Body part:                A complete article or proto-article,
|                                   ready for injection into Netnews, or a
|                                   batch of such articles.
|         NOTE: It is likely that the recipient of an
|         "application/news-transmission" will be a specialised gateway
|         (e.g. a moderator's submission address) able to accept
|         articles with only one of the three parameter types
|         "moderate", "inject" and "relay", hence the reason why they
|         are optional, being redundant in most situations.
|         Nevertheless, they MAY be used to signify the originator's
|         intention with regard to the transmission, so removing any
|         possible doubt.
|         When the parameter "relay" is used, or implied, the body part
|         MAY be a batch of articles to be transmitted together, in
|         which case the following syntax MUST be used.
|         batch        = 1*( batch-header article )
|         batch-header = "#!" SPACE "rnews" SPACE article-size CRLF
|         article-size = 1*digit
|         where the "rnews" is case-sensitive. Thus a batch is a
|         sequence of articles, each prefixed by a header line that
|         includes its size. The article-size is a decimal count of the
|         octets in the article, counting each CRLF as one octet
|         regardless of how it is actually represented.
|         NOTE: Despite the similarity of this format to an executable
|         UNIX script, it is EXTREMELY unwise to feed such a batch into
|         a command interpreter in anticipation of it running a command
|         named "rnews"; the security implications of so doing would be
|         disastrous.


Based on this I would define a "new" mime-type "multipart/newsmoderating" or
something like this. The following things can be saved in this message:

"Envelope"-headers for MIME/SMTP-transmission

---
  text/plain or text/html
    Comments for/between moderators.
---
  news-transmission
    The message itself. Can be 8Bit, won't be change by mail-systems
---

END

Of course more save-parts can be included, so that it is very open to new
ideas.



At this point we have everything done in NNTP. The post which has to be moderated
is in the mailbox of the moderator(s).

3. How to handle with moderate-posts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There are two main possibilities of mailboxes:

a) POP3
b) IMAP


a)
With POP3 you have to do in any kind the following steps:
   I) Download the mail via POP3
  II) Delete it on the server
 III) Handle it/Change its Headers/Do what ever to do
  IV) Delete or send to a NNTP-Server
   V) (Perhaps) Download the post via NNTP again.

Three problems: 
   I) There can be more than one moderator
  II) The (complete!)post have to be downloaded twice and uploaded once.
      This is exspecially a problem with binaries.
 III) Every tool you can write have to add support for everything used in
      postings, with this new proposual it MUST implement MIME too, allthough
      this sould not be that harmful for new tools, because it's rather easy,
      it is a problem for old tools.


b)
In IMAP you can download the MIME-structure, you can download parts of MIME,
you can do things on the server. On most servers it is possible to access with
two users together on one mailbox.
For every message you can save "flags"; the based RFC describes a possibility
to add "own" flags, so that many servers should be able to save new ones.
"Folders" can have options like "NO-SELECT" and "MARKED". Yet I don't know if
one MAY add new flags in this part, but therefor I post to comp.mail.imap ;-)

Yet it is not possible to change MIME-parts. This should be add in this
proposual. (see bottom)


Problems:
   I) IMAP is based as an online-protocol, so people with connections based on
      a minute-pay have a problem.
  II) Can folders get "new" flags?

Both problems don't block the whole proposual.


Of course moderators MAY use the new IMAP-system, they do NOT NEED to, the old
systems can stay as long as they want. But exspecially with more than one
moderators and a statut of changing MIDs it's better to use it, because a
central approve-system can avoid problems of "double-posts" at all.



4. Changing parts of MIME in IMAP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Because I didn't describe this part in my BLL (it is an own thematic), I am
not very familar with such a command needed and what have to be done.
Another problem is how the servers save the articles. In a 1GB-File changing
the length of the first article is not very well. If it is saved in
one-file-per-mail it is no problem.

This problem have to be solved in his own document, but is of course part of
the whole problem. So I try to introduce a new command, but this command is
not in its last form. If there is any suggestion it should be made!

Added CAPABILTY: "XMIMECHANGE"
Added Response: "MIMECHANGE <msg>" (reverse order?)
Added Commands: 
  "MIMECHANGE <MsgNum> <Part> <literal>"
  "MIMEDELETE <MsgNum> <Part>"
  "MIMEADD <MsgNum> <PartBefore> <literal>"

Perhaps it's only one command 'MIME' with a argument what have to be done.

    _________
     MIMEADD
    ¯¯¯¯¯¯¯¯¯

Adds the part given in "literal" after the Part given in "PartBefore". If
"PartBefore" is one hierachy higher (lower?) than the last part, the last part
is set to "multipart" and both parts are saved in this new hierachy.

    ____________
     MIMEDELETE
    ¯¯¯¯¯¯¯¯¯¯¯¯

Deletes the given part. If the part does not exists "NO" is sended back; if
the part is a multipart every sub-part is deleted too. If it is the "highest"
part (0) the article is marked as "deleted".

    ____________
     MIMECHANGE
    ¯¯¯¯¯¯¯¯¯¯¯¯

Like MIMEADD, but changes the given part. If the part does not exists "NO" is
sended back. If the old content is multipart and the new too, both are used.
So mostly you want to make "MIMEDELETE" and after this "MIMEADD" with
multipart-messages.


Response "MIMECHANGE":

This response is everytime sended to *every* client in this mailbox if one of
the above commands was used. So the clients know "this message have to be
updated".



5. "Approving" in IMAP
~~~~~~~~~~~~~~~~~~~~~~

At first we have to define *who* sets the APPROVE-Header. If the proposual
(MIME-Change) is included into all clients (MIME-CHANGE can also change
headers of a message), the users/moderators should add this header on their
own. But without this part and perhaps at all it can be better to let the
server itself set the header on approving. What do you all think?


These are the things to change in IMAP-spec:
CAPABILITY: "XAPPROVE"
Response: "APPROVED <msg>" (reverse?)
Command:  "APPROVE [<msgset>]"

New Flags: "(X)APPROVE, (X)APPROVED"
New List-Flag: "(X)MODERATED"


Steps to approve messages:

a) Set the message-headers (see above too)
b) Set the flag x"APPROVE"
c) Send the command "APPROVE" (msgset can contain nothing to provide approving
   of all messages with flag approve. Handling is like Expunge
d) Now the response "APPROVE <msg>" (<msg> is the num of message) is given
   back, the flag of the message is set to X"APPROVED".
   The response is sent to *every* client

To let the client know that one folder is for "Moderating" the List-Flag is
used; it is given on LIST-Response. comp.mail.imap: Please tell if this is
allowed to be enhanced at all.


6. Problems known/I think of
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

a) What has to be done if a mail is not in the new mime-type?
b) Should the server or the user set the approve-header? 
   What kind of header should be set?
c) Security: Is there any problem according this? 
d) What happens if a moderator is not available any longer, 
   aka he is somehow not findable any longer. Who should be contacted, what
   has to be done? Should only the mail-forwarder be changed or should the
   account be converted? Who can say what to do?
e) Is there any limits of servers? Can they post/send messages into usenet 
   at all?
f) Will there be IMAP-clients wanting to implement this?
g) I misunderstood any RFC according to IMAP/NNTP? ;-)
h) Is there a need in Usenet? Should there a new 1036er RFC to provide this
   feature? Why those Drafts never going to a real RFC yet? 
   (no time or were there any problems at all?)




MFG, HTH, TIA

-- 
Heiko Studt

Technical Details
Message-ID: <b8sh3g.54.1@Heiko.Studt.dialin.t-online.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.imap.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <b8sh3g.54.1@Heiko.Studt.dialin.t-online.de>
Subject: [Propose] Enhanced (NNTP) moderation via mail (IMAP?)
Date: Fri, 02 May 2003 01:19:43 +0200
From: Heiko Studt <UsenetBecky@goldpool.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.imap.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
Newsgroups: news.software.nntp,comp.mail.imap
Followup-To: news.software.nntp
Organization: HSR
Lines: 387
Reply-To: Heiko.Studt@gmx.de
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.t-online.com 1051831169 04 4830 0SGMEeLSStYhcE 030501 23:19:29
X-Complaints-To: abuse@t-online.com
X-ID: S3lCfwZSweoCJSUKsDRi+bLViLaw07pSeYkiNRpCzNb5EyQecugl4H
X-Mailer: Becky! ver. 2.05.10 with BkNews Plug-In ver. 2.0
User-Agent: Hamster-Pg/1.8