I'm building a service which scans peoples email for specific PDF
attachments and indexes them. I implemented this with OAuth2
for Gmail
using their extensive Gmail API which works perfectly fine.
I now want to implement the same for outlook/live/hotmail
. So I searched around, and I mainly read that you can "Connect to Outlook.com IMAP
using OAuth 2.0
" (tutorial here). The thing is that this implements a full IMAP
connection. As far as I know this is more meant for aftermarket applications with which the user can view and send his email, not for applications which need to download some email in the background (like mine).
I haven't worked with IMAP
from within code, but the main problems I see with this now is that:
- If I read emails they will be set to "read" in the inbox of the user, which I obviously don't want (I don't want to interfere with the normal email usage of the user).
- I will need to either stay connected with all email inboxes, or constantly loop through all email inboxes to get new emails.
My questions are actually;
- Is there no other way than
IMAP
to get usersoutlook.com
email? - Or are my problems actually not problems and should I just create an
IMAP
"receiver" for all theoutlook
email accounts?
IDLE
extension, which is by and large ubiquitous. – Stirling