aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-10-01 11:25:36 +0200
committerThomas Gleixner <tglx@linutronix.de>2020-10-01 15:27:29 +0200
commit165baa721985ce9a1057f95886a6185edcda4efb (patch)
tree8f1dafaece0c11a3df25c9bdc3a7690a151f0194
parent699574e4a14b0f1a1aad901a05f0c595e20bb992 (diff)
downloadquilttools-165baa721985ce9a1057f95886a6185edcda4efb.tar.gz
mb2q: Add keepcc option
Stripping Cc lists from the mailheader also causes to lose the Cc: list in the mail body around the SOB line. Add an option to collect that independently. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rwxr-xr-xmb2q5
1 files changed, 4 insertions, 1 deletions
diff --git a/mb2q b/mb2q
index cc10a1b..c3ea998 100755
--- a/mb2q
+++ b/mb2q
@@ -355,7 +355,7 @@ class patchmsg(object):
return
# Drop all ccs if requested
- if key == 'Cc' and self.args.dropccs:
+ if key == 'Cc' and self.args.dropccs and not self.args.keepcc:
# Check whether is must be kept, e.g. stable@vger...
if get_raw_mailaddr(addr) not in self.args.keepcc_addrs:
return
@@ -732,6 +732,9 @@ if __name__ == '__main__':
parser.add_argument('-t', '--testedby', dest='testedby', type=str,
default='',
help='Add Tested-by to all patches')
+ parser.add_argument('-K', '--KeepCC', dest='keepcc',
+ action='store_true',
+ help='Keep CCs from mail body')
parser.add_argument('-C', '--CollectCC', dest='collectcc',
action='store_true',
help='Collect all CCs from mail header')