python-o365 icon indicating copy to clipboard operation
python-o365 copied to clipboard

CC email address not removed

Open dkatsios opened this issue 1 year ago • 1 comments

when an email reply is created using message.reply() if there is a CC recipient in the initial message, then even if reply.cc.clear() is called (or reply.cc.remove(the-email-address) when reply.send() is executed it will send the email also to the initial CC address.

dkatsios avatar Jun 11 '24 09:06 dkatsios

try this:

# ...
reply = message.reply(to_all=True)
reply.cc.clear()
reply.save()
reply.send()

alejcas avatar Jun 14 '24 11:06 alejcas

PR submitted. No need to do save after the cc.clear. It should have been reply.save_message or reply.save_draft, but those are only needed if you want to save the draft for later.

RogerSelwyn avatar Apr 16 '25 12:04 RogerSelwyn

Thanks! PR looks good. Merged

alejcas avatar Apr 22 '25 07:04 alejcas