Hi Carlos,

On Thu, Aug 28, 2003 at 05:09:45PM +0100, Carlos Canau wrote:
> I proposed the following patch to Kernel/System/PostMaster/DestQueue.pm:
> 
> *** DestQueue.pm.ORIG Thu Aug 28 16:52:43 2003
> --- DestQueue.pm      Thu Aug 28 16:53:17 2003
> ***************
> *** 71,77 ****
>       foreach (@EmailAddresses) {
>           my $Address = $Self->{ParseObject}->GetEmailAddress(Email => $_);
>           foreach (keys %SystemAddresses) {
> !             if ($_ =~ /\Q$Address/i) {
>                   if ($Self->{Debug} > 0) {
>                       print STDERR "* matched email: $_ 
> (QueueID=$SystemAddresses{$_})\n";
>                   }
> --- 71,77 ----
>       foreach (@EmailAddresses) {
>           my $Address = $Self->{ParseObject}->GetEmailAddress(Email => $_);
>           foreach (keys %SystemAddresses) {
> !             if ($_ =~ /^\Q$Address\E$/i) {
>                   if ($Self->{Debug} > 0) {
>                       print STDERR "* matched email: $_ 
> (QueueID=$SystemAddresses{$_})\n";
>                   }
> 
> This patch helps  putting the message in the right  queue when we have
> SystemAddresses that "include" others. The example:
> 
> [EMAIL PROTECTED] -AND- [EMAIL PROTECTED]
> 
> I don't  know if this might  have side-effects elsewhere.  I hope that
> the authors might know that :-))

The \E is just for regexp quoting? If it is so, the is was missing! 

Thanks for the info. :)

> </Canau

  Martin

--
Martin Edenhofer - <martin at edenhofer.de> - http://martin.edenhofer.de/
--
"The number of Unix installations has grown to 10, with more expected."
                      The Unix Programmer's Manual, 2nd Edition, June 1972

_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

Reply via email to