Checking email with Python

后端 未结 6 1517
心在旅途
心在旅途 2020-11-28 02:06

I am interested to trigger a certain action upon receiving an email from specific address with specific subject. In order to be able to do so I need to implement monitorin

6条回答
  •  一生所求
    2020-11-28 02:32

    Gmail provides an atom feed for new email messages. You should be able to monitor this by authenticating with py cURL (or some other net library) and pulling down the feed. Making a GET request for each new message should mark it as read, so you won't have to keep track of which emails you've read.

提交回复
热议问题