Saptarshi Guha | 5 Jul 2008 15:56
Picon

IMAP and mailfolder_connect

Hello,
      I'm currently wrapping libetpan with a cocoa wrapper (for personal
 use)  but have run into a strange  problem.
      When connecting to one of my POP gmail accounts, I can do (inbox
 path="INBOX")

      f=mailfolder_new(...)
      mailfolder_connect(f)
      and it works.

      But from IMAP(gmail), i get error 31 ( MAIL_ERROR_PARSE,)
      i.e. this fails:
      BOOL ret=FALSE;
      struct mailfolder *older=mailfolder_new(storage, "INBOX",NULL);
      int d=mailfolder_connect(older);
      if (d==MAIL_NO_ERROR) ret= TRUE;
      NSLog( <at> "Error is %d",d);
      return ret;

      Yet, using the test/frm example, everything works! I can sign on and
 and execute create mailfolder_new (no errors), the error happens in
the imap
 call to mailfolder_connect.
      Any ideas? I am using TLS
      Thanks and regards
      Saptarshi

--

-- 
Saptarshi Guha - saptarshi.guha@...

(Continue reading)

DINH Viêt Hoà | 6 Jul 2008 19:30
Picon
Gravatar

Re: IMAP and mailfolder_connect

On Sat, Jul 5, 2008 at 3:56 PM, Saptarshi Guha
<saptarshi.guha@...> wrote:
> Hello,
>      I'm currently wrapping libetpan with a cocoa wrapper (for personal
>  use)  but have run into a strange  problem.
>      When connecting to one of my POP gmail accounts, I can do (inbox
>  path="INBOX")
>
>      f=mailfolder_new(...)
>      mailfolder_connect(f)
>      and it works.
>
>      But from IMAP(gmail), i get error 31 ( MAIL_ERROR_PARSE,)
>      i.e. this fails:
>      BOOL ret=FALSE;
>      struct mailfolder *older=mailfolder_new(storage, "INBOX",NULL);
>      int d=mailfolder_connect(older);
>      if (d==MAIL_NO_ERROR) ret= TRUE;
>      NSLog( <at> "Error is %d",d);
>      return ret;
>
>      Yet, using the test/frm example, everything works! I can sign on and
>  and execute create mailfolder_new (no errors), the error happens in
> the imap
>  call to mailfolder_connect.
>      Any ideas? I am using TLS
>      Thanks and regards
>      Saptarshi

Hello,
(Continue reading)

Saptarshi Guha | 6 Jul 2008 20:15
Picon

Re: IMAP and mailfolder_connect

Thank you for the tip. I managed to get it working. I'm using Nu and  
Cocoa and was using the values for the enums.
My fault and sorry for the noise.
Regards
Saptarshi

On Jul 6, 2008, at 1:30 PM, DINH Viêt Hoà wrote:

> On Sat, Jul 5, 2008 at 3:56 PM, Saptarshi Guha
<saptarshi.guha@... 
> > wrote:
>> Hello,
>>     I'm currently wrapping libetpan with a cocoa wrapper (for  
>> personal
>> use)  but have run into a strange  problem.
>>     When connecting to one of my POP gmail accounts, I can do (inbox
>> path="INBOX")
>>
>>     f=mailfolder_new(...)
>>     mailfolder_connect(f)
>>     and it works.
>>
>>     But from IMAP(gmail), i get error 31 ( MAIL_ERROR_PARSE,)
>>     i.e. this fails:
>>     BOOL ret=FALSE;
>>     struct mailfolder *older=mailfolder_new(storage, "INBOX",NULL);
>>     int d=mailfolder_connect(older);
>>     if (d==MAIL_NO_ERROR) ret= TRUE;
>>     NSLog( <at> "Error is %d",d);
>>     return ret;
(Continue reading)


Gmane