vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBouncer (PHP): reduce server load by unsubscribing bouncing members from threads (https://vborg.vbsupport.ru/showthread.php?t=91119)

Dave-ahfb 10-12-2005 03:09 PM

Is there a way to make this work with the community bulletin hack? Currently bounced emails bounce to the root email address. I changed the settings(temp) to collect from the root mailbox and it only forund 16 out of over 2000 bounced emails.

1- need to make comm-bull bounce to the specified bounce addy
2- need to make it recognize comm-bull bounces

Dave

tamarian 10-12-2005 03:37 PM

Quote:

Originally Posted by Dave-ahfb
Is there a way to make this work with the community bulletin hack? Currently bounced emails bounce to the root email address. I changed the settings(temp) to collect from the root mailbox and it only forund 16 out of over 2000 bounced emails.

1- need to make comm-bull bounce to the specified bounce addy
2- need to make it recognize comm-bull bounces

Dave

Just took a look, and I think it can be done this way (you need to test it to make sure, just send to a new group with bogus emails)

Find these two lines:
PHP Code:

mail($user[email],$subject,$HTML_mailbody,$htmlEmailHeader);

mail($user[email],$subject,$mailbody,"From: \"$bbtitle Mailer\"<$webmasteremail>"); 

Replace each respective line with:
PHP Code:

mail($user[email],$subject,$HTML_mailbody,$htmlEmailHeader'-f' $vboptions['vbouncer_spool_account']);

mail($user[email],$subject,$mailbody,"From: \"$bbtitle Mailer\"<$webmasteremail>"'-f' $vboptions['vbouncer_spool_account']); 


buro9 10-12-2005 05:05 PM

Don't you need a space between -f and the email address? Just a minor point.

tamarian 10-12-2005 05:24 PM

Quote:

Originally Posted by buro9
Don't you need a space between -f and the email address? Just a minor point.

I don't think so. I've been doing it this way since 2.x with no problems :)

buro9 10-12-2005 07:31 PM

Quote:

Originally Posted by tamarian
I don't think so. I've been doing it this way since 2.x with no problems :)

That's good :) I'm never sure but thought as the devil is always in the detail I should ask.

Ho hum...

* wanders off *

Eagle Creek 10-16-2005 09:10 AM

Quote:

Originally Posted by buro9
That's good :) I'm never sure but thought as the devil is always in the detail I should ask.

Ho hum...

* wanders off *

Is there a 3.5 version :$?

Quote:

Screenshots from 3.5 beta, but it looks the same on 3.0.7...

tamarian 10-16-2005 04:17 PM

Quote:

Originally Posted by Eagle Creek
Is there a 3.5 version :$?

Yes: https://vborg.vbsupport.ru/showthrea...threadid=83486

Spinball 12-03-2005 11:53 AM

Installed as per the instructions and got
Quote:

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sites/avforums/public_html/forums/includes/mail.php on line 79
Noticed that my existing (working) version of the hack didn't have the
Quote:

if ($vboptions['vbouncer_header_return_key'])
$headers .= 'X-Return-ID: ' . md5($vboptions['vbouncer_header_return_key'] . $toemail) . "\n";
bit in it, so I took it out.
Are you aware that your code is broken? And what do the extra 2 lines do? Are they important?

tamarian 12-03-2005 12:41 PM

Quote:

Originally Posted by Spinball
Noticed that my existing (working) version of the hack didn't have the

bit in it, so I took it out.
Are you aware that your code is broken? And what do the extra 2 lines do? Are they important?

Not broken, but you may have ran the old installation script with the new code, so you have a mismatch and you're missing a couple of settings in the admincp. Download the zip, run uninstall from the new installation script, then re-install.

Spinball 12-03-2005 06:13 PM

Uninstalled and reinstalled and still got the same problem.
The error is indicative of a missing '}'.
E.g.
Quote:

global $vboptions;
if (is_valid_email($vboptions['vbouncer_spool_account'])) {
if ($vboptions['vbouncer_header_return_key'])
$headers .= 'X-Return-ID: ' . md5($vboptions['vbouncer_header_return_key'] . $toemail) . "\n";
$this->success = @mail($toemail, $subject, $message, trim($headers), '-f' . $vboptions['vbouncer_spool_account']);
}
else
$this->success = @mail($toemail, $subject, $message, trim($headers), "-f $fromemail");
should be
Quote:

global $vboptions;
if (is_valid_email($vboptions['vbouncer_spool_account'])) {
if ($vboptions['vbouncer_header_return_key']) {
$headers .= 'X-Return-ID: ' . md5($vboptions['vbouncer_header_return_key'] . $toemail) . "\n";
}
$this->success = @mail($toemail, $subject, $message, trim($headers), '-f' . $vboptions['vbouncer_spool_account']);
} else {
$this->success = @mail($toemail, $subject, $message, trim($headers), "-f $fromemail");
}
don't see how the code could work otherwise. Very confused.


All times are GMT. The time now is 07:02 PM.

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.01676 seconds
  • Memory Usage 1,755KB
  • 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
  • (2)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete