我使用imaplib通過Gmail訪問工作我的方式和遇到:瞭解一些Python代碼
# Count the unread emails
status, response = imap_server.status('INBOX', "(UNSEEN)")
unreadcount = int(response[0].split()[2].strip(').,]'))
print unreadcount
我只想知道:
status,
確實在「響應前=」。我想谷歌,但我不知道我甚至會問找到該:(答案。
感謝。
謝謝你們,現在都有道理。乾杯。 – Markus