Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
EZ Bounced Email Management for Admins Details »
EZ Bounced Email Management for Admins
Mod Version: 1.11, by Antivirus (Member) Antivirus is offline
Developer Last Online: Aug 2014 I like it Show Printable Version Email this Page

vB Version: 3.6.x Rating: (52 votes - 4.77 average) Installs: 501
Released: 09 Feb 2007 Last Update: 14 Jul 2008 Downloads: 2825
Not Supported DB Changes Uses Plugins Additional Files  

DESCRIPTION:
This mod will insert a special EZbounce link into the header of all emails sent from your forums. In the event any email bounces back to you, you simply click the EZbounce link and the Ezbounce script launches, which will modify the bouncing members settings to prevent further bouncing emails. It will also send that member a PM asking them to update their email address.

This modification is known to work with versions as high as 3.8.x


FEATURES:
  • Will not modify settings for Admins, Supermods, or Moderators if their email bounces
  • (if turned on) Bouncing member is moved to whatever usergroup you set in AdminCP EZbounce Settings
  • Updates bouncing member's "Receive Email from Administrators" setting to NO
  • Updates bouncing member's "Receive Email Notification of New Private Messages" setting to NO
  • Updates bouncing member's "Receive Email from Other Members" setting to NO
  • Remove email notification for all of bouncing member's subscribed THREADS
  • Remove email notification for all of bouncing member's subscribed FORUMS
  • Turns on Popup Notification of new Private Messages for bouncing member
  • PM is sent to Member notifying them of bounced email & asking them to update email address
  • (if turned on) When member updates & confirms their new email, they are returned to original usergroup.

Now, the next time you send a newsletter from your AdminCP, (so long as you only send emails to members whom have "Receive Email From Administrators" set to "Yes") you will no longer receive a bounced email from this member (because they are no longer being sent).

And also, if you created a new usergroup such as "Bounced Members" and set this usergroupid in this hack's settings, now the members that have bounced can be pruned, sent reminder emails, whateveryou want to do with them!


WHAT IF A MEMBER DECIDED TO CLICK ON THE LINK IN THE EMAIL HEADER?
Most email clients don't show the email's headers by default, however in the event a member is slick enough to view their header and they click on this mysterious link, they will simply receive a no permission message since they're unallowed to log in to the AdminCP.


ZIP FILE CONTENTS:
1 Product (2 plugins, a couple phrases & installcode which adds 1 colum to user table)
1 File


HOW TO VIEW FULL EMAIL HEADERS:
You might need to configure your email client to view full email headers in order to see the EzBounce link. There's detailed instructions on how to do this for the most popular email clients here.


CHANGELOG:
#> 1.11 - released on 7/6/2008:
Fixed bug reported in post #583

#> 1.10 - released on 12/18/2007:
Added when bouncing member is managed for bouncing, their "Pop Up a Notification Box When New PM Is Received" setting is turned on before the notification PM is sent, to better ensure they are notified to update their email address.
Bought the new CD entitled Sleaze Freak by Scum Of The Earth on Amazon.com

#> 1.9 - released on 9/22/2007:
Added when bouncing member is managed for bouncing, their "Pop Up a Notification Box When New PM Is Received" setting is turned on before the notification PM is sent, to better ensure they are notified to update their email address.
Modified the way old usergroupid is restored so methos is more compatible with other installed mods.
Optimized some queries in ezbounce.php and plugin codes.

#> 1.8 - released on 6/1/2007:
Bug fix - fixed array_merge error for those running php 5.

#> 1.7 - released on 5/8/2007:
Bug fix - fixed bug where old usergroup was incorrectly being restored.

#> 1.6 - released on 4/26/2007:
Added protective measure for Admins, Supermods, or Mods who's email may have bounced. this makes sure their usergroup and settings are not modified

even if their email bounces.
When bouncing member is managed for bouncing, their "Receive Email Notification of New Private Messages" is now set to NO.
When bouncing member is managed for bouncing, their "Receive Email from Other Members" is now set to NO.
When bouncing member is managed for bouncing, email notification is turned OFF for all of bouncing user's subscribed threads.
When bouncing member is managed for bouncing, email notification is turned OFF for all of bouncing user's subscribed forums.

#> 1.5 - released on 2/17/2007:
Added option in Settings which allows admin to insert the EZbounce link into outgoing email's message body (for email clients which make it difficult to show

email headers or don't properly parse html links when displaying email headers.
Fixed bug where original usergroupid was being erased in the event admin processed bounced more than once for same member

#> 1.4 - released on 2/17/2007:
Fixed bug - PM is now sent regardless of whether or not bouncing member had "Enable Private Messaging" turned off in UserCP.
Fixed bug - Usergroup is now properly reset to what it was before member was managed for bouncing

#> 1.3 - released on 2/15/2007:
New setting in AdminCP which gives option to move bouncing members into any usergroup of Admin's choice
If member had previously bounced, and they update their email, they are moved back to their original usergroup

#> 1.2 - released on 2/10/2007:
Bouncing members are now handled by setting their preference to receive admin emails to "no"
Sends PM to member notifying them email bounced
If / when member updates his/her email their preference to receive admin emails is reset to "yes"

#> 1.0 - released on 2/8/2007
Original release



If you like this hack, please click Nominate for MOTM

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.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #691  
Old 25 May 2010, 21:29
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
According to IB Adrian, vb 4.1 will have bounced email management.
Reply With Quote
  #692  
Old 01 Jun 2010, 16:20
letusdazzleu letusdazzleu is offline
 
Join Date: Oct 2009
v4.0

Does this mod work with 4.0?
Reply With Quote
  #693  
Old 10 Jun 2010, 17:32
Mrdby Mrdby is offline
 
Join Date: Mar 2007
Real name: MrDby
would be nice to update!
Reply With Quote
  #694  
Old 02 Jul 2010, 16:56
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Anyone tried this on v4.0.4?

Thanks...

Regards,
Badger
Reply With Quote
  #695  
Old 04 Jul 2010, 17:57
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Well, for those that want to gamble ...

I just activated and ran a test of this on our v4.0.4pl1 site and it ran fine ...

I DO NOT move users to another usergroup, only send them the PM and reset the various options indicated on their user account.

So, no guarantees you'll get the same result, but I was really happy to see it working on my system as we found this mod really valuable.

Regards,
Badger
Reply With Quote
  #696  
Old 05 Jul 2010, 12:34
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
It would be easy to check group change with one account.
Reply With Quote
  #697  
Old 04 Aug 2010, 19:58
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Originally Posted by BadgerDog View Post
Anyone tried this on v4.0.4?
I have not upgraded our sites to 4.x yet therefore i am not exactly sure however many people have posted here that it works with 4.x - i just haven't tested it myself.
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #698  
Old 04 Aug 2010, 20:22
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
It's working on 4.05.

One request:

At present we have the option of including the EZ Bounce link in EITHER the header or the body of the email. It would be nice to have the option of both. Depending on the email server, no matter which option I choose some bounced emails will be missing the link.
Reply With Quote
  #699  
Old 08 Aug 2010, 17:36
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Originally Posted by Antivirus View Post
The script has the same "safety check" as most other files in your admincp which only allows a logged-in admin with "can_admin_settings" permissions, usually this is only primary admin (i.e. you).
Im having issues with this safety check. How do I turn this off?
I want someone else to handle my thousands of bounces, but I do not want to give "can_admin_settings" permissions.
Reply With Quote
  #700  
Old 18 Aug 2010, 20:38
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Originally Posted by djbaxter View Post
At present we have the option of including the EZ Bounce link in EITHER the header or the body of the email. It would be nice to have the option of both. Depending on the email server, no matter which option I choose some bounced emails will be missing the link.
You can achieve your desired result by editing the following code within the plugin for hook location: mail_send

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



Originally Posted by Alfa1 View Post
Im having issues with this safety check. How do I turn this off?
I want someone else to handle my thousands of bounces, but I do not want to give "can_admin_settings" permissions.
this permission check is done in the ezbounce.php file in the following code:


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

If you want to change how this condition is evaluated, simply change the conditional within the if() clause.
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #701  
Old 18 Aug 2010, 21:00
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Thanks!
Reply With Quote
  #702  
Old 19 Aug 2010, 02:55
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Originally Posted by Antivirus View Post
this permission check is done in the ezbounce.php file in the following code:


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

If you want to change how this condition is evaluated, simply change the conditional within the if() clause.
Do you know what the parameter is for can administer users? canadminusers ?
Reply With Quote
  #703  
Old 21 Sep 2010, 21:50
HansiB HansiB is offline
 
Join Date: May 2003
I am testing this plugin on my 4.x board and it looks like it works as it should.

However, my board is 10 years old and have some 40.000 members, and bounces thousands of them.

Clicking the ezbounce link manually is not my cup of tea.

So I started looking at ways to automate this somewhat.

First, i use my email client (thunderbird) and access the bounced emails and choose the bounces that indicate unused email adresses more than just out of office replies and such. I do a "save as" and get a directory full of .EML files.

I remember using a unix tool called AWK many many years ago, so i downloaded gnu awk for windows and did a quick read of the documentation.

calling gawk -f bounce.awk *.eml from a command window give me an output like

X-EZbouncer: http://myforumurl.something/admincp/...ce.php?u=77777
X-EZbouncer: http://myforumurl.something/admincp/...ce.php?u=88888
X-EZbouncer: http://myforumurl.something/admincp/...ce.php?u=99999

...etc...etc...etc hundreds of lines like that...



bounce.awk contain

#!/bin/awk -f
{
# Loook for the bounce link
if ($0 ~ /X-EZbouncer/) {
printf("%s\n",$0)
}
}

and it is easy to add to the awk "program" so it will only output the URL behind EZbouncer.

EDIT: Actually, changing printf("%s\n",$0) to printf("%s\n",$2) made awk output just the url, not the X-EZBOUNCER text.

Next, to automatically "click" the links, I could easily make a call to make windows open the link in any browser, but with more than a few dozen links that would probably crash the browser and/or windows.

So i looked for alternatives and found cURL and wget.

Decided to start to learn cURL, googled and found PHP code calling the library version of cURL that is doing some of the stuff that needs to be done...logging in to vBulletin...need to be converted to command line arguments and changed a bit i think to login to the admincp instead of to the main forum page, but when that is done the easy part is to open the ezbounce.php

<?php
/********************
* cURL Tutorial By Affix
* Login to a vB forum
*********************/

function vBulletinLogin($user, $pass)
{
$md5Pass = md5($pass);
$data = "do=login&url=%2Findex.php&vb_login_md5password=$md5Pass&vb_login_username=$user &cookieuser=1";

$ch = curl_init();

curl_setopt ($ch, CURLOPT_URL, "h**p://forum.codecall.net/login.php?do=login"); // replace ** with tt
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt ($ch, CURLOPT_TIMEOUT, '10');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/codecall_$user.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "/tmp/codecall_$user.txt");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);

curl_close($ch);

$pos = strpos($store, "Thank you for Logging in");
if($pos === FALSE)
{
RETURN 0;
}
else
{
RETURN 1;
}
}

if(vBulletinLogin("username","password"))
{
echo "Logged In";
}
else
{
echo "Failed to Login check User / Pass";
}
?>

However, now I am getting too tired to learn yet another command line tool. Hopefully, when I get back here in 12 hours someone of the script gurus on this board have already posted some elegant scripts that I can use right away. Otherwise I hope to solve this myself and post some ugly scripts you all can use.

It seems you need to use MD5 encoding for the password, and maybe also for the login name. Just google on MD5 and you will find pages that will calculate MD5 from any string you enter, then just use the result with the parameters.

This is how far I have come with the curl command line:

curl --user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" --cookie-jar c:\cjar.txt --data

Well, it is a start :-)

Need to sleep now...

oh, maybe one simpler solution might be to remove the need to login to run the ezbounce.php script? And of course renaming it to something like 987jhjkh3jkhm÷djjkhkj3h.php and removing it from the server when not using it.

Last edited by HansiB; 22 Sep 2010 at 05:51.
Reply With Quote
  #704  
Old 21 Sep 2010, 22:44
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
I'm working with a dev on a complete automation.

Clicking all the links will cause errors 'inbox full' and other trivial reports to deactivate the related account, which will cause a mass of support requests. A script needs to scan each email for every possible error phrase, evaluate it according to settings and then handle it appropriately. Spam doesnt make it any easier, as some virus spam disguises as bounced mail. And then there is BS like bluebottle.

Forget logging into adminCP. Running a cron seems much better.

IB will also add bounce management to vb4, though its likely to take some time as its complex matter.
Reply With Quote
  #705  
Old 22 Sep 2010, 01:19
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Originally Posted by Alfa1 View Post
Clicking all the links will cause errors 'inbox full' and other trivial reports to deactivate the related account, which will cause a mass of support requests.
Not to mention the frequent "Mailbox not available" bounces from Hotmail, AOL, and Rogers.com, 90% of the time which means only that their mail servers are having issues and there's nothing wrong with the email address.

I get that sometimes from sending an email to myself at rogers.com or hotmail.
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 00:16.

Layout Options | Width: Wide Color: