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)

BustaCap 06-08-2004 10:54 PM

Awesome! I'll be happy to test it :)

trackpads 06-09-2004 01:40 AM

Is there anyway to install this so that we can use both the newsgroup and mailing list features? I currently have 2 seperate boards for this and want to merge them both into my VB.

Thanks!

-Jason

KevinM 06-09-2004 07:46 PM

Finally finished it, this got more involved than I originally thought :ermm: , I have tested it on my test forum and it's all working. It needs some real life testing now with someone using mailing lists - thank you BustaCap.

It works pretty much as I described it few posts back:

It searches by references first, if it can't find one or there isn't a match it checks if there is at least one "Re: " in the subject line, which gives us a fair idea that it should belong to an existing thread.

It then will search the subject titles of the existing threads, and if there is a match, select the most recent one and insert it the post into it.

If there is no match, it creates a new thread as normal.

* I have removed the attachment pending a bug removal *

BustaCap 06-09-2004 07:53 PM

I'm going to try this right now :D

KevinM 06-09-2004 07:55 PM

.... waits nervously ....

KevinM 06-09-2004 08:24 PM

Quote:

Originally Posted by trackpads
Is there anyway to install this so that we can use both the newsgroup and mailing list features? I currently have 2 seperate boards for this and want to merge them both into my VB.

Thanks!

-Jason

Do you mean seperate forums (or sub-forums) within the same board? I'm fairly sure it does this now as standard.

BustaCap 06-09-2004 08:53 PM

It breezed through the first 10 messages, threading them correctly. Then it choked on the 11th message and gave me a SQL error. I pm'd you the error and some further info.

scottct1 06-09-2004 11:34 PM

I ran great for me the first few times, however the messages going out to YAHOOGROUPS are now getting a SQL error.

This is the error I am getting...

Quote:

Database error in vBulletin 3.0.1:

Invalid SQL: INSERT INTO post
(postid, threadid, title, username, userid, dateline,
pagetext, allowsmilie, showsignature, ipaddress,

iconid, visible, isusenetpost, msgid, ref, parentid)
VALUES (NULL, ,
'[VOOM] Re: Wilt please HELP with accounting dept.',
'prope46', 0,
'1086826687',
'Dear Wilt;
THANK YOU!!! Escalated is an understatement,within an hour or so of
recieving your email your people were calling us apologetic as hell,
and I think we had a call or two the following day and the problem
was resolved!!!
Now gateway.php is running in the backround, and its not stopping. I want to reupload my old gateway.php

How do I stop the old gateway.php from running?

KevinM 06-10-2004 07:44 AM

OK, I'll have a look at this tonight.

allan grossman 06-10-2004 09:38 AM

Quote:

Originally Posted by scottct1
I ran great for me the first few times, however the messages going out to YAHOOGROUPS are now getting a SQL error.

This is the error I am getting...



Now gateway.php is running in the backround, and its not stopping. I want to reupload my old gateway.php

How do I stop the old gateway.php from running?

If it's a UNIX or Linux box use top to determine the process ID then kill the process with kill -9 process_id - if it's a Windows machine you can use Task Mangler to kill the task.

trackpads 06-10-2004 12:05 PM

When I run the Gateway.php file via telnet I keep getting this error-


Quote:

Gateway version 2.1.0 13 group(s) gatewayed.

Connecting to server, server says: 200 Randori News http://www.randori.com (Tornado v1.0.5)

Server responded after user name: 381 More Authentication Required

Server responded after password: 281 Authentication Accepted

Info for alt.military at news.randori.com:
211 11542 235125 251459 alt.military

Getting message number 235431:
Segmentation fault
It has run a few times but it fails, is there something I should check?

Thanks again for all the work,

-Jason

lierduh 06-11-2004 01:14 AM

Quote:

Originally Posted by trackpads
When I run the Gateway.php file via telnet I keep getting this error-




It has run a few times but it fails, is there something I should check?

Thanks again for all the work,

-Jason

How do you run gateway.php? by a lynx session or your php is running as cgi?
If your php is running as cgi, what version? I remember reading somewhere about problems with php running as cgi. The newer version of php fixes that.

Also check your web error log.

trackpads 06-11-2004 01:35 AM

I have the latest PHP and its not running as CGI for sure. I have tried both, via telnet and with the browser. I didnt want to put it into cron until I got the messages downloaded for the first time.

If I run it via shell it will tell me about the segmentation error, if I run it via the browser it just says that its getting message # 231456 and then quits.

Thanks again for all of the help!!!!!!

-Jason

P.s. Great hack!

lierduh 06-11-2004 01:48 AM

Quote:

Originally Posted by trackpads
I have the latest PHP and its not running as CGI for sure. I have tried both, via telnet and with the browser. I didnt want to put it into cron until I got the messages downloaded for the first time.

If I run it via shell it will tell me about the segmentation error, if I run it via the browser it just says that its getting message # 231456 and then quits.

Thanks again for all of the help!!!!!!

-Jason

P.s. Great hack!

segmentation error is memory related. If you can control php.ini, check the memory_limit setting. The default is 8MB. vB3 often gives error with 8MB. Up it to 16 is a must for vB3. It is also possible the #231456 message has a large attachment.

You can always manually change the lastmsgid in the control panel to be higher than 231456, so that it will bypass this article and only get the aritcles with higher message id.

trackpads 06-11-2004 07:57 AM

Thanks! It was that message I think. I had it skip that one and now it is working.

Thanks!!!!!

-Jason

BustaCap 06-12-2004 07:10 PM

Looking at the header of my outgoing messages, I see that my email address is being scrambled by adding several characters to the end of my name (eg, BustaCap.17laj@site.com). Also, the domain is wrong too (as per the "email address domain in the NNTP Gateway settings). This is great for posts going to newsgroups, but it is preventing me from sending posts to email lists that require a confirmed email address.

Would it be possible to keep the option of scrambling the email address for posts going to newsgroups but allowing for propper email addresses to go out to email lists? If both options aren't possible, perhaps just the ability to have a proper email address go out.

Thanks,
BC

Marv 06-12-2004 10:28 PM

First of all I?ve gotta say, thank you.
The hack is running without any problems and the installation went like a charme. So far, so good..

But now I?ve got some serious problems with other things. I?m living and running my site here in germany and the newsgroups we want to im- and export the postings to/from need correct headers so that outgoing postings to ng?s are available on the newsserver. These are restrictions we simply have to obey.

What am I asking for ?
By now the headers of forum to newsserver-postings are loking like this:

Quote:

From: Marv <marv.17reqy@usenet.xxx.de>
Newsgroups: de.just.another.newsgroup
Subject: Another posting
Date: Sun, 13 Jun 2004 00:41:09 +0200
Organization: http://www.xxx.de
Lines: 13
Message-ID: <marv.17reqy@usenet.xxx.de>
X-Trace: news.t-online.de nBvEcr5K7cscegZwMIQyfAm1Tzv5/YBpPbMRd52RdGRKaKp4VT
User-Agent: vBulletin USENET gateway
X-Newsreader: vBulletin USENET gateway
X-Originating-IP: 2xx.xxx.xx.xx
Xref: news.t-online.com de.test:578574
To have our postings showing up in our target newsgroup we are forced to complete the headers with the statements:

Quote:

Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
so that endusers and checkbots read the complete header
similiar like this one:
Quote:

From: Skuld Article Checker <checkbot@ds9.gnuu.de>
Newsgroups: de.just.another.newsgroup
Subject: Re: Another posting
Date: Sat, 12 Jun 2004 15:48:01 GMT
Organization: Goddess Newsfeed
Lines: 44
Sender: <checkbot-owner@ds9.gnuu.de>
Message-ID: <caf88i$rh2$03$1%news.t-online.com@checkbot.fqdn.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

X-Complaints-To: abuse@ds9.argh.org
Xref: news.t-online.com de.test:426397
Would be very important for us (and 2000+ others on our site) that someone could write this into this hack or could show us, how to fix that problem in another way. Has anyone an idea?

Regards & TIA,
Marv.

trackpads 06-13-2004 01:25 AM

Has anyone seriously given more thought to the Filter idea? I would love to get that on my site since I primarily want the military realted newsgroups but not all the anti-bush spam that ruins them.

Thanks alot for the hard work,

-Jason

lierduh 06-13-2004 03:10 AM

Quote:

Originally Posted by BustaCap
Looking at the header of my outgoing messages, I see that my email address is being scrambled by adding several characters to the end of my name (eg, BustaCap.17laj@site.com). Also, the domain is wrong too (as per the "email address domain in the NNTP Gateway settings). This is great for posts going to newsgroups, but it is preventing me from sending posts to email lists that require a confirmed email address.

Would it be possible to keep the option of scrambling the email address for posts going to newsgroups but allowing for propper email addresses to go out to email lists? If both options aren't possible, perhaps just the ability to have a proper email address go out.

Thanks,
BC

It is simple to fetch the real email address from the user table, but remember every forum user can post yet unlikely everyone of them have subscribed to the list. You naturally do not want other people to post under your email address to the list.

lierduh 06-13-2004 03:23 AM

Quote:

Originally Posted by Marv

Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Marv.

Find $newthread['postdateline']).

Insert these lines after that:

"\r\nMime-Version: 1.0\r\n" .
"Content-Type: text/plain; charset=ISO-8859-1\r\n" .
"Content-Transfer-Encoding: 8bit" .

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.

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!!!!!!!

trackpads 06-14-2004 04:45 AM

I have a problem and I am sure I am doing something wrong. I have many different mailing lists that go to my list email box. I have been trying to set up the script to take each list and put it into seperate forums. For example-

List A to Forum A
List B to Forum B etc etc

The problem is that no matter what I put in the settings in the newsgroup/mlist settings it still tells me that it sucessfully connected to the pop3 server and retrieved 0 messages. I also went in and looked are there over 60 messages in the inbox of that account.

Thanks again for the help,

-Jason

BustaCap 06-14-2004 04:52 AM

Are you sure that your email client isn't set to delete the messages from the server once it downloads them?

Marv 06-14-2004 05:02 AM

Quote:

Originally Posted by lierduh
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.

good morning, lierduh.

sorry - that?s what I should have done with the last post already.

Directly after submitting a new thread to the forums I manually run gateway.php without clicking anywhere else and it says:
Quote:

Connecting to server, server says: 200 The server welcomes infong64.xxx.de (2xx.xxx.xxx.xxx). Authorization required for reading and posting.

Server responded after user name: 381 PASS required

Server responded after password: 281 Authentication accepted. (UID=238408)

Info for

Quote:

here.goes.the.newsgroup.name at news.xxx.de:
211 18230 450417 469608 here.goes.the.newsgroup.name

nothing more...that?s it.
If someones posting now a new answer to that post gateway.php works as it should, but is only sending the answer to the newsserver - not the starting post. so it?s a bit confusing for the newsgroup when answers appear but the starting post is missing..
And of course - the post shows up in my forums but gateway.php just doesn?t seem to recognize that.

If it?s not to impudent, lierduh, would you mind to have a look in my forums by yourself? In that case I would send you the logins for .htaccess and the forum via PM. (erm...and before you ask - the problem remains with and without .htaccess enabled ;) )
Guess it?s easier to make a troubleshooting when you?re on the deck and can see the script in action. Just a suggestion.

And by the way.. - I really appreciate the work you?ve done to this hack. Thanks for the given support - must be hard to handle all the little problems that endusers like me are coming up with..:nervous:

trackpads 06-14-2004 05:19 AM

Quote:

Originally Posted by BustaCap
Are you sure that your email client isn't set to delete the messages from the server once it downloads them?

No, I was using the webmail and I just rechecked, they are still on there.

Thanks again!

-Jason

Dioxin 06-14-2004 02:19 PM

how can i deactivate the attachment import from the script?

does it work, if i comment the following line??:
if ($message['attachments']) {
// process_attachments($date, $postid, $threadid);
}

BustaCap 06-14-2004 08:05 PM

Quote:

Originally Posted by lierduh

One thing I will add into the next version is: right now, the "From: " email address is the same format as the USENET ones, ie. it does not contain the real email address due to spam prevention. There should be an option for the mailing list forums to send real email address. Some mailing lists only accept subscribed member's posts.

This would be very helpful. At a minimum it would allow at least me to post to the group via the forum.

Quote:

Originally Posted by lierduh
It is simple to fetch the real email address from the user table, but remember every forum user can post yet unlikely everyone of them have subscribed to the list. You naturally do not want other people to post under your email address to the list.

The way I would have this particular forum setup would be to first deny posting permission to all board members and then give permission only to those members who are already members of the email group I am mirroring. However, I would only do this if the messages look like they are coming from the sender and not from me. For this type of scenario I wouldn't care if my group members posted to the group using my email address as long as the individual posts showed up with their name in the From field.

trackpads 06-15-2004 01:26 AM

For some reason, I set up about 15 groups for 15 different mailing lists but the program imports them into the wrong groups. For example out of the 15 it imported them all into just 2 of the groups.

Any idea what I am doing wrong?

Thanks again for the help!

-Jason

lierduh 06-15-2004 02:39 PM

Quote:

Originally Posted by trackpads
For some reason, I set up about 15 groups for 15 different mailing lists but the program imports them into the wrong groups. For example out of the 15 it imported them all into just 2 of the groups.

Any idea what I am doing wrong?

Thanks again for the help!

-Jason

Are you using the same Pop3 mail box? The current version requires a separate email for each mailing list.

lierduh 06-15-2004 02:53 PM

Quote:

Originally Posted by BustaCap
This would be very helpful. At a minimum it would allow at least me to post to the group via the forum.


The way I would have this particular forum setup would be to first deny posting permission to all board members and then give permission only to those members who are already members of the email group I am mirroring. However, I would only do this if the messages look like they are coming from the sender and not from me. For this type of scenario I wouldn't care if my group members posted to the group using my email address as long as the individual posts showed up with their name in the From field.

There is no clear solution to this. For the lists that need confirmed email address, the individual users need to subscribe to the list. Once they are subscribed, there is very little benefit for them to post through the forum instead of just shoot an email directly to the list. It will also look odd for the rest of the list members to see an "email" sent to the list is actually coming from a forum.

1)Open list, anyone can post to it, even someone is not subscribed. This is the best way to use this script.

2)Closed list. There isn't a good clear solution. Even if you offer your master email address as the posting email address with other user's forum user name. It will not be a good picture to be honest. It is kind of cheating, and unrespectful to the list owner, since the list is a close list. I really need to think again about how to handle this.:) One thing a forum ower does not want to have is to have the list members hating your forums. The same goes for newsgroups.

lierduh 06-15-2004 02:53 PM

Quote:

Originally Posted by Dioxin
how can i deactivate the attachment import from the script?

does it work, if i comment the following line??:
if ($message['attachments']) {
// process_attachments($date, $postid, $threadid);
}

As you have found out. That is correct.:)


All times are GMT. The time now is 03:55 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.01885 seconds
  • Memory Usage 1,902KB
  • 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
  • (29)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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