charlierguo / gmail

A Pythonic interface for Google Mail
MIT License
1.77k stars 386 forks source link

Export Lower API for custom search email #53

Open pjw91 opened 9 years ago

pjw91 commented 9 years ago

Gmail support "Search X-GM-RAW ..." command, which we can use gmail.imap.uid('SEARCH', 'X-GM-RAW', .....) to fetch email;

but I need the result to be wrapped as the Message object.

Which means, separate the Mailbox.mail function into fetching part and wrapping part.