Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBouncer : Unsubscribe threads for members with bouncing emails Details »
vBouncer : Unsubscribe threads for members with bouncing emails
Mod Version: 1.00, by tamarian (Member) tamarian is offline
Developer Last Online: Mar 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.3.x Rating: (0 vote - 0 average) Installs: 9
Released: 01 Jun 2003 Last Update: Never Downloads: 3
Not Supported  

What vBouncer does
vBouncer will reduce your server load, bandwidth, and your forum admin in-box, by unsubscribing members who keep bouncing their emails back to your forum admin email, which may bomb your mail box if you have a busy forum with many members who subscribe to many threads, but their emails are either invalid, in box full, or have ISP problems.

Screen shots
None, this is a command line script, with some changes in functions.php

Who may want to use this?
1. Very busy sites, with thousands of notifications a day.
2. Your admin box gets too many bouncing emails
3. You use sendmail. I'm not sure how this works on other mail servers.

Caution
This may drive some of your members mad If their email bounces a lot, this script will unsubscribe them from their favourite threads. They will have to fix their email account, and then subscribe manually to each thread again... This may not be due to bad emails, just ISP side problems.

Use at your own risk. I'm sharing this since some indicated interest at vBulletin.com in this thread:
http://www.vbulletin.com/forum/showt...threadid=71496
I'd be glad to help answer questions, but as with most hacks, it is your responsibility....


Installation
1. Create a unique email address on your server, dedicated to catch bouncing emails. Do not use adminemail, or any other existing email that you want to receive through a POP account. This email will be used only to catch bouncing emails.

Recommended name (makes for less editing): subscriber_notify

2. Edit functions.php

Find:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with: replace [email protected] with your domain name)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3. Copy vBouncer.pl.txt to a directory on your server. vBouncer.pl.txt is attached below.

Rename it to vBouncer.pl by typing:

mv vBounver.pl.txt vBouncer.pl

Make it executable by typing:

chmod +x vBouncer.pl

4. Edit the configuation section of vBouncer.pl

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

5. Once a week or so, you can run the scropt manually, or through a cron job. When done, you have to clear the email file, otherwise it will keep unsubscribing members whos emails no longer bounce.

To run the script in test mode, type:

./vBounver.pl

To run the script in bouncer mode, type:

./vBounver.pl -bouncer

To clear the mail box, use:
cat /dev/null > subscriber_notify

6. Optional bonus: If you have very long threads, you can queue emails until the server load is acceptable. Edit /etc/sendmail.cf

Find:
# load average at which we just queue messages
#O QueueLA=5

Change to:
# load average at which we just queue messages
O QueueLA=3

This basically means sendmail will not attempt to deliver the email if your server is at load average of 3 or greater, it will place it in the mail queue for later delivery. You can change this number to suit your needs.

Planned enhancments (will wait for vB 3.0)

1. Instead of unsubscribing members threads, suspend notification by making a copy of their subscriptions, and copying them back when emails no longer bounce.

2. Track bounce history through admin panel,. This is similar to the old eGroup bouncing history.

3. Automatically PM members re their bounced emails.

4. Offer an option to admin to disable email notification to bouncing members, but keep the subscription. Similar to vB 3.0's daily and weekly notification, but adding a "no emails" option. This is also planned to be a seperate hack. If someone already has access to vB3.0, feel free to use this idea


Attached file is dated June 1st, 2003

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBouncer: reduce server load by unsubscribing bouncing members from threads tamarian vBulletin 3.5 Add-ons 389 14 Jan 2013 09:06
vBouncer (PHP): reduce server load by unsubscribing bouncing members from threads tamarian vBulletin 3.0 Full Releases 160 15 Nov 2008 21:54
vBouncer : Change thread subscribtion options for members with bouncing emails tamarian vBulletin 3.0 Full Releases 81 27 Jun 2005 12:40

Comments
  #2  
Old 01 Jun 2003, 21:38
cirisme cirisme is offline
 
Join Date: Jan 2003
Nice.

Will have to give it a try.
__________________
Reply With Quote
  #3  
Old 01 Jun 2003, 21:41
colicab-d's Avatar
colicab-d colicab-d is offline
 
Join Date: Dec 2002
Real name: Dave
just so u know.. its agood idea to attach hacks in a txt or zip file so unlicensed users cant get a hold of them.. just thought id beat the mods too it lol soz
Reply With Quote
  #4  
Old 01 Jun 2003, 22:11
tamarian tamarian is offline
 
Join Date: Oct 2001
Today at 10:41 PM colicab-d said this in Post #3
just so u know.. its agood idea to attach hacks in a txt or zip file so unlicensed users cant get a hold of them.. just thought id beat the mods too it lol soz

It is attached as a text file.....
Reply With Quote
  #5  
Old 01 Jun 2003, 22:14
tamarian tamarian is offline
 
Join Date: Oct 2001
What I like most about this script, is the copyright notice! I'm surprised no one remarked on it....
Reply With Quote
  #6  
Old 02 Jun 2003, 05:18
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
How very cool! I love this idea... shall look into this further when I get home...
Reply With Quote
  #7  
Old 02 Jun 2003, 16:39
Overgrow's Avatar
Overgrow Overgrow is offline
 
Join Date: Nov 2001
EXCELLENT! Thanks so much for the hack. I'm using a modified 2.2.9 and since the mail routines were changed going to 2.3.0, it did not install as described. I couldn't get the mail to bounce back to a new handle, so I'm just pulling it from the normal bounce pile.

Thanks again.. licks install... this ought to save me a few thousand emails a week.
__________________
Marijuana Growing Magazine - since vB 1.1
Reply With Quote
  #8  
Old 02 Jun 2003, 21:06
tamarian tamarian is offline
 
Join Date: Oct 2001
Today at 05:39 PM Overgrow said this in Post #7
I'm using a modified 2.2.9 and since the mail routines were changed going to 2.3.0, it did not install as described.
Here's how to do it for 2.2.9, only one line to change. I have not tested this, since both my server and test server both run 2.3, but it should work. From reading about the PHP mail parameter, it doesn't work sometimes with safe mode is on....

In functions.php, find:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If anyone trys this one and it works , please let me know. I'll add it to the instructions.

Edit: Modified for an enhancement mentioned 3 posts below.

Last edited by tamarian; 03 Jun 2003 at 22:41.
Reply With Quote
  #9  
Old 03 Jun 2003, 20:59
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Real name: Paul
Yesterday at 05:06 PM tamarian said this in Post #8
Here's how to do it for 2.2.9, only one line to change. I have not tested this, since both my server and test server both run 2.3, but it should work. From reading about the PHP mail parameter, it doesn't work sometimes with safe mode is on....

In functions.php, find:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace with:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If anyone trys this one and it works , please let me know. I'll add it to the instructions.
I'm trying that now, but before I could finish installing, I've noticed that all the emails are now coming to my Outlook???
__________________
PowWows.com
Reply With Quote
  #10  
Old 03 Jun 2003, 21:06
pgowder's Avatar
pgowder pgowder is offline
 
Join Date: Nov 2001
Real name: Paul
Looks like that made it send all emails to that address and not just those that bounce.
__________________
PowWows.com
Reply With Quote
  #11  
Old 03 Jun 2003, 22:38
tamarian tamarian is offline
 
Join Date: Oct 2001
Today at 09:59 PM pgowder said this in Post #9
I'm trying that now, but before I could finish installing, I've noticed that all the emails are now coming to my Outlook???
I can only see this happening, if the members who successfully received an email notification decide to reply to that email, instead of posting on the forum.

In that case, yes, it will go to that address. I didn't consider this a problem, but I will edit my 2.2.9 code to avoid that. In that case is will go to the admin email.

If it arrives to outlook express, you might have missed some steps. I any of the steps have been missed, or not folowed exactly as written, please let me know which ones.

Do you use sendmail?

Did you create a new email account (subscriber_notify)?

To receive it through Oulook or any POP client , you need to set up your email client for that email address. For this vBouncer to work, you should not set it up as a POP client for the vBouncer dedicated email account, just leave it on the server to collect bounced emails.

If you did not set a POP client, then it is possible you are getting the emails forwarded to the "catch-all" account, if the email was misspelled.

Hope this helps
Reply With Quote
  #12  
Old 04 Jul 2003, 17:11
CJi CJi is offline
 
Join Date: Nov 2001
Works marvellously! Clicks install!
Reply With Quote
  #13  
Old 05 Jul 2003, 17:07
CJi CJi is offline
 
Join Date: Nov 2001
I have noticed that regardless of whether -bouncer was specified or not, it ran in test mode. To correct this, make the following changes:

line 65: change: $bouncemode =0; to: $bouncemode = 1;

It seems in some versions of perl (or indeed all?) it's similar to php - setting a variable with a 0 (zero) in effect wipes that variable, changing it to a 1 sets it so that the if($bouncemode) works correctly.
Reply With Quote
  #14  
Old 05 Jul 2003, 17:17
tamarian tamarian is offline
 
Join Date: Oct 2001
Today at 06:07 PM CJi said this in Post #13
I have noticed that regardless of whether -bouncer was specified or not, it ran in test mode. To correct this, make the following changes:

line 65: change: $bouncemode =0; to: $bouncemode = 1;

It seems in some versions of perl (or indeed all?) it's similar to php - setting a variable with a 0 (zero) in effect wipes that variable, changing it to a 1 sets it so that the if($bouncemode) works correctly.

It's more like lack of coffee

File updated, thanks for the correction.
Reply With Quote
  #15  
Old 05 Jul 2003, 17:36
CJi CJi is offline
 
Join Date: Nov 2001
Pleasure! I'm just glad it was something that simple
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:15.

Layout Options | Width: Wide Color: