That will work (at least worked in develepment with Gmail). Beware that a new mail account login and mailbox list query is made on each request to construct a working dal instance. This adds a lot of network traffic and may raise bandwidth and account limit issues when reaching a given usage, mainly because I have not managed to add connection pooling and caching of account parameters to reduce transactions yet. Another issue with the current example is that extense queries might kill the server memory because to inspect the messages contents for managing queries it is needed to fetch the whole RFC822
On 14 ene, 22:35, Bruno Rocha <[email protected]> wrote: > > Actually, I did not add any sending mail feature, since it can be > > accomplished with tools.Mail. > > Yes, what I need is a simple API to read emails from google, the workflow > should be. > > User obtain a key from settings page in movu.ca CMS e.g *x4f567899083* > Now the user can publish posts to CMS by sending an e-mail to movucacms+* > [email protected] > > I will use DAL with your API to > > rows = imapdb(imapdb.INBOX.to.contains("*x4f567899083*")).select() > > So I can take the email, parse and process to publish as a post in CMS. > > I am going to try it! > > -- > > Bruno Rocha > [http://rochacbruno.com.br]

