vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Poor Man's Bounced Email Handler (https://vborg.vbsupport.ru/showthread.php?t=286441)

rebelde 08-07-2012 10:00 PM

Poor Man's Bounced Email Handler
 
This modification has been replaced by the full Bounced Email Handler. Please use that one instead.


------------------------------------------------------------------------

What does the bounced email handler do?

It stops sending emails to addresses that are no longer valid. This helps keep your email from being marked as spam.

More technically:
  1. It collects bounced emails, counts them and marks user accounts as "do not send email".
  2. It stops sending "new post" notifications to those addresses.
What it does not do:
It does not stop sending any other emails such as:
- forum subscription updates
- Happy birthday messages
- PM notifications
- other important emails

Why is it a "Poor Man's" bounce handler?
Because this is just a hack. It blocks a lot of emails, but not all that should be blocked. Also, it just leaches off of DBTech's hard work in building a bounce handler as part of his vBMail mod. Still, it is better than nothing, and that is what I had before.

I hope to encourage somebody (like you!) or vBulletin to code something better. I just don't have time to do it myself.


To install:
  1. Install DBTech's vBMail. This is required!
  2. Set up an email address to handle bounces.
  3. Set your vBMail options similar to the ones in poor-mans-reply-all-installation-instructions.txt
  4. Install this plugin.
Done!

Please, somebody, create a real bounce handler!
The steps:
0. [s]Get DBTech's permission. If you can't get permission,[/s] rewrite their code.
1. Strip down and modify DBTech's excellent vBMail work to just what we need, see how it works and rewrite it. (Everything leading up to marking users in the user table as "do not email".)
2. Improve it to do a better job of deciding when to mark an email address as a bad. (With some types of responses, you don't need to wait for five bad emails.)
3. Find a way to stop sending other emails that shouldn't be sent such as forum subscription updates and birthday messages.
Can you do just one of these steps? Any help is appreciated.

Special thanks to DBTech for his work. What I did here is really very little. DBTech did the hard work.

rebelde 09-09-2012 03:19 PM

Do not install this mod until further notice.

I've discovered a problem that is leading to database errors, but I'm swamped with work and won't be able to investigate a solution for some time.

nacaruncr 09-10-2012 04:53 AM

easy man.... delete the attachment file ;)

oddmud 09-16-2012 02:31 PM

Quote:

Originally Posted by rebelde (Post 2364028)
Do not install this mod until further notice.

I've discovered a problem that is leading to database errors, but I'm swamped with work and won't be able to investigate a solution for some time.

Please figure out how to remove the user from the database as well. :)

webrats 11-27-2012 01:28 AM

hope this comes back

rebelde 11-28-2012 02:46 PM

I'm sorry. I wish I had time to work on this, but I don't.

hqarrse 12-28-2012 07:02 PM

I also did some work on exactly this task, also using DBTech's vbmail. The results is a very simple cron task that unsubscribes people. It could easily be copied to handle PM notifications, post reporting and so on:

http://www.dragonbyte-tech.com/f99/t...819/#post50838

I'm not claiming a great mod, but rather a quick hack that has been working for me fine for quite a while now. It would be good to see someone taking it or this mod forward.

David Copeland 10-26-2013 05:58 PM

Quote:

Originally Posted by hqarrse (Post 2393253)
I also did some work on exactly this task, also using DBTech's vbmail. The results is a very simple cron task that unsubscribes people. It could easily be copied to handle PM notifications, post reporting and so on:

http://www.dragonbyte-tech.com/f99/t...819/#post50838

I'm not claiming a great mod, but rather a quick hack that has been working for me fine for quite a while now. It would be good to see someone taking it or this mod forward.

Any update on this?

David

rebelde 10-28-2013 01:45 PM

I've created a full bounced email handler that I've been using successfully on my site for a few months now. I have been meaning to release it as an add-on here but haven't gotten around to it. If you want it, I'll be happy to send you what we have.

wolfe 11-25-2013 08:27 AM

Quote:

Originally Posted by rebelde (Post 2456828)
I've created a full bounced email handler that I've been using successfully on my site for a few months now. I have been meaning to release it as an add-on here but haven't gotten around to it. If you want it, I'll be happy to send you what we have.

hi mate would you send me this please. thanks

rebelde 11-25-2013 03:49 PM

Attached.

This has been working very well for me on my forums for a number of months.

Documentation?
The normal stuff:
- upload the file
- import the product
- edit the "Bounced Email Handler" configuration options
- -These are mine:
Quote:

Alert PM Sender: 1
Bounce Count: 5
IMAP Host: imap.gmail.com
IMAP Port: 993
IMAP Mailbox: inbox
IMAP Second Mailbox: [Gmail]/Spam
IMAP Username: bounce@yourdomain.com
IMAP Password" ...
Use SSL: Yes
Max Fetched Messages: 25
- test it

The second email address is for Gmails SPAM folder, where a lot of these bounces end up.

Let me know if you have any questions or problems. I'd like to release it as a full mod. If you want to make improvements: cool, let me know. There are a few areas that could obviously be improved upon.

Cheers

keyla31 03-12-2014 01:17 AM

Quote:

Originally Posted by rebelde (Post 2463635)
Attached.

This has been working very well for me on my forums for a number of months.

Documentation?
The normal stuff:
- upload the file
- import the product
- edit the "Bounced Email Handler" configuration options
- -These are mine: - test it

The second email address is for Gmails SPAM folder, where a lot of these bounces end up.

Let me know if you have any questions or problems. I'd like to release it as a full mod. If you want to make improvements: cool, let me know. There are a few areas that could obviously be improved upon.

Cheers

Is this working on 4.2.2?

rebelde 03-12-2014 01:57 PM

Quote:

Originally Posted by keyla31 (Post 2486586)
Is this working on 4.2.2?

Yes, no problems.

Please let me know your feedback.

astdirect 03-13-2014 09:17 PM

I'd be happy if you could send this to me also. Great idea for a mod.

RichieBoy67 03-13-2014 09:25 PM

Quote:

Originally Posted by astdirect (Post 2487034)
I'd be happy if you could send this to me also. Great idea for a mod.

He already included it here.

https://vborg.vbsupport.ru/showpost....5&postcount=11

RichieBoy67 03-24-2014 04:20 PM

Quote:

Originally Posted by rebelde (Post 2463635)
Attached.

This has been working very well for me on my forums for a number of months.

Documentation?
The normal stuff:
- upload the file
- import the product
- edit the "Bounced Email Handler" configuration options
- -These are mine: - test it

The second email address is for Gmails SPAM folder, where a lot of these bounces end up.

Let me know if you have any questions or problems. I'd like to release it as a full mod. If you want to make improvements: cool, let me know. There are a few areas that could obviously be improved upon.

Cheers

Can you explain how this works?

rebelde 03-24-2014 05:45 PM

How does it work?

If I remember correctly:
1. Bounced emails are collected using a special email address.
2. Those emails are loaded into the database.
3. If there are more than 5(?) bounces from a certain email address, the user account is:
3a. no longer sent emails
3b. sent a PM explaining this and how to get the emails to get sent again.
4. There is a way for users to tell the system to still send the emails despite the number of bounces.

RichieBoy67 03-24-2014 07:48 PM

Thanks, I think i understand now. I was looking more to see how it does this, not what it does but I see now.

Is there any way to disable it from sending out private messages?

Thanks,
Rich

Some type of a log would be good also to see what it is actually doing. :)
Great though!

rebelde 03-26-2014 02:37 PM

Quote:

Originally Posted by RichieBoy67 (Post 2489328)
Is there any way to disable it from sending out private messages?

Yes, edit the PHP code :D.

The PM notifications are actually quite useful. It is a bit annoying that it comes from the admin's account, but many people see the PM and change their email address to one that works.

I'll try to clean this up some and create a real add-on soon.

RichieBoy67 03-26-2014 04:46 PM

Quote:

Originally Posted by rebelde (Post 2489647)
Yes, edit the PHP code :D.

The PM notifications are actually quite useful. It is a bit annoying that it comes from the admin's account, but many people see the PM and change their email address to one that works.

I'll try to clean this up some and create a real add-on soon.

No problem, I will remove the pm.

My concern isn't that it comes from the admin. I just have a ton of bounced e-mails going back years and I do not want thousands of private messages going out at the same time.

This is great though! Thanks

rebelde 03-31-2014 06:47 PM

I've just fixed it up and released it as its own add-on. It is the same but I improved the phrase text quite a bit to make it more understandable.

Please test it if you can and suggest any improvements to the instructions.

RichieBoy67 03-31-2014 06:56 PM

Quote:

Originally Posted by rebelde (Post 2490699)
I've just fixed it up and released it as its own add-on. It is the same but I improved the phrase text quite a bit to make it more understandable.

Please test it if you can and suggest any improvements to the instructions.

Sure thing, Thanks :up:

rebelde 03-31-2014 07:11 PM

Quote:

Originally Posted by RichieBoy67 (Post 2489328)
Some type of a log would be good also to see what it is actually doing.

Actually, if you click Run Now in Scheduled Tasks, it will show you the log of the current operation. I'm going to add that to my instructions now in the new mod.

Thanks for testing it!

CharlieDelta 04-01-2014 10:22 PM

So I kept this installed but just disabled assuming it would be updated. Would it be possible to get a copy of this old mod so I can confirm what files to delete and uninstall?

rebelde 04-02-2014 01:01 AM

Quote:

Originally Posted by CharlieDelta (Post 2490941)
Would it be possible to get a copy of this old mod so I can confirm what files to delete and uninstall?

I think this is the whole thing:
PHP Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<plugins>
    <plugin active="1" executionorder="5" product="vbulletin">
        <title><![CDATA[Poor Man's Bounce Handler, requires vBMail (Lite)]]></title>
        <hookname>newpost_notification_message</hookname>
        <phpcode><![CDATA[if ($touser['dbtech_vbmail_bounceflag'])
{
    continue;
}]]></phpcode>
    </plugin>
</plugins>

No file uploads, database changes or anything.


All times are GMT. The time now is 06:40 AM.

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.01302 seconds
  • Memory Usage 1,803KB
  • 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
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete