Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HamNewsJobsStart not working

1 view
Skip to first unread message

Ted S.

unread,
Mar 24, 2010, 9:36:59 AM3/24/10
to
I wanted to put all my email servers and the NNTP server I generally
fetch Usenet from into one script, since it should be more convenient
than going to Online -> All POP3 Servers and Online -> NNTP Server ->,
and because Gmail doesn't seem to work with the Online -> All POP3
Servers menu.

The script fetches the emails from all the servers, but I can't get it
to pull articles from the newsserver.

As best I can understand the gibberish in the Help files, either of
these two lines:

HamNewsJobsStart("news.albasani.net,nntp")
HamNewsJobsPull("news.albasani.net,nntp")

should work, but neither of them does. When I run the script, it still
only fetches the email, and does (almost) nothing with the newsserver.
(The Tasks/Jobs at the bottom left of the status bar increments by 1 for
Jobs and never resets to 0.) I still have to go to the extra step of
going to Online -> NNTP Server -> and selecting the server manually from
there.

When I tried

HamNewsJobsPull("news.albasani.net")

the Tasks/Jobs incremented by 9 jobs, which is the number of groups it
should be pulling, but the script still only fetches the email, and
leaves the Jobs at 9 after all the email is fetched.

I've been at this all morning and the Help file is as clear as mud on
how to set up a script to do something as simple as pull from an NNTP
server. Any ideas on what I'm supposed to do?

--
Ted S.
fedya at hughes dot net
Now blogging at http://justacineast.blogspot.com

LU Wei

unread,
Mar 24, 2010, 10:31:03 AM3/24/10
to
HamNewsJobsPost( <server> ) & HamNewsJobsPull( <server> ) only add jobs
to job list, and HamNewsJobsStart starts doing jobs. so I think the
following two lines:

HamNewsJobsPull("news.albasani.net,nntp")
HamNewsJobsStart

should work.


--
Regards,
LU Wei
PGP key ID: 0x92CCE1EA

Ted S.

unread,
Mar 24, 2010, 1:16:35 PM3/24/10
to
On Wed, 24 Mar 2010 22:31:03 +0800, LU Wei wrote:

> HamNewsJobsPost( <server> ) & HamNewsJobsPull( <server> ) only add
> jobs to job list, and HamNewsJobsStart starts doing jobs.

Ah, that at least makes sense

> so I think the following two lines:
>
> HamNewsJobsPull("news.albasani.net,nntp")
> HamNewsJobsStart
>
> should work.

What seems to have worked was
HamNewsJobsPullDef("news.albasani.net,nntp") combined with
HamNewsJobsStart. I'll see after I post this whether I need to add
another line for posting, too.

Wolfgang Jäth

unread,
Mar 25, 2010, 2:56:15 AM3/25/10
to
Am 24.03.2010 15:31, schrieb LU Wei:
> HamNewsJobsPost( <server> ) & HamNewsJobsPull( <server> ) only add jobs
> to job list, and HamNewsJobsStart starts doing jobs. so I think the
> following two lines:
>
> HamNewsJobsPull("news.albasani.net,nntp")
> HamNewsJobsStart
>
> should work.

Not exactly; it must be either

| HamNewsJobsPullDef("news.albasani.net,nntp")
^^^ ^^^^
or

| HamNewsJobsPull("news.albasani.net")
^^^ ^^^^

Wolf 'RTFM' gang
--

LU Wei

unread,
Mar 25, 2010, 8:49:20 PM3/25/10
to
Thanks for the correction. This raised a question: Why there should be
two functions HamNewsJobsPullDef and HamNewsJobsPull? Could they be
designed to be one, i.e., let HamNewsJobsPull also accept <server,port>
parameter format?

Wolfgang Jäth

unread,
Mar 26, 2010, 2:29:41 AM3/26/10
to
Am 26.03.2010 01:49, schrieb LU Wei:
>>> HamNewsJobsPost( <server> ) & HamNewsJobsPull( <server> ) only add jobs
>>> to job list, and HamNewsJobsStart starts doing jobs. so I think the
>>> following two lines:
>>>
>>> HamNewsJobsPull("news.albasani.net,nntp")
>>> HamNewsJobsStart
>>>
>>> should work.
>>
>> Not exactly; it must be either
>>
>> | HamNewsJobsPullDef("news.albasani.net,nntp")
>> ^^^ ^^^^
>> or
>>
>> | HamNewsJobsPull("news.albasani.net")
>> ^^^ ^^^^
>>
> Thanks for the correction. This raised a question: Why there should be
> two functions HamNewsJobsPullDef and HamNewsJobsPull? Could they be
> designed to be one, i.e., let HamNewsJobsPull also accept <server,port>
> parameter format?

I think, they're of different intention (and maybe of different age,
too). Instead of allowing to specify a port, HamNewsJobsPull has an
optional second parameter for selecting groups. Of course, it *would*
have been possible (IMHO at least) putting thse two features all
together in one function. I don't know, why at that time the authors
prefered to build separate functions.

Wolf 'maybe they later found specifying a port being superfluous, but
didn't want to remove a function already in use; maybe something else' gang
--

0 new messages