Hi,

I have been running bincimap for some time, but I cannot get it to work 
reliably. My current set-up is as follows:
Email server: Mandrake 9.2 / qmail 1.05 / vpopmail 5.2.2 / bincimap 1.2.5, 
using Maildir
Client machine: Mandrake 9.1 / KDE 3.2 / KMail 1.6 
I cannot get the SSL stuff to compile on Mandrake, so I am running plain 
unencrypted login. 

When I connect from KMail everything is fine to start at first. After some 
time, however, KMail hangs; some times it reports that the connection to the 
imap server has stopped, but usully it used seems to hang (KMail will show 
the headers but not the contents). Until recently I ran KDE 3.1 and suspected 
that KMail was the culprit. However, the problem persists after updating to 
KDE 3.2. I have also briefly tried Opera 7.23 (Win2k) and Squirrelmail 1.4.2, 
with similar results. I also had simular results with a previous version of 
bincimap. 

# ps aux | grep imap shows that I am left with multiple prosesses:

root      1379  0.0  0.0  1320  264 ?        S    15:29   0:00 supervise imap
root      1455  0.0  0.0  1344  268 ?        S    15:30   0:00 tcpserver -c 
100 -u root -g root -l cleopatre -HDRP 0 143 /opt/bincimap/bin/bincimap-up 
--logtype=multilog --conf=/etc/opt/bincimap/bincimap.conf 
-- /home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimapd
nobody    3068  0.0  0.2  2788 1364 ?        S    15:51   
0:00 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf 
-- /home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimapd
vpopmail  3069  0.2  0.3  3176 1892 ?        S    15:51   
0:05 /opt/bincimap/bin/bincimapd
nobody    3086  0.0  0.2  2788 1368 ?        S    15:51   
0:00 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf 
-- /home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimapd
root      4965  0.0  0.2  2592 1080 ?        S    16:16   
0:00 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf 
-- /home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimapd
root      5167  0.0  0.2  2592 1080 ?        S    16:19   
0:00 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf 
-- /home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimapd
root      5174  0.0  0.2  2592 1080 ?        S    16:19   
0:00 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf 
-- /home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimapd
root      5186  0.0  0.2  2592 1080 ?        S    16:19   
0:00 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf 
-- /home/vpopmail/bin/vchkpw /opt/bincimap/bin/bincimapd

There is nothing being written to the log file at the moment, but here is a 
chunk of a strace output (the file got to over 10 MB so I only enclose a few 
lines at the start and end).
# strace -s 1024 -f -p <pid> >/tmp/bincimap-dump 2>&1

Process 1455 attached - interrupt to quit
accept(3, {sa_family=AF_INET, sin_port=htons(36315), 
sin_addr=inet_addr("10.0.0.3")}, [16]) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], NULL, 8) = 0
fork(Process 2333 attached
)                                  = 2333
[pid  2333] --- SIGSTOP (Stopped (signal)) @ 0 (0) ---
[pid  2333] close(3)                    = 0
[pid  2333] setsockopt(0, SOL_IP, IP_TOS, NULL, 0) = 0
[pid  2333] setsockopt(0, SOL_TCP, TCP_NODELAY, [1], 4) = 0
[pid  2333] getsockname(0, {sa_family=AF_INET, sin_port=htons(143), 
sin_addr=inet_addr("10.0.0.5")}, [16]) = 0
[pid  2333] fcntl64(0, F_GETFL)         = 0x2 (flags O_RDWR)
[pid  2333] close(1)                    = -1 EBADF (Bad file descriptor)
[pid  2333] fcntl64(0, F_DUPFD, 1)      = 1
[pid  2333] rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, 8) = 0
[pid  2333] rt_sigprocmask(SIG_UNBLOCK, [CHLD], NULL, 8) = 0
[pid  2333] rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
[pid  2333] rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
[pid  2333] execve("/opt/bincimap/bin/bincimap-up", 
["/opt/bincimap/bin/bincimap-up", "--logtype=multilog", 
"--conf=/etc/opt/bincimap/bincimap.conf", "--", "/home/vpopmail/bin/vchkpw", 
"/opt/bincimap/bin/bincimapd"], [/* 9 vars */]) = 0
[pid  2333] uname({sys="Linux", node="cleopatre", ...}) = 0
[timeofday( <unfinished ...>
[pid  3068] alarm(1200 <unfinished ...>
[pid  3069] <... gettimeofday resumed> {1078931887, 171407}, NULL) = 0
[pid  3069] stat64("./new/", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0
[pid  3069] stat64("./cur/", {st_mode=S_IFDIR|0700, st_size=776, ...}) = 0
[pid  3069] alarm(1200)                 = 0
[pid  3069] write(1, "167 OK NOOP completed\r\n", 23) = 23
[pid  3069] alarm(0)                    = 1200
[pid  3069] gettimeofday({1078932131, 256019}, NULL) = 0
[pid  3069] select(1, [0], NULL, NULL, {1860, 0} <unfinished ...>
[pid  3068] <... select resumed> )      = 1 (in [7], left {2159, 990000})
[pid  3068] read(7, "167 OK NOOP completed\r\n", 1024) = 23
[pid  3068] alarm(1200)                 = 0
[pid  3068] write(1, "167 OK NOOP completed\r\n", 23) = 23
[pid  3068] alarm(0)                    = 1200
[pid  3068] select(8, [0 7], NULL, NULL, {2160, 0}) = 1 (in [0], left {2145, 
0})
[pid  3068] gettimeofday({1078932146, 264240}, NULL) = 0
[pid  3068] select(1, [0], NULL, NULL, NULL) = 1 (in [0])
[pid  3068] gettimeofday({1078932146, 264340}, NULL) = 0
[pid  3068] read(0, "168 NOOP\r\n", 1024) = 10
[pid  3068] write(6, "168 NOOP\r\n", 10 <unfinished ...>
[pid  3069] <... select resumed> )      = 1 (in [0], left {1845, 0})
[pid  3069] gettimeofday({1078932146, 264523}, NULL) = 0
[pid  3069] read(0, "168 NOOP\r\n", 1024) = 10
[pid  3069] stat64("./new/", {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0
[pid  3069] stat64("./cur/", {st_mode=S_IFDIR|0700, st_size=776, ...}) = 0
[pid  3069] alarm(1200)                 = 0
[pid  3069] write(1, "168 OK NOOP completed\r\n", 23) = 23
[pid  3069] alarm(0)                    = 1200
[pid  3069] gettimeofday({1078932146, 264941}, NULL) = 0
[pid  3069] select(1, [0], NULL, NULL, {1860, 0} <unfinished ...>
[pid  3068] <... write resumed> )       = 10
[pid  3068] select(8, [0 7], NULL, NULL, {2160, 0}) = 1 (in [7], left {2160, 
0})
[pid  3068] read(7, "168 OK NOOP completed\r\n", 1024) = 23
[pid  3068] alarm(1200)                 = 0
[pid  3068] write(1, "168 OK NOOP completed\r\n", 23) = 23
[pid  3068] alarm(0)                    = 1200
[pid  3068] select(8, [0 7], NULL, NULL, {2160, 0}

------------------ END of strace output -----------------------------

I am not into the IMAP protocol, but is the following normal? 
[pid  3069] select(1, [0], NULL, NULL, {1860, 0} <unfinished ...>

I presume it is OK to have spaces in the folder names, like this?
1 First folder
2 Second folder 

Reply via email to