mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
patman: Do not Cc addresses included in To list
In case an address is listed in the To list, those will be skipped on Cc list or user might end with a duplicated message. This fixes the case when a tag points to same address used as series destination thus avoiding duplicated sending. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
d5f81d8acd
commit
43de0244c1
@ -114,6 +114,13 @@ class Series(dict):
|
|||||||
cc_list += gitutil.BuildEmailList(commit.tags)
|
cc_list += gitutil.BuildEmailList(commit.tags)
|
||||||
cc_list += gitutil.BuildEmailList(commit.cc_list)
|
cc_list += gitutil.BuildEmailList(commit.cc_list)
|
||||||
|
|
||||||
|
# Skip items in To list
|
||||||
|
if 'to' in self:
|
||||||
|
try:
|
||||||
|
map(cc_list.remove, gitutil.BuildEmailList(self.to))
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
for email in cc_list:
|
for email in cc_list:
|
||||||
if email == None:
|
if email == None:
|
||||||
email = col.Color(col.YELLOW, "<alias '%s' not found>"
|
email = col.Color(col.YELLOW, "<alias '%s' not found>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user