A new installation of return-path 5.x-1.1 in a drupal 5.x environment does not work. It does not setup the smtp_library variable and so the module does not do anything. However, the version at http://drupal.org/node/111831 does work, and that author has separated out the installation code into a separate returnpath.install file.

Comments

budda’s picture

Status: Active » Fixed

I've moved the install stuff in to its own file as suggested. I never had a problem the old way, but maybe this works for some setups?

Have committed change to CVS 5.x-dev for now.

Anonymous’s picture

Status: Fixed » Closed (fixed)
mr.j’s picture

Status: Closed (fixed) » Active

Re-opened because AFAIKS there is no CVS 5.x-dev version available for download.
Not even on the all releases page.

The official 5.x-1.1 version on the module home page does not work at all for me - running drupal 5.3

incaic’s picture

I'm running drupal 5.5

return-path HEAD works for me after making these change to returnpath.module version 1.6

VERSION 1.6

  function drupal_mail_wrapper($mailkey, $to, $subject, $message, $headers) {
    $matches = array();
    preg_match("/return-path:?(.*)/i", $headers, $matches);
    $from = isset($matches[1]) ? "-f{$matches[1]}" : '';

LOCAL COPY CHANGES

  function drupal_mail_wrapper($mailkey, $to, $subject, $message, $from, $headers) {
    // $matches = array();
    // preg_match("/return-path:?(.*)/i", $headers, $matches);
    // $from = isset($matches[1]) ? "-f{$matches[1]}" : '';
    $from = "-f $from";

As you can see $from was not being sent to drupal_mail_wrapper and therefore not being used.

Hope this helps someone.

mlncn’s picture

Status: Active » Needs review

Due to poor reading of the issue queue AND not looking for the "HEAD" release, I coded the fix to this myself.

You can download Agaric's slightly modified version of the module here:

http://agaricdesign.com/sites/agaricdesign.com/files/returnpath-mod.zip

It just pulls out the install and uninstall functions (uninstall for this module should perhaps be in a 'disable' function if such a thing exists? As the module isn't truly disabled until it is uninstalled.) We can provide a patch from this to either the official release 1.1 or HEAD (which is broken in the different way described above).

In the meantime, if you want a download of this very nice module that just works for Drupal 5, you can grab it at the link above.

benjamin, Agaric Design Collective

Steve Dondley’s picture

Thanks. Everyone should download from the link cited in #5. That properly installs the module.

Gábor Mayer’s picture

PLEASE UPDATE THE OFFICIAL

AmrMostafa’s picture

toemaz’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

I downloaded the official 5.x-1.1 release and had to find out it does not work as advertised. After reading this issue, I understood why.
It's a pity that this module is maintained as it should be. Please create a new release with the patch applied from http://drupal.org/node/242652

deciphered’s picture

Status: Reviewed & tested by the community » Fixed

This issue has been fixed in the latest 5.x-1.x-dev.

Full release will be out as soon as I'm satisfied with the changes.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

paul2’s picture

Status: Closed (fixed) » Needs work

I believe it is wrong for this issue to be closed, since the official 5.x release still does nothing after it's installed. I ended up repeating the work several posters already did - moving the install/uninstall code to a returnpath.install file - in order to make this module do anything.

I hope the maintainer releases a functioning 5.x version of this module soon.

deciphered’s picture

Version: 5.x-1.1 » 5.x-1.x-dev
Status: Needs work » Closed (fixed)

Should have been marked as 5.x-1.x-dev.
Closed.