🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Sabahattin Gucukoglu Mon, 14 Jul 2008 00:20
Pull News To Mail
#79204
Author: Sabahattin Gucukoglu
Date: Mon, 14 Jul 2008 00:20
61 lines
4343 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I have written a tool to send news by mail.  It's written in Tcl and you 
can fetch it from here:
http://sabahattin-gucukoglu.com/newsfetch

It's sufficiently small that writing it was neither troublesome nor 
unrewarding.  It works on all platforms and it's fast.

Here's a surprisingly related thread:
http://tinyurl.com/5h7vnv

Now, I want to go the other way: to put unique news articles sucked from a 
news server (identified uniquely by Message-ID fields) for specified 
groups into some sort of mail store or for posting to lists, by injecting 
them into the stdin of some responsible process (maildrop, for instance).  
The useful advantage of a mail store is that one gains all the benefits of 
IMAP, and all of the filtering, tools and features of all of the email 
filters and clients that can use either IMAP or the store that the IMAP 
server is using.  (Making easy stuff hard, you see. :-) )

I've looked at the big, bloated options.  In particular, suck and inn.  
I've tried to repurpose tools like fetchnews in leafnode, but it's 
hopeless.  Wherever I look, I find the tools written for fetching articles 
are all purpose-built.  I'd hate to write the program myself if I could 
avoid duplicating effort, mostly because of details of the implementation 
in Tcl that would make the script decidedly less portable and decidedly 
more unwieldy.  I will, if it comes to it, but it'll take more thought 
than for newspost to get it all right.  (Currently, an
"xhdr message-id 1-" on each group followed by "article msgid" on not-seen 
articles should be all that's needed.)

Does anybody have last thoughts on a convenient way to fetch news articles 
separately into the stdin of subprocesses?  That's all I need.  I can work 
out how to store articles, or how to separate articles for each group 
(which could include not downloading duplicate articles that were 
crossposted) later.

Cheers,
Sabahattin

- -- 
Sabahattin Gucukoglu <mail<at>sabahattin<dash>gucukoglu<dot>com>
Address harvesters, snag this: feedme@yamta.org
Phone: +44 20 88008915
Mobile: +44 7986 053399
http://sabahattin-gucukoglu.com/


-----BEGIN PGP SIGNATURE-----
Version: PGP 8
Comment: QDPGP - http://community.wow.net/grt/qdpgp.html

iQA/AwUBSHqbyyNEOmEWtR2TEQIe7QCaA4XNXkEmPZSV3kQFp6SemhOAcT4AoLxd
ozURe0yc3jmvEt0uavQ7NfzA
=eAJx
-----END PGP SIGNATURE-----
Re: Pull News To Mail
#79206
Author: Blinky the Shark
Date: Mon, 14 Jul 2008 02:48
22 lines
1804 bytes
Sabahattin Gucukoglu wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> 
> I have written a tool to send news by mail.  It's written in Tcl and you 

Why?  Not a challenge; just a question.

> can fetch it from here:
> http://sabahattin-gucukoglu.com/newsfetch

404

-- 
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project: http://improve-usenet.org
Need a new news feed?  http://blinkynet.net/comp/newfeed.html
Re: Pull News To Mail
#79209
Author: Sabahattin Gucukoglu
Date: Mon, 14 Jul 2008 05:03
56 lines
4233 bytes
Hi Blinky,

On 13 Jul 2008 at 19:48, Blinky the Shark said:

> Sabahattin Gucukoglu wrote:

[...]

> > I have written a tool to send news by mail.  It's written in Tcl and
> > you 
> 
> Why?  Not a challenge; just a question.

It's the only thing stopping most half-decent threaded mailers being 
complete newsreaders, basically, including those later patched to support 
NNTP (mutt) and those never intended as newsreaders but which nevertheless 
kick arse (Pegasus Mail on Windows or SQWebmail), among others.  And 
seeing as how most mailers are just nicer than their newsreading 
counterparts anyway, and since one frequently crossposts to mail and news, 
and since one is frequently only reading text newsgroups and responding 
with identical identity and preferences, and since one can't stand the 
horrible mess that some newsreaders make of trying to be mailers 
simultaneously while they cough and splutter when presented with MIME or 
encoded headers, ..., that gives me a reason to stay inside my mail 
clients as long as possible.  I'm blind, too, and most newsreaders on 
Windows are written to be as non-Windows-guidance as possible for whatever 
reason, or with toolkits that just don't reveal enough data about 
themselves for use by screen readers.  Also, like I said, getting the 
reading half on IMAP in maildirs without the batch transfer stuff I do now 
(which occasionally requires going to Google Groups and *manually* copying 
the raw articles into my mailboxes when I can't reach NNTP using mutt) 
would mean complete bliss, since I then get remote news with persistent 
flags no matter where I am, no matter what client.  As a nice bonus, those 
who can't reach Usenet by any other means than mail can do so, but that is 
just a bonus and I've tried to preserve as much trace information as I can 
in newspost.

> > can fetch it from here:
> > http://sabahattin-gucukoglu.com/newsfetch
> 
> 404

I followed up.  It's here:
http://sabahattin-gucukoglu.com/newspost

Cheers,
Sabahattin

-- 
Sabahattin Gucukoglu <mail<at>sabahattin<dash>gucukoglu<dot>com>
Address harvesters, snag this: feedme@yamta.org
Phone: +44 20 88008915
Mobile: +44 7986 053399
http://sabahattin-gucukoglu.com/

Re: Pull News To Mail
#79208
Author: Sabahattin Gucukoglu
Date: Mon, 14 Jul 2008 05:13
56 lines
4233 bytes
Hi Blinky,

On 13 Jul 2008 at 19:48, Blinky the Shark said:

> Sabahattin Gucukoglu wrote:

[...]

> > I have written a tool to send news by mail.  It's written in Tcl and
> > you 
> 
> Why?  Not a challenge; just a question.

It's the only thing stopping most half-decent threaded mailers being 
complete newsreaders, basically, including those later patched to support 
NNTP (mutt) and those never intended as newsreaders but which nevertheless 
kick arse (Pegasus Mail on Windows or SQWebmail), among others.  And 
seeing as how most mailers are just nicer than their newsreading 
counterparts anyway, and since one frequently crossposts to mail and news, 
and since one is frequently only reading text newsgroups and responding 
with identical identity and preferences, and since one can't stand the 
horrible mess that some newsreaders make of trying to be mailers 
simultaneously while they cough and splutter when presented with MIME or 
encoded headers, ..., that gives me a reason to stay inside my mail 
clients as long as possible.  I'm blind, too, and most newsreaders on 
Windows are written to be as non-Windows-guidance as possible for whatever 
reason, or with toolkits that just don't reveal enough data about 
themselves for use by screen readers.  Also, like I said, getting the 
reading half on IMAP in maildirs without the batch transfer stuff I do now 
(which occasionally requires going to Google Groups and *manually* copying 
the raw articles into my mailboxes when I can't reach NNTP using mutt) 
would mean complete bliss, since I then get remote news with persistent 
flags no matter where I am, no matter what client.  As a nice bonus, those 
who can't reach Usenet by any other means than mail can do so, but that is 
just a bonus and I've tried to preserve as much trace information as I can 
in newspost.

> > can fetch it from here:
> > http://sabahattin-gucukoglu.com/newsfetch
> 
> 404

I followed up.  It's here:
http://sabahattin-gucukoglu.com/newspost

Cheers,
Sabahattin

-- 
Sabahattin Gucukoglu <mail<at>sabahattin<dash>gucukoglu<dot>com>
Address harvesters, snag this: feedme@yamta.org
Phone: +44 20 88008915
Mobile: +44 7986 053399
http://sabahattin-gucukoglu.com/

Re: Pull News To Mail
#79210
Author: Sabahattin Gucukoglu
Date: Mon, 14 Jul 2008 05:13
56 lines
4232 bytes
Hi Blinky,

On 13 Jul 2008 at 19:48, Blinky the Shark said:

> Sabahattin Gucukoglu wrote:

[...]

> > I have written a tool to send news by mail.  It's written in Tcl and
> > you 
> 
> Why?  Not a challenge; just a question.

It's the only thing stopping most half-decent threaded mailers being 
complete newsreaders, basically, including those later patched to support 
NNTP (mutt) and those never intended as newsreaders but which nevertheless 
kick arse (Pegasus Mail on Windows or SQWebmail), among others.  And 
seeing as how most mailers are just nicer than their newsreading 
counterparts anyway, and since one frequently crossposts to mail and news, 
and since one is frequently only reading text newsgroups and responding 
with identical identity and preferences, and since one can't stand the 
horrible mess that some newsreaders make of trying to be mailers 
simultaneously while they cough and splutter when presented with MIME or 
encoded headers, ..., that gives me a reason to stay inside my mail 
clients as long as possible.  I'm blind, too, and most newsreaders on 
Windows are written to be as non-Windows-guidance as possible for whatever 
reason, or with toolkits that just don't reveal enough data about 
themselves for use by screen readers.  Also, like I said, getting the 
reading half on IMAP in maildirs without the batch transfer stuff I do now 
(which occasionally requires going to Google Groups and *manually* copying 
the raw articles into my mailboxes when I can't reach NNTP using mutt) 
would mean complete bliss, since I then get remote news with persistent 
flags no matter where I am, no matter what client.  As a nice bonus, those 
who can't reach Usenet by any other means than mail can do so, but that is 
just a bonus and I've tried to preserve as much trace information as I can 
in newspost.

> > can fetch it from here:
> > http://sabahattin-gucukoglu.com/newsfetch
> 
> 404

I followed up.  It's here:
http://sabahattin-gucukoglu.com/newspost

Cheers,
Sabahattin

-- 
Sabahattin Gucukoglu <mail<at>sabahattin<dash>gucukoglu<dot>com>
Address harvesters, snag this: feedme@yamta.org
Phone: +44 20 88008915
Mobile: +44 7986 053399
http://sabahattin-gucukoglu.com/

Re: Pull News To Mail
#79211
Author: Sabahattin Gucukoglu
Date: Mon, 14 Jul 2008 05:44
22 lines
2466 bytes
On Mon, 14 Jul 2008 06:13:54 +0100, I said:

> and those never intended as newsreaders but which nevertheless kick arse 
> (Pegasus Mail on Windows)

Right, yeah, it's that good it chooses this moment to freeze until it can 
write to a CopySelf folder on local disk even when it can queue mail.  I 
pressed Send three times, it didn't send three times, but it did queue.  
When you're on IMAP, it uses an IMAP folder, no problem, but I was replying 
to a copy of an article in the local disk folder.  When I killed and 
restarted the program, it happily mailed to the script all three copies, 
but not before trashing the CopySelf copy.  AAAAARRRRRGGGGGH!  WINDOWS 
SOFTWARE!

Sorry for the multiple posts.  It doesn't happen all the time.

-- 
Sabahattin Gucukoglu <mail<at>sabahattin<dash>gucukoglu<dot>com>
Address harvesters, snag this: feedme@yamta.org
Phone: +44 20 88008915
Mobile: +44 7986 053399
http://sabahattin-gucukoglu.com/
Re: Pull News To Mail
#79215
Author: Julien ÉLIE
Date: Mon, 14 Jul 2008 09:46
15 lines
1954 bytes
>> and those never intended as newsreaders but which nevertheless kick arse
>> (Pegasus Mail on Windows)
>
> Right, yeah, it's that good it chooses this moment to freeze
> I pressed Send three times, it didn't send three times, but it did queue.
> it happily mailed to the script all three copies
> Sorry for the multiple posts.  It doesn't happen all the time.

Real newsreaders are still far better :->

-- 
Julien ÉLIE

« Tuto, cito, iucunde. » (Esculape) 
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