ÀÌÁß

IMAP »ç¼­ÇÔ Ã³¸® ÆíÀÇ Å¬·¡½º ¹× ¹æ¹ý
Áö±Ý ´Ù¿î·Îµå

ÀÌÁß ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °Ô½ÃÀÚ À̸§:
  • Roy Hyunjin Han
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/invisibleroads/

ÀÌÁß Å±×


ÀÌÁß ¼³¸í

ÆíÀÇ Å¬·¡½º ¹× IMAP »ç¼­ÇÔ Ã³¸® ¹æ¹ý Imapio´Â IMAP »ç¼­ÇÔÀ» ó¸®ÇϱâÀ§ÇÑ ¸î °¡Áö ÆíÀÇ Å¬·¡½º ¹× ¸Þ¼Òµå¸¦ Á¦°øÇÕ´Ï´Ù. Ŭ·¡½º°¡ imaplib Ŭ·¡½º¿¡¼­ ÆÄ»ýµÇ¹Ç·Î imaplib Ŭ·¡½º¿¡¼­ »ç¿ëÇÒ ¼öÀÖ´Â ¸ðµç ¸Þ¼Òµå´Â Á÷Á¢ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. easy_install -u imapiousage : # iMap ServerImport Imapioserver = imapio.connect (È£½ºÆ®, Æ÷Æ®, »ç¿ëÀÚ, ¾ÏÈ£) # IMAP ¼±Åà folderImport randommessageCount = server.cd (random.choice (server.folders)) # inboxÀÇ ÀüÀÚ ¸ÞÀÏ¿¡ ´ëÇØ server.walkÀÇ ÀüÀÚ ¸ÞÀÏ (= '¹ÞÀº ÆíÁöÇÔ') : # Á¤º¸ Ç¥½Ã Àμâ '³¯Â¥ : % s'% À̸ÞÀÏÀ» ÀμâÇϽʽÿÀ. "% s '% s'% s '% s'% s '% s'% s '% s'¿¡¼­ Àμâ : % s '% email.fromwhom.encode ('UTF-8 ') Àμâ'¿¡¼­ '(´Ð³×ÀÓ) : % s '% imapio.clean_nickname (email.fromwhom) Àμâ'% s '% Email.TowHom.Encode ('UTF-8 ') Àμâ'cc : % s '% Email.ccwhom.encode ('UTF-8 ') PRINT'BCC : % s '% s'% s 's eamp.bccwhom.encode ('UTF-8 ') # º¸ÀÌ´Â Ç÷¡±× Email.seen = false ¼­¹öÀÇ À̸ÞÀÏ¿¡ ´ëÇÑ ÈÞÁöÅë ¹× ÃÊ¾È Æú´õ¸¦ Á¦¿ÜÇÑ °¢ ÀüÀÚ ¸ÞÀÏ¿¡ ´ëÇØ false #walk (Á¦¿Ü) = ) : # »èÁ¦ µÈ Ç÷¡±× Set Email.Deleted = false SE¸¦ ¸¸Á·ÇÏ´Â °¢ ÀüÀÚ ¸ÞÀÏ¿¡ ´ëÇØ false Arch Criterion, EmailCriterion = '23 - JAN-2005'EmailGenerator = Server.Walk (excludes = )))) email = server.walk ( '¹ÞÀº ÆíÁöÇÔ', CRITERION = 'from@example.com¿¡¼­ to@example.comÀ¸·Î). Next () Email.Deleted = TRUESURV er.expunge () ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã ÀÌ ¸±¸®½º¿¡¼­´Â »õ·Î¿î ±â´É : ¡¤ Literal ±¸¹®ÀÌ ºÎÁ·ÇÑ Python <2.7 ¹öÀüÀÇ Python ¹öÀü¿¡ ´ëÇØ ¼³Á¤ () ¡¤ °Ë»ö À妽º¸¦ ¾÷µ¥ÀÌÆ®ÇÏÁö ¾Ê´Â Lotus Domino¿Í °°Àº ¼­¹ö¿¡ ´ëÇÑ °íÁ¤ Å×½ºÆ®


ÀÌÁß °ü·Ã ¼ÒÇÁÆ®¿þ¾î