8000 Add so GmailMessage.replyAll() by JordanDSills · Pull Request #43 · asweigart/ezgmail · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add so GmailMessage.replyAll() #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/ezgmail/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,16 @@ def replyAll(self, body, attachments=None, cc=None, bcc=None, mimeSubtype="plain

# NOTE: Since the ``sender`` argument is ignored by Gmail anyway, I'm not including in this method the
# way it is included in ``send()``.
pass
# TODO - I need to remove EMAIL_ADDRESS from the first argument here:
#send(self.sender + ', ' + self.recipient, self.subject, body, attachments=attachments, cc=cc, bcc=bcc, mimeSubtype=mimeSubtype, _thr 5D5B eadId=self.threadId)

# Split recipients into list and remove element == EMAIL_ADDRESS
recipients = self.recipient.split(',')
recipients.remove(EMAIL_ADDRESS)
# recompile into a single string including the sender
recipients_str = self.sender
for i in recipients:
recipients_str = recipients_str + ', ' + i
send(recipients_str, self.subject, body, attachments=attachments, cc=cc, bcc=bcc, mimeSubtype=mimeSubtype, _threadId=self.threadId)


def _parseContentTypeHeaderForEncoding(value):
Expand Down
0