Skip to content
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

Reply a message #9

Merged
merged 3 commits into from
Nov 5, 2019
Merged

Reply a message #9

merged 3 commits into from
Nov 5, 2019

Conversation

luizguilhermefr
Copy link
Member

Usage guide (also found at README):

message_id = "..."
message = client.get_message(message_id)
reply = '''
I am out for vacation, will return <strong>Jan 14</strong>.
If it is really important, you can call me, but think twice.
'''
response = message.reply(reply)

Tested with Outlook and Gmail senders (both replied using my loadsmart email):

image

image

@codecov
Copy link

codecov bot commented Nov 5, 2019

Codecov Report

Merging #9 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #9      +/-   ##
==========================================
- Coverage   93.71%   93.68%   -0.04%     
==========================================
  Files           3        3              
  Lines         175      190      +15     
==========================================
+ Hits          164      178      +14     
- Misses         11       12       +1
Impacted Files Coverage Δ
gmail_wrapper/client.py 91.01% <100%> (+0.2%) ⬆️
gmail_wrapper/entities.py 98.85% <100%> (-1.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d86649a...1a40586. Read the comment docs.

@luizguilhermefr luizguilhermefr marked this pull request as ready for review November 5, 2019 20:07
@luizguilhermefr luizguilhermefr merged commit 2b8dd40 into master Nov 5, 2019
@peril-loadsmart peril-loadsmart bot deleted the reply branch November 5, 2019 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants