Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBouncer : Change thread subscribtion options for members with bouncing emails Details »
vBouncer : Change thread subscribtion options 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: 3.0.0 Rating: (0 vote - 0 average) Installs: 16
Released: 08 Feb 2004 Last Update: Never Downloads: 2
Not Supported  

Update April 5th: Step 2A for vBulletin 3 Gold added.

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, inbox 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 Postfix or Sendmail. I'm not sure how this works on other mail servers, please let me know if this works with QMail, or Exism.

Caution
This may drive some of your members mad If their email bounces a lot, this script will modify their subscriptions from their favourite threads. They will have to fix their email account, and then modify their subscribtion 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. For vB 3.0.3 (older versions below, steps 2a or 2b)

I have yet to upgrade to 3.0.3, so this is contributed by ScottA:
Originally Posted by ScottA
I got this running on 3.0.3. IIRC, what you need to do is open mail.php and look for this:


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

And change it to this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Note: You need to replace "[email protected]" with the email created in step 1.

2a. For vB3 gold
Edit functions.php

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

Replace with (replace [email protected] with the email from step 1:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


2b. For older, vB3 beta versions
Edit functions.php

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

Replace with (replace [email protected] with the email from step 1:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


3. Copy vBouncer.pl.txt to a directory on your server above apache level. 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 day or once a week (depending on the size of the spool size), 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
(or set the option in the script to do it)

Changes
Feel free to modify and post changes here or as new hacks, no credir or permission required. I may eventually add some features when I have the time.

Notes

1. The script assumes that Perl is installed @ /usr/bin/perl

If you have Perl installed elsewhere, you just need to update the first line of the script with the cirrect path:

#! /usr/bin/perl -w

2. You need to login to your server with a username that has write access to the mail spool, like a root/admin level user.

3. When run in test mode, ignore the warning "Use of uninitialized value in string eq at ./vBouncer.pl line 49" It just means you did not pass a parameter.

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 : Unsubscribe threads for members with bouncing emails tamarian vBulletin 2.x Full Releases 26 21 Jun 2005 20:12

Comments
  #2  
Old 08 Feb 2004, 02:10
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Installed, but when I run it in test mode I get the message "Use of uninitialized value in string eq at ./vBouncer.pl line 49" - is that just because its in test mode?

__________________
[buffy-boards]

Last edited by Sadie Frost; 08 Feb 2004 at 02:23.
Reply With Quote
  #3  
Old 08 Feb 2004, 02:22
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by Sadie Frost
Installed, but when I run it in test mode I get the message "Use of uninitialized value in string eq at ./vBouncer.pl line 49" - is that just because its in test mode?

Yes, it will give this warning when no parameters are supplied. It's just a warning, and can be ignored, or pass a dummy parameter like -test.
Reply With Quote
  #4  
Old 08 Feb 2004, 02:33
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Originally Posted by tamarian
The script assumes that Perl is installed @ /usr/bin/perl
If you have Perl installed elsewhere, you just need to update the first line of the script with the cirrect path:

#! /usr/bin/perl -w

Also, you need to login to your server with a username that has write access to the mail spool, like a root/admin level user.
Sorry not quick enough deleting that post I had vbouncer.pl chmoded to execute but not write - I chmoded it 777 and now I get no error message - it just says 'running in bouncer mode'. Should it say more than that before coming back to the prompt? Sorry for being such a pain!
__________________
[buffy-boards]
Reply With Quote
  #5  
Old 08 Feb 2004, 02:37
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by Sadie Frost
Sorry not quick enough deleting that post I had vbouncer.pl chmoded to execute but not write - I chmoded it 777 and now I get no error message - it just says 'running in bouncer mode'. Should it say more than that before coming back to the prompt? Sorry for being such a pain!
LOL, I deleted my reply too, and made it into a note in the first post.

It will only list more info only if it found members with bounced emails greater than the limit set in the configuration section.

If you have just created the account for "subscriber_notify", you might need to wait until it receives enough bounces from the outgoing emails. You may need to reduce the limit to 1 for testing.

Last edited by tamarian; 08 Feb 2004 at 02:39.
Reply With Quote
  #6  
Old 08 Feb 2004, 02:39
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Originally Posted by tamarian
LOL, I deleted my reply, and made it into a note in the first post.

It will only list more info only if it found members with bounced emails greater than the limit set in the configuration section.
Great - thanks so much for all your help! (And for a much needed hack!)
__________________
[buffy-boards]
Reply With Quote
  #7  
Old 08 Feb 2004, 02:42
tamarian tamarian is offline
 
Join Date: Oct 2001
You're welcome, glad you found it useful.
Reply With Quote
  #8  
Old 12 Feb 2004, 02:12
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Real name: Tim Yarbrough
Now if only we could get this script in php for thoose of us who dont use perl.
Reply With Quote
  #9  
Old 12 Feb 2004, 11:14
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
This is an awesome idea. I may look into this.
Reply With Quote
  #10  
Old 12 Feb 2004, 11:23
John's Avatar
John John is offline
 
Join Date: Mar 2002
Real name: John Warwick
This will be invaluable to me, especially when I run a forum which doesn't require email verification.
Reply With Quote
  #11  
Old 13 Feb 2004, 17:26
Dark_Wizard Dark_Wizard is offline
 
Join Date: Nov 2001
Real name: Bob
Originally Posted by eXtremeTim
Now if only we could get this script in php for thoose of us who dont use perl.
Easy convert....
Reply With Quote
  #12  
Old 13 Feb 2004, 17:34
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by Dark_Wizard
Easy convert....
It is easy, but may present some security risks. If you find a secure way to do this, please share it with us.
Reply With Quote
  #13  
Old 19 Feb 2004, 10:59
heynurse's Avatar
heynurse heynurse is offline
 
Join Date: Jan 2002
I love the idea of this hack, I am just worried about ticking off people who would loose threir subsriptions. I'm not sure this is even possible, but...

Instead of unsubscribing all the subscribed threads, would their be a way to temporarily move them into a usergroup called something like: Bad email address

and have that usergroup recieve no e-mail? (besides account related e-mail, like lost password etc..) But keep the subcription info intact with no e-mail notification?

And then have an option for them to update their e-mail address, once it is updated, have the script move their susbcription status back to previous usergroup?

I hope that makes sense?

Again, maybe this is not possible, but I think this would be a great addition if it was possible

Thanks
Reply With Quote
  #14  
Old 19 Feb 2004, 21:43
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Real name: Tim Yarbrough
I know it would be an easy convert. Especialy since I can script in Perl as well. I just dont really have the time right now to do it. Im working on several projects at once right now.
Reply With Quote
  #15  
Old 22 Feb 2004, 00:41
tamarian tamarian is offline
 
Join Date: Oct 2001
Originally Posted by heynurse
I love the idea of this hack, I am just worried about ticking off people who would loose threir subsriptions.
No one loses their subscription. This will change it from instant email, to no email. i.e. they can access subscribed threads from the user cp, and they can change it to instant or weekly, etc..
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 11:43.

Layout Options | Width: Wide Color: