Re: IMAP-problems



On 04/11/2003, Darko Obradovic wrote:
> Hi all!
> 
> Once more I have to nerve you with a few things, this time it's about 
> IMAP.
> I've set up a nice courier-imapd on my server and so far I've brought 
> it to a working state at least. :) Now I want to move my mail-system 
> from the local machine to the imap-server.
> 
> I've added an IMAP-Folder in balsa, which is working. But there's 
> some trouble with subfolders. On the remote machine, I have a ".
> maildir"-directory in the home, which is the inbox at the same time, 
> at least for now.
> Balsa displays that as a folder INBOX.
> When I want to create subfolders, I have to create them as subfolders 
> of INBOX, it looks like there's no chance to get a folder in parallel 
> to INBOX.
[ snip ]

If you apply the attached patch, you'll get a dump of the IMAP dialogue 
on the console--the namespace response may give you some hint.  *Don't* 
post the output without sanitizing it--it may have userid/password, and 
other neat stuff ;-)

> Apart from this, balsa crashes when I create a new subfolder via it. 
> Not critical since I have shell-access and create the folders that 
> way, but later on I wouldn't want to grant that to everybody.
> If interested into further investigation, I could provide you with a 
> box on that machine.

If you can get a stack trace, would you please open a bug?

Peter
? libmutt/autom4te-2.53.cache
Index: libmutt/imap/command.c
===================================================================
RCS file: /cvs/gnome/balsa/libmutt/imap/command.c,v
retrieving revision 1.17
diff -u -r1.17 command.c
--- libmutt/imap/command.c	30 Jan 2003 20:47:55 -0000	1.17
+++ libmutt/imap/command.c	3 Mar 2003 16:10:55 -0000
@@ -76,6 +76,7 @@
   out = (char*) safe_malloc (outlen);
   snprintf (out, outlen, "%s %s\r\n", idata->cmd.seq, cmd);
 
+  printf ("%p c: %s %s\n", idata->conn, idata->cmd.seq, cmd);
   rc = mutt_socket_write (idata->conn, out);
 
   FREE (&out);
@@ -125,6 +126,7 @@
    * full line (mutt_socket_readln strips the \r, so we always have at least
    * one character free when we've read a full line) */
   while (len+1 == cmd->blen);
+  printf("%p s: %s\n", idata->conn, cmd->buf);
 
   /* don't let one large string make cmd->buf hog memory forever */
   if ((cmd->blen > IMAP_CMD_BUFSIZE) && (len <= IMAP_CMD_BUFSIZE))
@@ -190,6 +192,7 @@
   out = (char*) safe_malloc (outlen);
   snprintf (out, outlen, "%s %s\r\n", idata->cmd.seq, cmd);
 
+  printf ("%p c: %s %s\n", idata->conn, idata->cmd.seq, cmd);
   rc = mutt_socket_write_d (idata->conn, out,
     flags & IMAP_CMD_PASS ? IMAP_LOG_PASS : IMAP_LOG_CMD);
   safe_free ((void**) &out);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]