From c4a3e8e0b833d51da0d5e1b19a3eab0d3805ec5d Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Sat, 9 Oct 2004 02:02:14 +0000 Subject: [ 1025372 ] empty Cc: --- Mailman/Handlers/AvoidDuplicates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Mailman') diff --git a/Mailman/Handlers/AvoidDuplicates.py b/Mailman/Handlers/AvoidDuplicates.py index b388a3d8..7bed85b6 100644 --- a/Mailman/Handlers/AvoidDuplicates.py +++ b/Mailman/Handlers/AvoidDuplicates.py @@ -92,4 +92,5 @@ def process(mlist, msg, msgdata): msgdata['recips'] = newrecips # RFC 2822 specifies zero or one CC header del msg['cc'] - msg['Cc'] = COMMASPACE.join([formataddr(i) for i in ccaddrs.values()]) + if ccaddrs: + msg['Cc'] = COMMASPACE.join([formataddr(i) for i in ccaddrs.values()]) -- cgit v1.2.3