O365 / python-o365

A simple python library to interact with Microsoft Graph and Office 365 API
Apache License 2.0
1.6k stars 411 forks source link

CC email address not removed #1086

Open dkatsios opened 3 weeks ago

dkatsios commented 3 weeks ago

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.

alejcas commented 3 weeks ago

try this:

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