From: Ganesan R <rga...@de...> - 2004-10-18 11:46:33
|
Hi, I am facing the same problem as the one mentioned in the debian bug CC'd above. mailsync keeps asking for a password for each folder when no password is configured. Even if I enter a password in the .mailsync mailsync keeps closing the connection and opening a new one for every folder. Tomas Pospisek wrote: > I probably won't have the time to fix this > before holidays [10.6-10.7]. My hypothesis is, that den connection is > being closed when a mailbox is finished. If anybody wants to have a look > at it, please do so. Access to my imap server is rather slow, so I tried to dig into the problem. The problem appears to be caused by this code starting line 213 in channel.cc ============ // strangely enough, following Mark Crispin, if you write into // an open stream then it'll mark new messages as seen. // // So if we want to write to a remote mailbox we have to // HALF_OPEN the stream and if we're working on a local // mailbox then we have to use a NIL stream. if (store_to.isremote) { if(! store_to.store_open( OP_HALFOPEN) ) { fprintf( stderr, "Error: Couldn't open store %s\n", store_to.name.c_str()); return 0; } } else { ... ========== Inside the debugger, I notice that store_to.store_open() calles mail_open(), mail_open() closes the stream! I looked into c-client sources, and I find that mail.c closes the old stream if you pass the OP_HALFOPEN flag and the old stream is not half-opened. May be some one can dig around deeper. Please Cc me because I am not subscribed to this list. Ganesan |