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

Get Date, Sender info from a message #62

Open
GeorgeGkas-zz opened this issue Nov 15, 2015 · 0 comments
Open

Get Date, Sender info from a message #62

GeorgeGkas-zz opened this issue Nov 15, 2015 · 0 comments

Comments

@GeorgeGkas-zz
Copy link

Hello,
How is it possible to get the sender Info to a string in format Some Name <[email protected]>, the date it was sent and if there any other recipients (cc)? I tried the following but it din't worked:

inbox = g.inbox().mail(sender="[email protected]")
for msg in inbox:
                    msg.fetch()
                    print msg.body, msg.subject, msg.date, msg.cc
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

No branches or pull requests

1 participant