Download presentation
Presentation is loading. Please wait.
Published byThomas Nash Modified over 8 years ago
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 Received: from dewey.classiccmp.org ([209.145.140.57]) by … Received: from … Date: Fri, 17 Aug 2007 11:23:04 +0100 From: David Cantrell david@cantrell.org.ukdavid@cantrell.org.uk To: cctech@classiccmp.orgcctech@classiccmp.org Message-ID: 20070817102303.GA31679@bytemark.barnyard.co.uk20070817102303.GA31679@bytemark.barnyard.co.uk Subject: Re: UK retro show evening References: 200708140955.50011.mark@wickensonline.co.uk200708140955.50011.mark@wickensonline.co.uk In-Reply-To: 200708140955.50011.mark@wickensonline.co.uk200708140955.50011.mark@wickensonline.co.uk X-Sepdate: Fri Sep 5099 10:27:25 BST 1993 Mime-Version: 1.0 Content-Type: … Email Path: g2news2.google.com!postnews.google.com!... Date: Wed, 22 Aug 2007 17:15:13 -0700 From: roberthar...@my-deja.comroberthar...@my-deja.com Newsgroups: alt.2eggs.sausage.beans.tomatoes.2toast.largetea.cheerslove Message-ID: 1187828113.562214.100540@m37g2000prh.googlegroups.com1187828113.562214.100540@m37g2000prh.googlegroups.com Subject: Re: black Pudding References: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com In-Reply-To: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com Lines: 20 NNTP-Posting-Host: 195.137.63.170 Organization: http://groups.google.comhttp://groups.google.com Mime-Version: … Usenet
4
Received: from dewey.classiccmp.org ([209.145.140.57]) by … Received: from … Date: Fri, 17 Aug 2007 11:23:04 +0100 From: David Cantrell david@cantrell.org.ukdavid@cantrell.org.uk To: cctech@classiccmp.orgcctech@classiccmp.org Message-ID: 20070817102303.GA31679@bytemark.barnyard.co.uk20070817102303.GA31679@bytemark.barnyard.co.uk Subject: Re: UK retro show evening References: 200708140955.50011.mark@wickensonline.co.uk200708140955.50011.mark@wickensonline.co.uk In-Reply-To: 200708140955.50011.mark@wickensonline.co.uk200708140955.50011.mark@wickensonline.co.uk X-Sepdate: Fri Sep 5099 10:27:25 BST 1993 Mime-Version: 1.0 Content-Type: … Email news2mail and mail2news Identical headers Path: g2news2.google.com!postnews.google.com!... Date: Wed, 22 Aug 2007 17:15:13 -0700 From: roberthar...@my-deja.comroberthar...@my-deja.com Newsgroups: alt.2eggs.sausage.beans.tomatoes.2toast.largetea.cheerslove Message-ID: 1187828113.562214.100540@m37g2000prh.googlegroups.com1187828113.562214.100540@m37g2000prh.googlegroups.com Subject: Re: black Pudding References: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com In-Reply-To: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com Lines: 20 NNTP-Posting-Host: 195.137.63.170 Organization: http://groups.google.comhttp://groups.google.com Mime-Version: … Usenet
5
Received: from dewey.classiccmp.org ([209.145.140.57]) by … Received: from … Date: Fri, 17 Aug 2007 11:23:04 +0100 From: David Cantrell david@cantrell.org.ukdavid@cantrell.org.uk To: cctech@classiccmp.orgcctech@classiccmp.org Message-ID: 20070817102303.GA31679@bytemark.barnyard.co.uk20070817102303.GA31679@bytemark.barnyard.co.uk Subject: Re: UK retro show evening References: 200708140955.50011.mark@wickensonline.co.uk200708140955.50011.mark@wickensonline.co.uk In-Reply-To: 200708140955.50011.mark@wickensonline.co.uk200708140955.50011.mark@wickensonline.co.uk X-Sepdate: Fri Sep 5099 10:27:25 BST 1993 Mime-Version: 1.0 Content-Type: … Email news2mail and mail2news Similar headers Path: g2news2.google.com!postnews.google.com!... Date: Wed, 22 Aug 2007 17:15:13 -0700 From: roberthar...@my-deja.comroberthar...@my-deja.com Newsgroups: alt.2eggs.sausage.beans.tomatoes.2toast.largetea.cheerslove Message-ID: 1187828113.562214.100540@m37g2000prh.googlegroups.com1187828113.562214.100540@m37g2000prh.googlegroups.com Subject: Re: black Pudding References: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com In-Reply-To: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com Lines: 20 NNTP-Posting-Host: 195.137.63.170 Organization: http://groups.google.comhttp://groups.google.com Mime-Version: … Usenet
6
news2mail and mail2news Usenet to email conversion Path: g2news2.google.com!postnews.google.com!... Date: Wed, 22 Aug 2007 17:15:13 -0700 From: roberthar...@my-deja.comroberthar...@my-deja.com Newsgroups: alt.2eggs.sausage.beans.tomatoes.2toast.largetea.cheerslove Message-ID: 1187828113.562214.100540@m37g2000prh.googlegroups.com1187828113.562214.100540@m37g2000prh.googlegroups.com Subject: Re: black Pudding References: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com In-Reply-To: 46CC4CFA.2A57EE2B@yahoo.com46CC4CFA.2A57EE2B@yahoo.com Lines: 20 NNTP-Posting-Host: 195.137.63.170 Organization: http://groups.google.comhttp://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 Message-ID, Subject and From are unchanged Replace To: header with Newsgroups: Drop Date: and Received: Received: from … Date: Fri, 17 Aug 2007 11:23:04 +0100 From: David Cantrell david@cantrell.org.ukdavid@cantrell.org.uk To: post-to-2eggs-newsgroup@example.com Message-ID: 20070817102303.GA31679@bytemark.barnyard.co.uk20070817102303.GA31679@bytemark.barnyard.co.uk Subject: Re: Black pudding References: 12345@wherever.co.uk12345@wherever.co.uk In-Reply-To: 12345@wherever.co.uk12345@wherever.co.uk X-Sepdate: Fri Sep 5099 10:27:25 BST 1993 Mime-Version: 1.0 Content-Type: …
8
news2mail and mail2news Modules used Net::NNTP::Client - to get news Net::NNTP - to post news Email::Send - cos SMTP is a pain in the arse GDBM_File - for keeping track of what messages we’ve seen 7431 bytes of perl code, 5844 for news2mail and 1587 for mail2news
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.