Since we are porting infra.d.o to D7 (#2160729: Port infrastructure.d.o to D7), this module needs D7 version.

Comments

ricardoamaro’s picture

Assigned: Unassigned » ricardoamaro
ricardoamaro’s picture

requirements:
http://sourceforge.net/projects/bmh/ - > /phpmailer-bmh_rules.php
into the bounce_handler directory

Mail::mimeDecode -> Mail/mimeDecode.php
Mail::RFC822 -> Mail/RFC822.php

"The PEAR Mail and the Mail_mimeDecode packages are required and
expected to be in the PHP include path."

Latest full instructions:
INSTALL.txt

ricardoamaro’s picture

preliminary version done

Warning: include(Mail/mimeDecode.php): failed to open stream: No such file or directory in bounce_handler_requirements() (line 26 of /var/www/sites/all/modules/bounce_handler/bounce_handler.install).
Warning: include(): Failed opening 'Mail/mimeDecode.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in bounce_handler_requirements() (line 26 of /var/www/sites/all/modules/bounce_handler/bounce_handler.install).
Warning: include(Mail/RFC822.php): failed to open stream: No such file or directory in bounce_handler_requirements() (line 35 of /var/www/sites/all/modules/bounce_handler/bounce_handler.install).
Warning: include(): Failed opening 'Mail/RFC822.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in bounce_handler_requirements() (line 35 of /var/www/sites/all/modules/bounce_handler/bounce_handler.install).
The PHPMailer Bounce handling package is not available. You need to download and install it. See the README file for bounce_handler.
Mail::mimeDecode not available. Please install the relevant package for your operating system.
Mail::RFC822 not available. Please install the relevant package for your operating system.
ricardoamaro’s picture

~# wget http://download.pear.php.net/package/Mail-1.2.0.tgz
--2014-01-23 18:05:52--  http://download.pear.php.net/package/Mail-1.2.0.tgz
Resolving download.pear.php.net (download.pear.php.net)... 5.77.39.20
Connecting to download.pear.php.net (download.pear.php.net)|5.77.39.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 23214 (23K) [application/x-gzip]
Saving to: ‘Mail-1.2.0.tgz’

100%[========================================================================>] 23,214       148KB/s   in 0.2s   

2014-01-23 18:05:53 (148 KB/s) - ‘Mail-1.2.0.tgz’ saved [23214/23214]

~# wget http://download.pear.php.net/package/Mail_mimeDecode-1.5.5.tgz
--2014-01-23 18:06:15--  http://download.pear.php.net/package/Mail_mimeDecode-1.5.5.tgz
Resolving download.pear.php.net (download.pear.php.net)... 5.77.39.20
Connecting to download.pear.php.net (download.pear.php.net)|5.77.39.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11554 (11K) [application/x-gzip]
Saving to: ‘Mail_mimeDecode-1.5.5.tgz’

100%[========================================================================>] 11,554      --.-K/s   in 0s      

2014-01-23 18:06:15 (81.5 MB/s) - ‘Mail_mimeDecode-1.5.5.tgz’ saved [11554/11554]
ricardoamaro’s picture

all seems going good

Now i need to solve this issue:

DatabaseSchemaObjectExistsException: Table <em class="placeholder">bounces</em> already exists. in DatabaseSchema->createTable() (line 657 of /var/www/includes/database/schema.inc).

ricardoamaro’s picture

@killes, @tvn I have the module mostly ported and the Drush part fully ported.
Would you please be able to check out and test https://github.com/ricardoamaro/bounce_handler ?

Thank you

ricardoamaro’s picture

* [new branch] 7.x-1.x -> 7.x-1.x
commited
https://drupal.org/node/1145398/commits

tvn’s picture

Hi ricardo, sorry, was offline for a few days. I'll try to test this closer to the end of the week. Thanks!

ricardoamaro’s picture

Status: Active » Needs review
drumm’s picture

I see some D6 DB code in bounce_handler_cron():

  while ($sid = db_fetch_object($result)) {
killes@www.drop.org’s picture

This is now mostly done.

"mostly" because the "disable" mail part does not work yet. We currently don't use it since infra does not have access to the various databases of subsites and thus we can't find the user IDs there and we can't provide links to the user pages.

Any suggestions on how to improve this would be welcome.

killes@www.drop.org’s picture

reassigning to myself

killes@www.drop.org’s picture

I've ripped out the "click here to disable subscriptions" part since it isn't working on d.o.

Neil thinks we might be able to use bakery_request_account() with the email address instead, but this would only work for the main drupal.org site, not for subsites.

killes@www.drop.org’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev