Pythonã§ã¡ã¼ã«ãã§ãã«ä½ã£ã¦ã¿ãã
ããããã©ã¤ãã©ãªãã¡ããã¨ãããã
ç´ æµã ã
http://www.python.jp/doc/nightly/lib/pop3-objects.html
pythonã§ãåãåããã¡ã¼ã«ã®åä¿¡ã³ã¼ãã ãæ¸ãã¦ã¿ãã
# -*- coding: utf-8 -*- import poplib,email,time # åºæ¬è¨å® server = "mail.white-azalea.net" port = 110 user_id = "white-azalea" user_pass = "zzzzzzzzzzzzzz" # ãµã¼ãã«æ¥ç¶ pop3 = poplib.POP3(server,port) pop3.apop(user_id,user_pass) # ã¡ã¼ã«ä¸è¦§ã®åå¾ mail_list = pop3.list() # ã¡ã¼ã«ã®ãªã¹ãã¯è¦ç´ 1ã«å ¥ã£ã¦ããã for mail_id in mail_list[1]: (no,msg_size) = mail_id.split(" ") # ã¡ãã»ã¼ã¸çªå·æå®ã§åãåºã mail_data = pop3.retr(no) msg = email.message_from_string("\n".join(mail_data[1])) # subject(件å)åå¾ subject = email.Header.decode_header(msg["Subject"]) # 表示ãã¦ã¿ã try: print(unicode(subject)) except: pass;
ãã¼ã楽ã ãã
éã«Pythonã ã¨GUIã®è¨è¨ã«è¿·ããã ãããã
wxPython使ãã¨ãwxPythonã¢ã¸ã¥ã¼ã«å¿
é ã«ãªã£ã¡ãããããã
æ¬å½ã«ãããããµãããããã¾ãããª