1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Adding gmail to the mailbox types

and adding the type to models.py
This commit is contained in:
Alex Lovell-Troy 2014-05-28 21:24:46 -06:00
parent cc4e72305d
commit 677e420dec
2 changed files with 23 additions and 1 deletions

View file

@ -61,6 +61,20 @@ would enter the following as your URI::
imap+ssl://youremailaddress%40gmail.com:1234@imap.gmail.com?archive=Archived
Gmail IMAP with Oauth2 authentication
-------------------------------------
Gmail supports using oauth2 for authentication_ which is more secure.
To handle the handshake and storing the credentials, use python-social-auth_.
.. _authentication: https://developers.google.com/gmail/xoauth2_protocol
.. _python-social-auth: http://psa.matiasaguirre.net/
The Gmail Mailbox is also a regular IMAP mailbox, but the password will be ignored if oauth2 succeeds. It can fall back to password as needed.
Build your URI accordingly::
gmail+ssl://youremailaddress%40gmail.com:oauth2@imap.gmail.com?archive=Archived
Local File-based Mailboxes
--------------------------