Installation does not work

nezroy - May 1, 2007 - 20:01
Project:Return-Path
Version:5.x-1.1
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

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.

#1

budda - May 22, 2007 - 22:23
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.

#2

Anonymous - June 5, 2007 - 22:49
Status:fixed» closed

#3

mr.j - December 17, 2007 - 01:13
Status:closed» 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

#4

incaic - December 19, 2007 - 00:19

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

<?php
 
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

<?php
 
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.

#5

Benjamin Melançon - December 22, 2007 - 21:44
Status:active» patch (code 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

#6

Steve Dondley - January 16, 2008 - 04:47

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

#7

Gábor Mayer - March 9, 2008 - 19:40

PLEASE UPDATE THE OFFICIAL

#8

alienbrain - April 4, 2008 - 13:55

Check this patch: http://drupal.org/node/242652

#9

toemaz - May 5, 2008 - 14:00
Priority:normal» critical
Status:patch (code needs review)» patch (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

#10

Deciphered - July 9, 2008 - 22:38
Status:patch (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.

#11

Anonymous (not verified) - July 31, 2008 - 04:46
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.