Mail içerisinde gelen ekli dosyayı IMAP SSL bağlantısı sağlayarak indirdikten sonra, okundu olarak işaretleyip, okundu olarak işaretlenen maillerin deleted olarak etiketlenmesini sağlayan python scripti. #!/usr/bin/env python import email import getpass import imaplib import os detach_dir = '.' # directory where to save attachments (default: current) user = "username" pwd = "password" # connecting to the gmail imap server m = imaplib.IMAP4_SSL("mail.domain.com") m.login(user, pwd) m.select("INBOX") # here you a can choose a mail box like INBOX instead # use m.

Continue reading

Author's picture

Gökhan MANKARA

Golang, Python, Blogger, Linux Fan

Software Developer

Turkey/Istanbul