oauth - How to read users outlook email using Oauth2? -
i'm building service scans peoples email specific pdf
attachments , indexes them. implemented oauth2
gmail
using extensive gmail api works fine.
i want implement same outlook/live/hotmail
. searched around, , read you can "connect outlook.com imap
using oauth 2.0
" (tutorial here). thing implements full imap
connection. far know more meant aftermarket applications user can view , send email, not applications need download email in background (like mine).
i haven't worked imap
within code, main problems see that:
- if read emails set "read" in inbox of user, don't want (i don't want interfere normal email usage of user).
- i need either stay connected email inboxes, or loop through email inboxes new emails.
my questions actually;
- is there no other way
imap
usersoutlook.com
email? - or problems not problems , should create
imap
"receiver"outlook
email accounts?
in answer point #1, according max, can use body.peak
avoid this.
in answer point #2, according triplee, can connect of accounts , use imap extension called idle
.
in answer point #3, found outlook rest api includes options read email , can call get https://outlook.office.com/api/beta/me/messages
on regular basis messages in user's account or can call get https://outlook.office.com/api/v1.0/me/messages
on regular basis messages in user's inbox. can find full list of rest apis operations here.
in answer point #4, believe of problems problems , others aren't. believe don't have technical problems. however, believe correct imap not designed applications yours shown in wikipedia article on imap reads (bold mine),
in computing, internet message access protocol (imap) internet standard protocol used e-mail clients retrieve e-mail messages mail server on tcp/ip connection. imap defined rfc 3501.
also, in rfc 3501 defines original imap protocol refers email clients absract reads (bold mine),
the internet message access protocol, version 4rev1 (imap4rev1) allows client access , manipulate electronic mail messages on server.
Comments
Post a Comment