I am working in a prototype to encapsulate imap queries and mails with imaplib to interface with simple web2py commands. Is there any prior implemetation available (web2pyslice, open source app/plugin)?
The idea is to support imap queries like this (just a subset of db query operations): mail_query = mail.date > date_obj & mail.body.contains("") & mail.box=="inbox" Then the user should be able to retrieve messages as rows with: db(mail_query).select() or get and set service elements like mailbox names with dot syntax: >>print mail.settings.add_box("mybox") >>True >>print mail.mailboxes ["inbox", "sent", "other"] I think this is not a trivial implementation and perhaps DAL should not be used for this feature since it is not intended for imap database interface, i suppose. But the syntax would be very coherent with other queries On 8 ene, 08:36, Peter O <peter.k.ocon...@gmail.com> wrote: > Hihi, after a quick look at the code and the past discussions of the forum, > I found the Mail class doesn't read emails. Is that right? > > There are python modules doing this. Just want to do make sure, before I > start. > > Thank you very much.