3 ms·
Funny … I've been writing a python script that uses IMAP IDLE to monitor your inbox and encrypt incoming email (while retaining from/subject/date) and delete th
by mannkind 13y ago
Funny … I've been writing a python script that uses IMAP IDLE to monitor your inbox and encrypt incoming email (while retaining from/subject/date) and delete the plaintext version.
Unfortunately sometimes the IDLE errors and I haven't been able to figure out why. And I've yet to get Gmail to actually delete the email (vs just moving it to the trash)
- etherael 13y agoI think I've run into this exact same problem with the delete, it reports that the flag has been set, but post expunge, nothing has happened to the message in question. I'm still looking into it.
- mannkind 13y agoFWIW: https://github.com/mannkind/IMAPEncrypt https://github.com/mannkind/IMAPEncrypt It works, but it's cobbled together and still has some issues I haven't been able to resolve.
- etherael 13y agoHey just wanted to give my thanks to you on this, using your code as a guide I was able to add the imap append level functionality I had been holding out on due to not wanting to mess with the nightmare of MIME encoding and walking through multipart attachments et al. Thanks, you saved me a ton of time there.