[web2py] Re: DAL IMAP errors

2012-06-22 Thread Alan Etkin
I've sent a possible patch here: http://code.google.com/p/web2py/issues/detail?id=644#c7 Seems that will solve the issue (there were no errors with the last trunk version) --

[web2py] Re: DAL IMAP errors

2012-06-21 Thread Alan Etkin
I reproduced the error with gpo2py, but I'm sure it's a bug in IMAPAdapter, as pyhead said. I'll try a patch as soon as possible. El jueves, 21 de junio de 2012 20:56:12 UTC-3, pyhead escribió: > > The test is being done on gmail IMAP. It must be a bug in IMAP DAL > implementation and not gpo2p

[web2py] Re: DAL IMAP errors

2012-06-21 Thread pyhead
The test is being done on gmail IMAP. It must be a bug in IMAP DAL implementation and not gpo2py itself. The mailbox was used by Mac Mail.app and has mailboxes with './\' characters in the names. Can anyone confirm? The IMAP RFC does not list these characters as prohibited http://www.faqs.or

[web2py] Re: DAL IMAP errors

2012-05-21 Thread Alan Etkin
Sorry, I was not aware of your message from the mail list. It works for my gmail account, with web2py stable and the built-in server. I have not tested IMAPAdapter with any other mail brand. I forgot to upload the app installer to the project page. Now it's available here: http://code.google.co

[web2py] Re: DAL IMAP errors

2012-05-18 Thread pyhead
Unfortunately neither of these seems to work. I downloaded your gpo2py mail client that uses DAL IMAP hoping to use it as an example, but it doesn't work at all. Have you tested it with any IMAP servers that work, or is this problem specific to the gmail IMAP server? I'm stuck. On Monday, Ap

[web2py] Re: DAL IMAP errors

2012-04-16 Thread Alan Etkin
> On Monday, April 16, 2012 1:57:02 PM UTC-3, Alan Etkin wrote:I think it probably will, since > replacing anything with "_" would set compatible table name strings. My mistake, with Massimo regular expression command the brackets are not replaced by underscore (they are removed), so I assume th

[web2py] Re: DAL IMAP errors

2012-04-16 Thread Alan Etkin
I think it probably will, since replacing anything with "_" would set compatible table name strings. There's one caveat: "abc[something]def" mapping will overwrite the "abc/something/def", so you cannot have both folders in your mail account. Although the case is very uneven, perhaps a combine

[web2py] Re: DAL IMAP errors

2012-04-15 Thread Massimo Di Pierro
Will the proposed solution solve the problem? replace mailbox_name = mailbox.replace("[", "").replace("]", "").replace("/", "_") with mailbox_name = re.sub('[^_\w]','',re.sub('[/ ]','_',mailbox)) On Sunday, 15 April 2012 18:40:29 UTC-5, Alan Etkin wrote: > > Not fixed yet in trunk. There is

[web2py] Re: DAL IMAP errors

2012-04-15 Thread Alan Etkin
Not fixed yet in trunk. There is a regex replacement proposal in the issue page by Massimo. El sábado, 14 de abril de 2012 22:44:41 UTC-3, pyhead escribió: > > > Hi web2py users, > > db = DAL('imap://') successfully logs in to the mail server, but fails > when the commonly used spaces or '.' are