• newslink.js

    From Jas Hud@Jas Hud@DOVE-Net.Synchronet_javascript to Digitalman on Friday, November 30, 2007 12:51:30
    To: Digitalman
    Hello, could you please tell me what code to put into newslink to filter
    out certain text strings from the entire message?

    i know you told me last year, and i had put that snippet of code someplace, and it got lost.. and i've replaced that .js file with one from the cvs.

    i'd like to use it to filter out typical spam and certain bbses that are
    being exploited by that guy. i think a lot of people would benefit form this if they'd switch their polling method to nntp instead of qwk and edited newslink to block certain bbses from their tagline,etc.

    thanks!

    .─.┌ ┬ ┬┬ ┬┬.─.┬ ┬┌┐
    -│ │├┐│ ││ │││ ││ │└┐-
    `─'└┘┴┘┴`\/'┴`─'└-┘└┘
    +o edge of oblivion bbs ■ eob-bbs.com
    |04An underground bbs with tons of the best games+files
    |05a zer0net node
    --- Synchronet 3.14a-Win32 NewsLink 1.85
    * Data Stream - garland texas - telnet://dsbbs.synchro.net
  • From Digital Man to Jas Hud on Friday, November 30, 2007 19:19:02
    Re: newslink.js
    By: Jas Hud to Digitalman on Fri Nov 30 2007 12:51 pm

    To: Digitalman
    Hello, could you please tell me what code to put into newslink to filter
    out certain text strings from the entire message?

    Add something like:

    if(body.indexOf('some text') >= 0)
    continue;

    Somewhere around this section of code:

    if(truncsp(body).length==0) {
    printf("Message %lu not imported (blank)\r\n",ptr);
    continue;
    }

    digital man (xbox-live: digitlman)

    Snapple "Real Fact" #63:
    The average human produces 10,000 gallons of saliva in a lifetime.
    Norco, CA WX: ---.-°F, --% humidity, NaN mph --- wind, --.-- inches rain/24hrs
  • From Jas Hud@Jas Hud@DOVE-Net.Synchronet_javascript to Digital Man on Saturday, December 01, 2007 11:22:13
    To: Digital Man
    > Re: newslink.js
    By: Jas Hud to Digitalman on Fri Nov 30 2007 12:51 pm

    To: Digitalman Hello, could you please tell me what code to put into newslink to filter out certain text strings from the entire message?

    Add something like:

    if(body.indexOf('some text') >= 0) continue;

    Somewhere around this section of code:

    if(truncsp(body).length==0) { printf("Message %lu not imported (blank)\r\n",ptr); continue; }

    digital man (xbox-live: digitlman)



    thanks, saved it.

    do you think this will noticably effect the speed of polling,etc since it's scanning each message for the string(S) ?

    .─.┌ ┬ ┬┬ ┬┬.─.┬ ┬┌┐
    -│ │├┐│ ││ │││ ││ │└┐-
    `─'└┘┴┘┴`\/'┴`─'└-┘└┘
    +o edge of oblivion bbs ■ eob-bbs.com
    |04An underground bbs with tons of the best games+files
    |05a zer0net node
    --- Synchronet 3.14a-Win32 NewsLink 1.85
    * Data Stream - garland texas - telnet://dsbbs.synchro.net
  • From Digital Man to Jas Hud on Sunday, December 02, 2007 08:12:09
    Re: newslink.js
    By: Jas Hud to Digital Man on Sat Dec 01 2007 11:22 am

    do you think this will noticably effect the speed of polling,etc since it's scanning each message for the string(S) ?

    I honestly don't know. Try it and see? :-)

    digital man (xbox-live: digitlman)

    Snapple "Real Fact" #59:
    Brain waves can be used to power an electric train.
    Norco, CA WX: ---.-°F, --% humidity, NaN mph --- wind, --.-- inches rain/24hrs
  • From Jas Hud@Jas Hud@DOVE-Net.Synchronet_javascript to Digital Man on Sunday, December 02, 2007 11:30:16
    To: Digital Man
    > Re: newslink.js
    By: Jas Hud to Digital Man on Sat Dec 01 2007 11:22 am

    do you think this will noticably effect the speed of polling,etc since it scanning each message for the string(S) ?

    I honestly don't know. Try it and see? :-)



    okay, i put in a filter for that ultramax site and a few newsgroup spammers. havent got anything from them after that,but i'll let you know.

    i've been watching newslink run and i havent noticed any speed differences, but i poll quite often, so that may be a factor.

    .─.┌ ┬ ┬┬ ┬┬.─.┬ ┬┌┐
    -│ │├┐│ ││ │││ ││ │└┐-
    `─'└┘┴┘┴`\/'┴`─'└-┘└┘
    +o edge of oblivion bbs ■ eob-bbs.com
    |04An underground bbs with tons of the best games+files
    |05a zer0net node
    --- Synchronet 3.14a-Win32 NewsLink 1.85
    * Data Stream - garland texas - telnet://dsbbs.synchro.net