> Let me know how the efforts are progressing on that front to add
> Save-As-Draft on the IMAP server.

There's an append impementation added to trunk. However, to work
properly it needs the following patch too (pending for revision)

http://code.google.com/p/web2py/issues/detail?id=1638&start=100

> Also, I have observed that when I try to search using the DAL, it is bit
> slower than using the direct IMAP SEARCH command. It might be the fault in
> my program, perhaps.

It is indeed slow, and also limited (the current select command should
return just the first 10 messages for any query, to avoid
timeouts/long requests). The current issue about slow searches is that
the adapter sends multiple commands to the server to simulate a sql
select: (read email boxes lists, then search for messages matching the
query, then retrieving each message in a separate fetch). That's why
in the docs it is recommended to keep the queries as small as possible
to reduce the request time.

If you need fast mail queries with large results, I'd suggest to use a
secondary database backend to store new messages periodically (i.e.
with a background task).

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to