vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   NNTP Gateway for Usenet ( Newsgroups ), Mailing Lists (https://vborg.vbsupport.ru/showthread.php?t=65152)

lierduh 08-12-2004 11:40 PM

Quote:

Originally Posted by Marv
Could someone help me with that problem ? I can run the gateway only once a day connecting to 9 newsgroups. That means I receive ~50 posts from the first newsgroup and while they are ported over to the db my Server-IP becomes blocked :ermm:
I guess the script works perfect as it should. I only must connect to a newsserver that seems to accept only 5 request per second. 5 connections to newsgroups are working fine - everything above becomes blocked. I guess that?s because the script doesn?t loop through each ng like the script imports the single posts. Instead it gateways all ng?s with only one request which means multiple connections at one time. (True or false ?)

Is there a way that gateway.php could pause between two ng?s for ? seconds ?

Regards,
Marv.

A quick and dirty way is to add:

sleep (5);

under this line:

while ($group = $DB_site->fetch_array($get_groups)){

Change 5 to other seconds you want. The script queries the server one by one, it does not create more than one connection at a time. It behaves quite like a normal news reader.

Blackbeard 08-13-2004 12:25 AM

When all these post from newsgroup, if a member replies to the post should it post back to newsgroup, iam i ment to do anything more than basic installation, as i have tested reply, didnt get any error but viewed newsgroup and no reply posted.

am i ment to put anything in prefix, username etc to post back etc or do i have to alter any settings in gateway settings??

Marv 08-13-2004 02:31 AM

Quote:

Originally Posted by lierduh
A quick and dirty way is to add:

sleep (5);

under this line:

while ($group = $DB_site->fetch_array($get_groups)){

Change 5 to other seconds you want.

That does the trick. Thank you, lierduh http://www.my-smileys.de/smileys1/thumbup.gif

Quote:

Originally Posted by lierduh
The script queries the server one by one, it does not create more than one connection at a time. It behaves quite like a normal news reader.

I see - I tested the gateway this morning with a commercial newsserver and the script worked like a charme (out of the box). It seems the problem was in fact the free newserver I used until now. But modificated with sleep(3); even the free one works fine.

xb_ 08-14-2004 10:43 AM

Quote:

Originally Posted by lierduh
Actually I need the original message headers.

Ok. I have attached one example for now, as i didn't used the client that allowed me to view/save raw messages with ease. I used outlook, while outlook express seems better for the job. When i exported from outlook to outlook express, it didn't export all of the original headers. (which i had to add manualy again) :|

Anyway knowing this, the next example should be easyer.

Blackbeard 08-14-2004 11:10 AM

Quote:

Originally Posted by Blackbeard
When all these post from newsgroup, if a member replies to the post should it post back to newsgroup, iam i ment to do anything more than basic installation, as i have tested reply, didnt get any error but viewed newsgroup and no reply posted.

am i ment to put anything in prefix, username etc to post back etc or do i have to alter any settings in gateway settings??

any chance someone can help why can i not post back to newsgroups, in settings in the email bit, iam ment to add the email like webmaster@learnall.com or mail.learnall.com which one is it. Or is it something else.

please help i have clicked installed

lierduh 08-14-2004 11:29 AM

Quote:

Originally Posted by xb_
Ok. I have attached one example for now, as i didn't used the client that allowed me to view/save raw messages with ease. I used outlook, while outlook express seems better for the job. When i exported from outlook to outlook express, it didn't export all of the original headers. (which i had to add manualy again) :|

Anyway knowing this, the next example should be easyer.

There should be no reason for those posts not to be threaded.

Don't tell me you have not turned on "Find Thread by Subject" within AdminCP.

lierduh 08-14-2004 11:34 AM

Quote:

Originally Posted by Blackbeard
any chance someone can help why can i not post back to newsgroups, in settings in the email bit, iam ment to add the email like webmaster@learnall.com or mail.learnall.com which one is it. Or is it something else.

please help i have clicked installed

A few things might help other people helping you.

Your current AdminCP setting
Reading Readme file
Post debug info

xb_ 08-14-2004 11:44 AM

Quote:

Originally Posted by lierduh
There should be no reason for those posts not to be threaded.

Don't tell me you have not turned on "Find Thread by Subject" within AdminCP.

hm i didn't indeed :| sorry for the trouble.. and offcourse thanks for the support.
As a sidenote, imho this setting should be enabled automagicly when using mailinglist archive.

Marv 08-15-2004 12:39 PM

Hi lierduh,

are you working an the next release of this hack yet ? if so I would really appreciate if you ( or someone else ) could make this hack producing correct email adresses in the header ( i.e. From: My Name <myemail@domain.com>) .
Many people in the newsgroups which we?re importing are asking for that.

Is there a simple way of including the email-adress from the db to the header information, so that others only have to hit the reply button to drop the author a line?

Regards,
Marv.

john_rsd 08-15-2004 07:02 PM

lierduh

Did you ever consider making the code for the sort by reference/thread a stand alone query that could be run on an existing forum?

Mainly for forums which have a lot of non-threaded entries due to not having correct settings, or where the thread by subject was not used with the original hack.


All times are GMT. The time now is 06:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01823 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete