Following up Olivier's hint, I have changed the source file triggering the
bug, and this has restored mail functionality for us. So would it be possible
to get that particular change included into the package as an interim measure?
The upstream version containing the fixed code apparently takes some time to
mature, with pre-releases in April 2008 and January 2009 so far, who knows by
when we can expect working SMTP notifications back if we wait for that release?

For ease of testing, I have prepared a unidiff of the change that worked
for me:

--- /usr/share/mantis/www/core/email_api.php.orig       2009-04-14 
10:44:02.000000000 +0200
+++ /usr/share/mantis/www/core/email_api.php    2009-04-14 11:03:53.000000000 
+0200
@@ -802,13 +802,18 @@
                        }
                }
 
-               if ( !is_null( $mail->smtp ) )  {
+#              if ( !is_null( $mail->smtp ) )  {
                        # @@@ yarick123: It is said in phpMailer comments, that 
phpMailer::smtp has private access.
                        # but there is no common method to reset PHPMailer 
object, so
                        # I see the smallest evel - to initialize only one 
'private'
                        # field phpMailer::smtp in order to reuse smtp 
connection.
-                       $g_phpMailer_smtp = $mail->smtp;
-               }
+#                      $g_phpMailer_smtp = $mail->smtp;
+                       $mail->ClearAllRecipients();
+                       $mail->ClearAttachments();
+                       $mail->ClearReplyTos();
+                       $mail->ClearCustomHeaders();
+
+#              }
 
                return $t_success;
        }


Regards,
   Ralph


-- 
Ralph Rößner
CAPCom AG < http://www.capcom.de >
Rundeturmstr. 10, 64283 Darmstadt, Germany
Phone +49 6151 155 900, Fax +49 6151 155 909

Vorstand: Luc Neumann (Vorsitzender)
Vorsitzender des Aufsichtsrats: Prof. Dr.-Ing. José L. Encarnação
Sitz der Gesellschaft: Darmstadt, Registergericht: Darmstadt HRB 8090



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to