awangga / outlook Goto Github PK
View Code? Open in Web Editor NEWPython library to read email from live, hotmail, outlook, office365 or any microsoft email service
Python library to read email from live, hotmail, outlook, office365 or any microsoft email service
After logging in, my code is
data = mail.readToday()
print (data)
and iam getting the error
imaplib.error: command SEARCH illegal in state AUTH, only allowed in states SELECTED
It would be nice if this package was pip installable (#15) and available from PyPI.
Thanks
How do I read all emails inside the inbox and not just the latest email
Hello,
How can I access subfolders under the Inbox folder?
Thanks
it is showing only sign in multiple times in console
Sign In ...
Sign In ...
Hi,
How to delete an email?
Is that supported?
Thanks,
Nick
Acc_ah229
Reset
Originally posted by @ahmednageb84 in tosswithim/SMTP---ERROR-Failed-to-connect-to-server-Connection-timed-out-110-#1 (comment)
I'm getting this error while executing the script in python 3.
import outlook
File "C:/Users/bhavin_kotak/outlook\outlook.py", line 18
try:
^
TabError: inconsistent use of tabs and spaces in indentation
In the git there is no config.py.sample
Can you add a license for this code ?
Thanks,
I am using this module in my Mac os, with Python 2.7, but while trying to read emails I got the error,
FETCH command error: BAD ['The specified message set is invalid.']
Can you help and fix this?
In README.md
To send Message :
...
mail.sendMail('[email protected]','subject','message body')
=> Should be
mail.sendEmail('[email protected]','subject','message body')
"[email protected];[email protected]"
how to send multiple email address?
Traceback (most recent call last):
return self.imap.select("Inbox")
how to fix it ?
Hi,
I want to read the attachments(.csv or .xlsx) from email and work on the attachment. Is there a way to load the email-attachment?
Thank You,
Pavan
Do you know what format use Microsoft to store its mails in OST/PST files? HTML/EML/MESSAGE/etc.
when i try to run it this error appear :
AttributeError: Outlook instance has no attribute 'email_message'
The readIdsSince method in outlook.py calls date_since instead of since_date
Hello,
Is this module functional with O365 organizational accounts which are authenticated through federation?
For instance, an organization has its own authentication and as soon as user enters the email address the outlook web access redirects to organization federation authentication instead of Microsoft doing the authentication. I tried using this python module with such an account and getting "Login failed" always. Any work around in such scenarios?
Thanks a lot!
Due to the end of support of python 2.x, will be a good point to refactor to python3.X
I see it is ignored in .gitignore file, but it still committed to master branch.
git rm outlook.pyc
Hi, in the outlook.py file L:134, you seem to treat a bytes-like object and not a str one. So you are parsing & returning it as a str object, which is not.
Traceback (most recent call last):
File "/Users/-/Desktop/hotmailforwarder/forwarder.py", line 14, in
print(mail.unread())
File "/Users/-/Desktop/hotmailforwarder/outlook.py", line 156, in unread
return self.getEmail(latest_id)
File "/Users/-/Desktop/hotmailforwarder/outlook.py", line 148, in getEmail
r, d = self.imap.fetch(id,'(RFC822)')
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imaplib.py", line 539, in fetch
typ, dat = self._simple_command(name, message_set, message_parts)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imaplib.py", line 1205, in _simple_command
return self._command_complete(name, self._command(name, *args))
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/imaplib.py", line 1030, in _command_complete
raise self.error('%s command error: %s %s' % (name, typ, data))
imaplib.error: FETCH command error: BAD [b'Command Argument Error. 11']
After downloading the python script files, I created a separate python file with the code "To get latest Unread Message in inbox" from Readme.md. Whenever I run this file, I get the ERROR- "Outlook instance has no attribute 'imap' ".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.