gmail-api

reading gmail is failing with IMAP

自闭症网瘾萝莉.ら 提交于 2020-12-03 14:42:08
问题 I am running a cron job which executes the python script for reading gmail (2 min interval). I have used imaplib for reading the new mails. This was working fine until yesterday. Suddenly its throwing below error imaplib.error: [AUTHENTICATIONFAILED] Invalid credentials (Failure) and sometimes i am getting the below error raise self.abort(bye[-1]) imaplib.abort: [UNAVAILABLE] Temporary System Error When i run the same script on a different machine. Its working fine. I am assuming that the

How to open a draft created with Gmail API in browser?

心已入冬 提交于 2020-11-29 23:46:11
问题 Im trying to create a gmail draft using gmail API and open it in a new tab. When i try to open a draft using the following url : https://mail.google.com/mail/u/0/#drafts/ draft id , from a external web it does not open the draft. Instead it lists the drafts. If i do the same in a Gmail tab it works as expected. You can reproduce it following this steps Chose any draft and copy its message id , you can use this Create a url joining https://mail.google.com/mail/u/0/#drafts/ + the message id you