gmail
gmail copied to clipboard
A Pythonic interface for Google Mail
Traceback (most recent call last): File "email.py", line 2, in import gmail File "build/bdist.linux-armv6l/egg/gmail/__init__.py", line 16, in from .gmail import Gmail File "build/bdist.linux-armv6l/egg/gmail/gmail.py", line 4, in File "build/bdist.linux-armv6l/egg/gmail/mailbox.py", line 1,...
I'm trying to fetch the body of an email using mails = g.inbox().mail(sender="[email protected]") mail = mails[0].fetch() print mail['subject'] print mail.body Here, I am able to get properties like `subject`, `Received`,...
I attempted logging in from my terminal/Ipython and got this message: `Sign-in attempt prevented ... Someone just tried to sign in to your Google Account [email protected] from an app that...
would be great if we could to just pip install.
Hi, I have added code which allows mails to send via SMTP in addition to the IMAP functionality written by you to retrieve the emails. You can check it out...
Problem occurs when I get multiple emails and then loop through them and try to add the a label to each email. example: ``` mails = g.inbox().mail(sender=sender, prefetch=True) for m...
Something like this ``` python class Gmail: def __init__(self, username, password): self.username = username self.password = password def __enter__(self): # note: getpass might be better here, instead of keeping the...
When trying to fetch for new emails with `.mail(unread=True, prefetch=True)` when there's no unread emails, this error is thrown. It does not appear if I don't pass unread or prefetch,...
Added new function that can send mail via google SMTP service. This pull-request is sent for solving issue #66 .