[DEV] NewsSync (Usenet -> phpBB Sync)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
kolczyk
Registered User
Posts: 73
Joined: Sat Dec 14, 2002 8:57 pm

Post by kolczyk » Wed Mar 12, 2003 2:51 pm

working great!!

how about to use multiple news servers? (not only one)

wineknow
Registered User
Posts: 299
Joined: Tue Mar 04, 2003 5:20 pm
Location: Calgary, Alberta, Canada
Contact:

working towards a beta 3

Post by wineknow » Wed Mar 12, 2003 3:06 pm

thanks for all the feedback folks.
as for my comments to it:
- multiple newsservers - I'll look into it, the nntp code is *mostly* a big, black box -- I just don't want to break it...
- the alternative email address stuff would be pretty easy to add
- quotes/bbcode should be stripped/replaced with something useful -- good idea, I'll look into it
- checking to make sure that an syncing instance is not already running, as well as, a maximum timeout - is something that must be done
- if anyone has a better way to deal with the email address, feel free to post code, the xxx@xxx.NOSPAM.com is something that is used frequently on usenet as it still enables folks to reply to sender quite easily

- let me know if you have any other problems
-kevin

wineknow
Registered User
Posts: 299
Joined: Tue Mar 04, 2003 5:20 pm
Location: Calgary, Alberta, Canada
Contact:

strange bug

Post by wineknow » Wed Mar 12, 2003 3:09 pm

Legolas-ga wrote: Strange bug I think... I have alt.test setup to sync, and the phpBB board shows that there are 24 pages of posts.. But, when I go beyond page 4 or so, it tells me there are no more posts.. So, it's not updating the number of posts, or the post_id's correctly somewhere.. Sorry, I'll try to track it down better shortly...


I ran into this a few times myself. I thought that the I fixed it in beta 2.
Did you purge your phpBB forum when upgrading to beta 2?

Regardless run:
php -q newssync.php NEWSPURGE=alt.test
then run it again w/o the NEWSPURGE and see if it comes back...

-k

wineknow
Registered User
Posts: 299
Joined: Tue Mar 04, 2003 5:20 pm
Location: Calgary, Alberta, Canada
Contact:

Re: strange bug

Post by wineknow » Wed Mar 12, 2003 3:12 pm

Whoops! I just checked my alt.test forum and well, I have the same problem. So it's not fixed. I'll track it down.
-k
wineknow wrote:
Legolas-ga wrote:Strange bug I think... I have alt.test setup to sync, and the phpBB board shows that there are 24 pages of posts.. But, when I go beyond page 4 or so, it tells me there are no more posts.. So, it's not updating the number of posts, or the post_id's correctly somewhere.. Sorry, I'll try to track it down better shortly...


I ran into this a few times myself. I thought that the I fixed it in beta 2.
Did you purge your phpBB forum when upgrading to beta 2?

Regardless run:
php -q newssync.php NEWSPURGE=alt.test
then run it again w/o the NEWSPURGE and see if it comes back...

-k

kolczyk
Registered User
Posts: 73
Joined: Sat Dec 14, 2002 8:57 pm

Post by kolczyk » Wed Mar 12, 2003 3:40 pm

I have following error when messages are sending to news server

-- no new topics or replys for pl.misc.elektronika
* Looking for messages to export...
-- Error sending message: 500 What?

or another:

* Looking for messages to export...
-- Error sending message: 441 You are not allowed to post to pl.misc.elektronika
-- 1 new phpBB replys in forum pl.misc.elektronika

modaco
Registered User
Posts: 120
Joined: Wed Dec 04, 2002 12:21 pm

Post by modaco » Wed Mar 12, 2003 3:56 pm

Another weird one...

My forum is in GMT, but people in the NG are posting from different time zones - hence threads in the phpBB quite often look really weird!

Is there a way to convert post times to GMT on import, hence resolving this problem?

Keep up the EXCELLENT work :)

P

wineknow
Registered User
Posts: 299
Joined: Tue Mar 04, 2003 5:20 pm
Location: Calgary, Alberta, Canada
Contact:

nntp error

Post by wineknow » Wed Mar 12, 2003 4:10 pm

kolczyk wrote: I have following error when messages are sending to news server

-- no new topics or replys for pl.misc.elektronika
* Looking for messages to export...
-- Error sending message: 500 What?

or another:

* Looking for messages to export...
-- Error sending message: 441 You are not allowed to post to pl.misc.elektronika
-- 1 new phpBB replys in forum pl.misc.elektronika


* this is an error from your news-server. -- your account may need a userid/passwd -- connect via a usenet client, and try to send a message...

kolczyk
Registered User
Posts: 73
Joined: Sat Dec 14, 2002 8:57 pm

Post by kolczyk » Wed Mar 12, 2003 4:13 pm

when I use client Outlook or Hammer everything working fine (messages are allowed)

wineknow
Registered User
Posts: 299
Joined: Tue Mar 04, 2003 5:20 pm
Location: Calgary, Alberta, Canada
Contact:

weird time

Post by wineknow » Wed Mar 12, 2003 4:14 pm

I'll look into it.
I am using the php function strtotime() which in my tests actually did covert to local time -- which the message gets posts as -- then submit_post *should* convert it to GMT -- I think...it should work...

One thing I have notices is that some folks have the time set incorrectly on their computer which really screws things up..and there is not much you can do about that....

-k

modaco wrote: Another weird one...

My forum is in GMT, but people in the NG are posting from different time zones - hence threads in the phpBB quite often look really weird!

Is there a way to convert post times to GMT on import, hence resolving this problem?

Keep up the EXCELLENT work :)

P

wineknow
Registered User
Posts: 299
Joined: Tue Mar 04, 2003 5:20 pm
Location: Calgary, Alberta, Canada
Contact:

error message

Post by wineknow » Wed Mar 12, 2003 4:19 pm

kolczyk wrote: when I use client Outlook or Hammer everything working fine (messages are allowed)


is outlook or hammer configured to send a userid/password?
[just want to check]
- also could it be possible that your phpBB server for some reason not allowed to send nntp messages?
- does alt.test work?

-k

kolczyk
Registered User
Posts: 73
Joined: Sat Dec 14, 2002 8:57 pm

Post by kolczyk » Wed Mar 12, 2003 4:20 pm

let me know what news server 100% works for You
and I will try at my

modaco
Registered User
Posts: 120
Joined: Wed Dec 04, 2002 12:21 pm

Post by modaco » Wed Mar 12, 2003 4:24 pm

What does a [NEWSPURGE] do exactly?

I assume it clears the entries out of the DB so you can re-sync the lot?

Can I do a newspurge without having to open a shell session (i.e. from phpMyAdmin or from a page?)

I have got my host to set up a CRON, but don't have shell access :(

P

kolczyk
Registered User
Posts: 73
Joined: Sat Dec 14, 2002 8:57 pm

Post by kolczyk » Wed Mar 12, 2003 4:27 pm

I've tried also alt.test
Syncing: alt.test with phpBB forumid: 46
-- total nntp posts for alt.test is 10
* Expiring old messages...
* Looking for new messages...
-- no new topics or replys for alt.test
* Looking for messages to export...
-- Error sending message: 500 What?
-- 1 new phpBB replys in forum alt.test

on servers: news.tpi.pl, news.wariat.org, gail.ripco.com...

what is 100% working news server? :(

modaco
Registered User
Posts: 120
Joined: Wed Dec 04, 2002 12:21 pm

Post by modaco » Wed Mar 12, 2003 4:41 pm

This sounds like the problem I was having... You running b2 and phpBB 2.0.4?

P

kolczyk
Registered User
Posts: 73
Joined: Sat Dec 14, 2002 8:57 pm

Post by kolczyk » Wed Mar 12, 2003 4:45 pm

phpBB 2.0.3 and b2

sending function working only for my local news server
I think this can be a problem (local news server blocked ports or something?)

Post Reply

Return to “[2.0.x] MODs in Development”

cron