haystack / YouPS

YouPS: An email automation tool that makes your email management easy! 😎
11 stars 5 forks source link

Finding Folders #113

Closed lukesmurray closed 5 years ago

lukesmurray commented 5 years ago

Imapclient has special capabilities to find unique folders if we upgrade to 2.1.0

For example these lines can be replaced.

https://github.com/soyapark/murmur/blob/4376da3f22c9af7ee8e398266070ba30a384e2b8/browser/sandbox.py#L57-L75

The new code would be

import imapclient
drafts = mailbox._imap_client.find_special_folder(imapclient.DRAFTS)
if drafts is not None:
    mailbox._imap_client.append(drafts, str(new_message))
lukesmurray commented 5 years ago

merged in created events