news2mail and mail2news - PowerPoint PPT Presentation

1 / 8
About This Presentation
Title:

news2mail and mail2news

Description:

news2mail and mail2news. A bi-directional gateway. between Usenet and Email ... X-Sepdate: Fri Sep 5099 10:27:25 BST 1993. Mime-Version: 1.0. Content-Type: ... – PowerPoint PPT presentation

Number of Views:51
Avg rating:3.0/5.0
Slides: 9
Provided by: davidca3
Category:

less

Transcript and Presenter's Notes

Title: news2mail and mail2news


1
news2mail and mail2news
  • A bi-directional gateway
  • between Usenet and Email

2
news2mail and mail2news
  • Pure perl
  • Uses NNTP and SMTP
  • Works with any servers

3
news2mail and mail2news
  • Message formats

4
news2mail and mail2news
  • Identical headers

5
news2mail and mail2news
  • Similar headers

6
news2mail and mail2news
  • Usenet to email conversion

Path g2news2.google.com!postnews.google.com!... D
ate Wed, 22 Aug 2007 171513 -0700 From
roberthar..._at_my-deja.com Newsgroups
alt.2eggs.sausage.beans.tomatoes.2toast.largetea.c
heerslove Message-ID 1187828113.562214.100540_at_m37
g2000prh.googlegroups.com Subject Re black
Pudding References 46CC4CFA.2A57EE2B_at_yahoo.com In
-Reply-To 46CC4CFA.2A57EE2B_at_yahoo.com Lines
20 NNTP-Posting-Host 195.137.63.170 Organization
http//groups.google.com Mime-Version
  • Date, Message-ID, Subject and From are unchanged
  • Insert a To header
  • Insert a Reply-To header
  • Turn Newsgroups into X-Newsgroup
  • Path is translated into Received
  • References is turned into In-Reply-To
  • Turn anything else into X-NNTP-Header-foo

7
news2mail and mail2news
  • Email to usenet conversion

Received from Date Fri, 17 Aug 2007 112304
0100 From David Cantrell david_at_cantrell.org.uk T
o post-to-2eggs-newsgroup_at_example.com Message-ID
20070817102303.GA31679_at_bytemark.barnyard.co.uk Su
bject Re Black pudding References
12345_at_wherever.co.uk In-Reply-To
12345_at_wherever.co.uk X-Sepdate Fri Sep 5099
102725 BST 1993 Mime-Version 1.0 Content-Type
  • Message-ID, Subject and From are unchanged
  • Replace To header with Newsgroups
  • Drop Date and Received

8
news2mail and mail2news
Modules used
  • NetNNTPClient - to get news
  • NetNNTP - to post news
  • EmailSend - cos SMTP is a pain in the arse
  • GDBM_File - for keeping track of what messages
    weve seen

7431 bytes of perl code, 5844 for news2mail and
1587 for mail2news
Write a Comment
User Comments (0)
About PowerShow.com