Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conform gateway to last RFC #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,22 @@ PHPN2J_Gateway
==============

Standalone N2J Gateway "NNTP to JNTP" for Inn

Usage :
-------
Copy this file and rename it wathever you want.
Better is to copy it in path_to_inn/bin and keep the name (in FreeBSD: /usr/local/news/bin/n2j_gateway.php).

Set the executable bit : chmod +x /usr/local/news/bin/n2j_gateway.php

Configure your newsfeeds file, for example :

JNTP!/from-jntp:[group pattern]:Tp,Wf:/usr/local/news/bin/n2j_gateway.php %s [server]

Manualy : /usr/local/news/bin/n2j_gateway.php [token] [server]

You can know the token of an Usenet article with the command :
/usr/local/news/bin/grephistory '<Message-ID>'

You can test it with the command :
./n2j_gateway.php --test
54 changes: 54 additions & 0 deletions message
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
X-Received: by 10.180.160.176 with SMTP id xl16mr1348865wib.6.1425176309638;
Sat, 28 Feb 2015 18:18:29 -0800 (PST)
X-BeenThere: [email protected]
Received: by 10.152.29.201 with SMTP id m9ls322688lah.6.gmail; Sat, 28 Feb
2015 18:18:26 -0800 (PST)
X-Received: by 10.112.199.69 with SMTP id ji5mr2941432lbc.0.1425176306471;
Sat, 28 Feb 2015 18:18:26 -0800 (PST)
From: Anterak 42 <[email protected]>
Newsgroups: fr.test
Subject: Statistiques hebdomadaires du 20/02/2015 au 27/02/2015
Followup-To: fr.usenet.divers
Date: Fri, 27 Feb 2015 20:09:16 +0000 (UTC)
Organization: Les cassoulets tropicaux r�unis
Lines: 247
Sender: [email protected]
Approved: [email protected]
Message-ID: <[email protected]>
Reply-To: [email protected]
NNTP-Posting-Host: golgoth98.redatomik.org
Mime-Version: 1.0
X-Trace: golgoth98.redatomik.org 1425067756 7506 195.154.70.45 (27 Feb 2015 20:09:16 GMT)
X-Complaints-To: [email protected]
NNTP-Posting-Date: Fri, 27 Feb 2015 20:09:16 +0000 (UTC)
Path: to1ni55996lbb.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!nerim.net!feed.ac-versailles.fr!news.redatomik.org!.POSTED!not-for-mail
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 8bit

Statistiques d'utilisation d'Usenet-fr du 20/02/2015 au 27/02/2015 :
--------------------------------------------------------------------

595 utilisateurs ont post� :
- 6239 articles sur Usenet-fr,
- dans 132 groupes,
- avec 33 logiciels de coloriage,
- depuis 51 serveurs diff�rents.

Les logiciels de coloriage suivants ont �t� utilis�s sur Usenet-fr :
.------------------------------------------------------------------------------.
| 1 | Mozilla ...................................| . 2144 articles |..35.12% |
| 2 | MesNews ...................................| . 1300 articles |..21.29% |
| 3 | G2 ........................................| .. 709 articles |..11.61% |
| 4 | MacSOUP ...................................| .. 378 articles |...6.19% |
| 5 | Microsoft Outlook Express .................| .. 245 articles |...4.01% |
| 6 | Nemo ......................................| .. 232 articles |....3.8% |
| 7 | Microsoft Windows Live Mail ...............| .. 216 articles |...3.54% |
| 8 | slrn ......................................| .. 135 articles |...2.21% |
| 9 | Pan .......................................| ... 91 articles |...1.49% |
| 10 | NewsTap ...................................| ... 91 articles |...1.49% |
'------------------------------------------------------------------------------'

--
Ma signature


Loading