]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix for 41303: new email tech doesn't work with emailregexp
authorcyeh%bluemartini.com <>
Sat, 16 Sep 2000 05:39:35 +0000 (05:39 +0000)
committercyeh%bluemartini.com <>
Sat, 16 Sep 2000 05:39:35 +0000 (05:39 +0000)
patch by JRobertson@medevolve.com (Jon Robertson)

processmail

index 2e45e30aeab9ac991bdb5881ec39188bbe846cba..1dca2ec111635fc0e16806eea81715dda9819f47 100755 (executable)
@@ -471,6 +471,11 @@ sub NewProcessOneBug {
     for my $person (@personlist) {
         $count++;
 
+        my $match = "^[^@, ]*@[^@, ]*\.[^@, ]*\$";
+        if ($person !~ /$match/) {
+          $person = $person . Param('emailsuffix');
+        }
+
         &NewProcessOnePerson($person, $count, \@headerlist, \%values,
                              \%defmailhead, \%fielddescription, $difftext, 
                              $newcomments, $start, $id, 1);
@@ -510,7 +515,7 @@ sub NewProcessOnePerson ($$\@\%\%\%$$$$) {
 
       foreach my $watcher ( $watcherSet->toArray() ) {
         
-        &NewProcessOnePerson(DBID_to_name($watcher), 
+        &NewProcessOnePerson(DBID_to_name($watcher) . Param('emailsuffix')
                             $count, \@headerlist, \%values,
                             \%defmailhead, \%fielddescription, $difftext, 
                             $newcomments, $start, $id, 0);