summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-07-16 19:27:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-07-16 22:23:22 -0400
commit49662503e8e4df9db29bfc354112a9a6312d7a25 (patch)
tree7956d323a9ef2db1af09d5d589a0b72b824b60c7 /scripts
parentc296d4dc13aefe96792538a949996b8938f28f13 (diff)
get_maintainer: add ability to skip moderated mailing lists
Add a command line switch --no-moderated to skip L: mailing lists marked with 'moderated'. Some people prefer not emailing moderated mailing lists as the moderation time can be indeterminate and some emails can be intentionally dropped by a moderator. This can cause fragmentation of email threads when some are subscribed to a moderated list but others are not and emails are dropped. Link: http://lkml.kernel.org/r/6f23c2918ad9fc744269feb8f909bdfb105c5afc.camel@perches.com Signed-off-by: Joe Perches <joe@perches.com> Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get_maintainer.pl14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index c1c088ef1420..5ef59214c555 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -27,6 +27,7 @@ my $email_usename = 1;
27my $email_maintainer = 1; 27my $email_maintainer = 1;
28my $email_reviewer = 1; 28my $email_reviewer = 1;
29my $email_list = 1; 29my $email_list = 1;
30my $email_moderated_list = 1;
30my $email_subscriber_list = 0; 31my $email_subscriber_list = 0;
31my $email_git_penguin_chiefs = 0; 32my $email_git_penguin_chiefs = 0;
32my $email_git = 0; 33my $email_git = 0;
@@ -248,6 +249,7 @@ if (!GetOptions(
248 'r!' => \$email_reviewer, 249 'r!' => \$email_reviewer,
249 'n!' => \$email_usename, 250 'n!' => \$email_usename,
250 'l!' => \$email_list, 251 'l!' => \$email_list,
252 'moderated!' => \$email_moderated_list,
251 's!' => \$email_subscriber_list, 253 's!' => \$email_subscriber_list,
252 'multiline!' => \$output_multiline, 254 'multiline!' => \$output_multiline,
253 'roles!' => \$output_roles, 255 'roles!' => \$output_roles,
@@ -1023,7 +1025,8 @@ MAINTAINER field selection options:
1023 --r => include reviewer(s) if any 1025 --r => include reviewer(s) if any
1024 --n => include name 'Full Name <addr\@domain.tld>' 1026 --n => include name 'Full Name <addr\@domain.tld>'
1025 --l => include list(s) if any 1027 --l => include list(s) if any
1026 --s => include subscriber only list(s) if any 1028 --moderated => include moderated lists(s) if any (default: true)
1029 --s => include subscriber only list(s) if any (default: false)
1027 --remove-duplicates => minimize duplicate email names/addresses 1030 --remove-duplicates => minimize duplicate email names/addresses
1028 --roles => show roles (status:subsystem, git-signer, list, etc...) 1031 --roles => show roles (status:subsystem, git-signer, list, etc...)
1029 --rolestats => show roles and statistics (commits/total_commits, %) 1032 --rolestats => show roles and statistics (commits/total_commits, %)
@@ -1313,11 +1316,14 @@ sub add_categories {
1313 } else { 1316 } else {
1314 if ($email_list) { 1317 if ($email_list) {
1315 if (!$hash_list_to{lc($list_address)}) { 1318 if (!$hash_list_to{lc($list_address)}) {
1316 $hash_list_to{lc($list_address)} = 1;
1317 if ($list_additional =~ m/moderated/) { 1319 if ($list_additional =~ m/moderated/) {
1318 push(@list_to, [$list_address, 1320 if ($email_moderated_list) {
1319 "moderated list${list_role}"]); 1321 $hash_list_to{lc($list_address)} = 1;
1322 push(@list_to, [$list_address,
1323 "moderated list${list_role}"]);
1324 }
1320 } else { 1325 } else {
1326 $hash_list_to{lc($list_address)} = 1;
1321 push(@list_to, [$list_address, 1327 push(@list_to, [$list_address,
1322 "open list${list_role}"]); 1328 "open list${list_role}"]);
1323 } 1329 }