[rt-devel] queue creation buglets in 2.1.76

Louis-David Mitterrand vindex at apartia.org
Wed Feb 26 10:24:14 EST 2003


On Wed, Feb 26, 2003 at 10:36:25AM +0100, Louis-David Mitterrand wrote:
> And here is the error:
> 
> 	Feb 26 10:28:38 uruk postfix/local[19322]: 06F5B581A6: to=<lnc-it at uruk.lncsa.com>, relay=local, delay=1, status=bounced (Command died with status 11: "/usr/local/rt3/bin/rt-mailgate --queue lnc-it --action correspond --url http://rt.premier.fr/". Command output: RT server error.   The RT server which handled your email did not behave as expected. It said:     <html><body>  <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><b>System error</b></font></p> <table border="0" cellspacing="0" cellpadding="1">  <tr>   <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>error:</b>&nbsp;</font></td>   <td align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">Undefined subroutine &RT::CanonicalizeAddress called at /usr/local/rt3/lib/RT/Interface/Email.pm line 287.<br></font></td>  </tr>  <tr>   <td nowrap="nowrap" align="left" valign="top"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"><b>context:
> 

With the following change the error goes away:

--- lib/RT/Interface/Email.pm   2003-02-26 16:22:49.000000000 +0100
+++ lib/RT/Interface/Email.pm.orig      2003-02-26 06:29:36.000000000 +0100
@@ -284,7 +284,7 @@
     
     foreach my $AddrObj (@ToObjs, @CcObjs) {
        my $Address = $AddrObj->address;
-       $Address = RT::User::CanonicalizeEmailAddress($Address);
+       $Address = RT::CanonicalizeAddress($Address);
        next if ($args{'CurrentUser'}->EmailAddress =~ /^$Address$/i);
        next if ($args{'QueueObj'}->CorrespondAddress =~ /^$Address$/i);
        next if ($args{'QueueObj'}->CommentAddress =~ /^$Address$/i);

Did I miss something?

-- 
    ISMENE: Phèdre, dans ce palais, tremblante pour son fils,
            De ses amis troublés demande les avis.
                                          (Phèdre, J-B Racine, acte 2, scène 1)



More information about the Rt-devel mailing list