Recevoir ses mails par telegram.. Peut-être que c'est possible
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

6 달 전
6 달 전
6 달 전
6 달 전
1234567891011121314151617181920
  1. #Ce programme permet de récupérer le dernier mail sur la boite mail assigné
  2. from imap_tools import MailBox, Q
  3. #import imaplib, email
  4. from config import config
  5. mail_username = config['mail_username']
  6. mail_imap = config['mail_imap']
  7. mail_port = config['mail_port']
  8. mail_pass = config['mail_pass']
  9. with MailBox(mail_imap).login(mail_username, mail_pass) as mailbox:
  10. subjects = [msg.subject for msg in mailbox.fetch()]
  11. def main():
  12. print(config)
  13. if __name__ == '__main__':
  14. main()