diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-10-01 11:25:36 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-10-01 15:27:29 +0200 |
commit | 165baa721985ce9a1057f95886a6185edcda4efb (patch) | |
tree | 8f1dafaece0c11a3df25c9bdc3a7690a151f0194 | |
parent | 699574e4a14b0f1a1aad901a05f0c595e20bb992 (diff) | |
download | quilttools-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-x | mb2q | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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') |