backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 1 Feb 2005 21:22:43 +0000 (21:22 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:00 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-17
   make falco happy : [NewsLetter] retpath ---> setting for return path

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-430

hooks/newsletter.inc.php
include/newsletter.inc.php

index 0d9e1b4..b39ca76 100644 (file)
@@ -27,6 +27,7 @@ class NLConfig
 {
     var $from    = "Lettre Mensuelle <null@example.org>";
     var $replyto = "";
+    var $retpath = "";
 }
 
 // }}}
index 57f9a00..63e0b2e 100644 (file)
@@ -326,6 +326,9 @@ EOF;
         if (!empty($globals->newsletter->replyto)) {
             $mailer->addHeader('Reply-To',$globals->newsletter->replyto);
         }
+        if (!empty($globals->newsletter->retpath)) {
+            $mailer->addHeader('Return-Path',$globals->newsletter->retpath);
+        }
        $mailer->setTxtBody($this->toText($prenom,$nom,$sex));
        if ($html) {
            $mailer->setHTMLBody($this->toHtml($prenom,$nom,$sex,true));