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)

KevinM 06-13-2004 05:15 PM

Here are two more mini-hacks which some may find useful. Thanks to BustaCap for testing the threading-by-subject script and to trackpads for testing the killfile filter.

Threading by Subject Title
The threading by subject script works on email lists only, whereby sometimes there are no message references included in the headers, so the only way to match the thread is by the subject title. Now with bugs removed :mad:

Killfile Filter to block posts
The killfile is similar to the equivilent you would find on a newsreader. It allows the admin to block certain messages from downloading if certain words or phrases are met by checking the posters name, subject title, email address or server where they originated. It is a fairly lightweight filter suitable for blocking annoying trolls and needs to used carefully to avoid blocking legitimate posts. Some may find this against the principles of usenet, but it's here if you want it.

You can use either or both of these together and are compatible with the stripping of email footers.

scottct1 06-13-2004 05:57 PM

Does the threading for Mailing lists work correctly now? I installed it the other day and it worked a few times, and then I started getting mysql errors (posted above in this thread)

Also please explain how to set it up to strip document footers. On yahoogroups I would like to keep the ads (I would feel guilty stipping those out) however I would like to remove the instructions on how to unsubscribe to the Yahoogroup that is on the bottom of each message.

Thanks

KevinM 06-13-2004 06:39 PM

Quote:

Originally Posted by scottct1
Does the threading for Mailing lists work correctly now? I installed it the other day and it worked a few times, and then I started getting mysql errors (posted above in this thread)

Yes, problem solved ;)

Quote:

Originally Posted by scottct1
Also please explain how to set it up to strip document footers. On yahoogroups I would like to keep the ads (I would feel guilty stipping those out) however I would like to remove the instructions on how to unsubscribe to the Yahoogroup that is on the bottom of each message.

The strip-footers script can be found here You enter the characters or words that start the area you want stripped - just enough for it to be unique, and from that point on the rest of the message will be stripped.

Marv 06-13-2004 07:54 PM

Quote:

Originally Posted by lierduh
should work although not tested. I must say it is quite strange that you need to have these to be able to post to the ng.

Thanks lierduh,
that worked for me.

We?re connecting to a non-public newsgroup on a buiseness-server, so we?re forced to do this modifications in the header. In german newsgroups you?ld find thousands of people yelling at you if you would participate a newsgroup with Outlook or OutlookExpress. They don?t even call those products "newsreader", they call it "data garbage centrifuge" because of the amount of bugs they are producing while trying to convert header-lines in a proper manner).
Most ng-members are using special news-readers like forte agent and others. These software pieces are producing correct headers but can?t read the one?s Outlook is inserting there.

lierduh, one problem remains.
In Germany they use letters like "?" "?" and "?" (and in capitols also of course). Is there anybody out there who could write some code which would convert these special german letters and other signs into ASCII on the server and in the moment gateway.php is sending the mesages out to the newsgroups ? (for outgoing posts to the newsserver & for incoming)

German letters:
? to &#196
? to &#228
? to &#214
? to &#246
? to &#220
? to &#252
? to &#223

Signs:
< to &#60
> to &#62
? to &#167
? to &#169
? to &#174
& to &#38
? to &#183
" to &#43
&#160 (Space)


We would really appreciate if someone could do this.. Any chance..? :ermm:

Marv 06-13-2004 07:57 PM

Quote:

Originally Posted by KevinM
Killfile Filter to block posts

Great, Kevin - that?s another thing I was looking for. Thanks ! You read my mind :)

Quote:

This filter checks 4 elements of each incoming message, and if ANY of them
match it will ignore that message.

The four elements are:

Username
Subject title
Email address
Server address
Could you add the body of a message as fifth element ? Some (including me) could find that very useful.

Marv 06-13-2004 08:47 PM

lierduh,

i noticed that the hack?s only fetching posts (sending them to a newsserver) which are answers. postings which are opening up a new thread aren?t included and they never show up in a newsgroup.

Can anyone confirm that for his/her site ?

BustaCap 06-13-2004 10:07 PM

Quote:

Originally Posted by Marv
lierduh,

i noticed that the hack?s only fetching posts (sending them to a newsserver) which are answers. postings which are opening up a new thread aren?t included and they never show up in a newsgroup.

Can anyone confirm that for his/her site ?

I just tested this and my new thread showed up in the newsgroup.

When I first installed this hack I was using the vB cron for running the gateway, with the gateway.php supposed to be run every hour. However, I found that it was only running several times a day for some reason. When I used this method posts would often not show up. To trouble shoot I manually ran gateway.php immediately after posting and I found that all of those posts would be sent. I now use my site cpanel to run the cron job every 10 minutes and all posts show up. Try posting a new thread and then manually run gateway.php and see if that works.

Marv 06-13-2004 11:01 PM

Quote:

Originally Posted by BustaCap
Try posting a new thread and then manually run gateway.php and see if that works.

Hello BustaCap, thanks for your suggestion - but that?s exactly what I already did before I?d posted my question here. I have no glue why starting posts aren?t send to the newsservers. (It?s definitifly the hack itself - the postings just don?t seem to be in my forum when I run gateway.php..)

And even worse - I can?t run cron jobs in my hosting package :ermm:
Any ideas? (beside upgrading the hosting-package..)

lierduh 06-14-2004 12:41 AM

Quote:

Originally Posted by Marv
Hello BustaCap, thanks for your suggestion - but that?s exactly what I already did before I?d posted my question here. I have no glue why starting posts aren?t send to the newsservers. (It?s definitifly the hack itself - the postings just don?t seem to be in my forum when I run gateway.php..)

A bit confused there. As soon as you post a new thread, the thread should be in your forums. That is nothing to do with the gateway. Or unless you meant: you posted a new thread, but the gateway script did not send it to the server, or the server did not accept your new thread post. In any case, you might like to run it manually, capture the screen print out and post here for fault finding purpose.

trackpads 06-14-2004 01:53 AM

Quote:

Originally Posted by KevinM
Here are two more mini-hacks which some may find useful. Thanks to BustaCap for testing the threading-by-subject script and to trackpads for testing the killfile filter.

Threading by Subject Title
The threading by subject script works on email lists only, whereby sometimes there are no message references included in the headers, so the only way to match the thread is by the subject title. Now with bugs removed :mad:

Killfile Filter to block posts
The killfile is similar to the equivilent you would find on a newsreader. It allows the admin to block certain messages from downloading if certain words or phrases are met by checking the posters name, subject title, email address or server where they originated. It is a fairly lightweight filter suitable for blocking annoying trolls and needs to used carefully to avoid blocking legitimate posts. Some may find this against the principles of usenet, but it's here if you want it.

You can use either or both of these together and are compatible with the stripping of email footers.

GREAT work!!!!!!!


All times are GMT. The time now is 01:28 PM.

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.01695 seconds
  • Memory Usage 1,759KB
  • 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
  • (9)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