Re: IMAP and mailfolder_connect

"DINH Viêt Hoà" <[email protected]> Sun, 6 Jul 2008 19:30:03 +0200
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
On Sat, Jul 5, 2008 at 3:56 PM, Saptarshi Guha <[email protected]> w=
rote:
> 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=3D"INBOX")
>
>      f=3Dmailfolder_new(...)
>      mailfolder_connect(f)
>      and it works.
>
>      But from IMAP(gmail), i get error 31 ( MAIL_ERROR_PARSE,)
>      i.e. this fails:
>      BOOL ret=3DFALSE;
>      struct mailfolder *older=3Dmailfolder_new(storage, "INBOX",NULL);
>      int d=3Dmailfolder_connect(older);
>      if (d=3D=3DMAIL_NO_ERROR) ret=3D TRUE;
>      NSLog(@"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,

could you enable logs ?
mailstream_debug=3D1;
before connecting the server should enable the logs.
then, the libetpan-stream-debug.log file should be created in the
current directory.

Regards,

-- =

DINH Vi=EAt Ho=E0

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08