Skip to content

Commit

Permalink
fetch all sent mails
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser committed Oct 14, 2012
1 parent 9c87f01 commit d873e99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/vocably_oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def fetch_mail():
auth_str = "user=%s\1auth=Bearer %s\1\1" % (user_email(), credentials.access_token)
imap_conn = imaplib.IMAP4_SSL('imap.gmail.com')
imap_conn.authenticate('XOAUTH2', lambda x: auth_str)
imap_conn.select('Sent') #"[Gmail]/Sent Mail"
imap_conn.select('[Gmail]/Sent Mail')

# Pull email bodies
resp, data = imap_conn.search(None, 'ALL')
Expand Down

0 comments on commit d873e99

Please sign in to comment.