scripts/get_maintainer.pl: don't print maintainers when not requested
authorJoe Perches <joe@perches.com>
Tue, 16 Jun 2009 22:34:03 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:54 +0000 (19:47 -0700)
Fixed bug introduced after using rfc822 address checking.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/get_maintainer.pl

index a1a43cffbc965930f3bd79816eaf818baf20c3e4..e57c3f6eede74e428c013b7757b7cb4ef6774e46 100755 (executable)
@@ -436,10 +436,12 @@ sub push_email_address {
        $email_address = $2;
     }
 
-    if ($email_usename && $email_name) {
-       push(@email_to, format_email($email_name, $email_address));
-    } else {
-       push(@email_to, $email_address);
+    if ($email_maintainer) {
+       if ($email_usename && $email_name) {
+           push(@email_to, format_email($email_name, $email_address));
+       } else {
+           push(@email_to, $email_address);
+       }
     }
 }