Attached is a tarball containing an updated version of Return-Path for Drupal 5.x. This is working for me at the moment and I wanted to return to the project the fixes I made. Feel free to rework these if you feel the need to. Everything that I am providing should be considered a possible solution. The tarball contains the following:

dummyfile.php (unchanged)
LICENSE.txt (unchanged)
README.txt (unchanged)
returnpath.info (new file. I did a best guess as to what to put in here)
returnpath.install (the returnpath_install() and returnpath_uninstall() functions broken out the 5.x way)
returnpath.module (changed to use drupal_mail_wrapper(), and changed a little bit how the -f is passed to the php mail() function, utilizing the "extra parms" field).

Hopefully this is found to be useful.

CommentFileSizeAuthor
returnpath-5.x-warthog.tgz7.15 KBwarthog

Comments

journaltimes’s picture

Confused by this. It seems it is just a file. Not the updated package.

pallevillesen’s picture

It's a worling module that compressed by the RAR program... unRAR and copy to your /modules/ folder.

Thanks to the module author, just got an email from the sysadm about Return-Path not set correctly... :)

warthog’s picture

It's in the same gzipped Unix tar format that the other modules you download from the drupal module download section are in. I used the shortened '.tgz' file extension instead of the '.tar.gz' format that the drupal downloads use. Unzip under Windows should be able to extract it for you. I could be wrong on that however as I use Linux or Solaris for just about everything I do and I have not verified that statement yet.

systamper’s picture

I installed this, and got an error: Fatal error: Cannot redeclare drupal_mail_wrapper() (previously declared in .../modules/mimemail/mimemail.module:250)

I have mimemail installed so I can use the Send module. So this update must have a conflict with mimemail. Any solutions? I really want to have the Send to a friend option.

Thanks,

Scott

budda’s picture

Status: Active » Fixed

Sorry didn't see this issue before I released a 5.x version of the module.

Any other modules which also implement an alternative SMTP library will not work alongside ReturnPath.

I'm not familiar with mimemail.module, but should it not be using the new hook_mail_alter() function to do it's thing in Drupal 5.x ?

Anonymous’s picture

Status: Fixed » Closed (fixed)