From aaef5230da4491082be024e52104b8c87a56b343 Mon Sep 17 00:00:00 2001 From: "reed%reedloden.com" Date: Wed, 27 Dec 2006 18:13:52 +0000 Subject: [PATCH] Bug 365143 - "[BUGZILLA] Mozbot does not parse duplicate bug messages correctly" [p=reed r=LpSolit] --- webtools/mozbot/BotModules/BugzillaMailHandler.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webtools/mozbot/BotModules/BugzillaMailHandler.pl b/webtools/mozbot/BotModules/BugzillaMailHandler.pl index dcc6e323e94..bab09a9259f 100755 --- a/webtools/mozbot/BotModules/BugzillaMailHandler.pl +++ b/webtools/mozbot/BotModules/BugzillaMailHandler.pl @@ -362,8 +362,8 @@ sub parse_mail ($) { # Duplicate my $dupid; - if (($dupid) = grep /marked as a duplicate of \d+/, @body_lines) { - $dupid =~ /marked as a duplicate of (\d+)/; + if (($dupid) = grep /marked as a duplicate of (?:bug\s)?\d+/, @body_lines) { + $dupid =~ /marked as a duplicate of (?:bug\s)?(\d+)/; $bug_info{'dup_of'} = $1; debug_print("Got dup_of: $bug_info{dup_of}"); }