delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3EC26F3B.40407@hp.com> |
Date: | Wed, 14 May 2003 17:30:51 +0100 |
From: | Mike Wray <mike DOT wray AT hp DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4b) Gecko/20030507 |
X-Accept-Language: | en,Japanese [ja],Chinese [zh] |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: inetd/xinetd and uw-imap trouble [WinMe cygwin 1.3.22] |
References: | <3EC0CA09 DOT 5050300 AT hp DOT com> |
In-Reply-To: | <3EC0CA09.5050300@hp.com> |
X-MailScanner: | Found to be clean |
Thanks for the suggestions. I tried both - telnet and running locally. Using telnet the first time you connect selecting the INBOX is OK, but logout just hangs. Using ctr-] to get the telnet prompt and quitting, the connection closes but the imapd process stays up. If you connect again over telnet this time logout returns the BYE message from the server (and xinetd logs it exiting) but the connection does not go away (and is still visible in netstat). Running imapd from the cygwin shell it works fine, and exits when you logout. There were slight differences in the output from imapd in the two cases - and that made me a bit suspicious. So I hacked imapd to output some more messages I could look at during logout - and flush them. This showed that it was hanging in closing the mailbox. It was an mbx mailbox - so just for fun I tried using unix format instead. Hey presto - it works. So the problem is something to do with mbx mailboxes. Of course this still leaves the question of why it works with xinetd and core dumps with inetd. But life is too short. I'll stick with xinetd and unix mailboxes for now. Transcripts below. Mike bash-2.05b$ telnet localhost 143 Trying 127.0.0.1... Connected to nova.lan. Escape character is '^]'. * PREAUTH [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] Pre-authenticated user nova localhost IMAP4rev1 2003.337 at Wed, 14 May 2003 21:17:02 +0100 1 select INBOX * 19 EXISTS * 0 RECENT * OK [UIDVALIDITY 1052513693] UID validity status * OK [UIDNEXT 20] Predicted next UID * FLAGS (\Answered \Flagged \Deleted \Draft \Seen) * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags 1 OK [READ-WRITE] SELECT completed 2 logout bash-2.05b$ telnet localhost 143 Trying 127.0.0.1... Connected to nova.lan. Escape character is '^]'. * PREAUTH [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] Pre-authenticated user nova localhost IMAP4rev1 2003.337 at Wed, 14 May 2003 21:12:00 +0100 1 select inbox * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 1052687951] UID validity status * OK [UIDNEXT 2] Predicted next UID * FLAGS (\Answered \Flagged \Deleted \Draft \Seen) * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags 1 OK [READ-WRITE] SELECT completed 2 logout * BYE nova.lan IMAP4rev1 server terminating connection 2 OK LOGOUT completed telnet> q Connection closed. bash-2.05b$ ps -el PID PPID PGID WINPID TTY UID STIME COMMAND 241695 1 241695 4294725601 con 500 20:59:46 /usr/bin/RXVT 338159 241695 338159 4294389785 0 500 20:59:47 /usr/bin/BASH 559991 338159 559991 4294699177 0 500 21:00:07 /USR/SBIN/XINETD 374563 1 374563 4294592733 con 500 21:01:17 /usr/bin/RXVT 427275 374563 427275 4294527165 2 500 21:01:17 /usr/bin/BASH 427555 427275 427555 4294690377 2 500 21:01:21 /usr/bin/TOP 1022231 1 1022231 4293945065 con 500 21:03:15 /usr/bin/RXVT 379983 1022231 379983 4294404165 1 500 21:03:16 /usr/bin/BASH 1000067 559991 1000067 4291759637 ? 500 21:06:54 /USR/SBIN/UW-IMAPD 137586675 379983 137586675 4157381305 1 500 21:13:15 /usr/bin/PS bash-2.05b$ On the terminal - works fine. Logout returns the BYE/OK message and imapd exits. bash-2.05b$ imapd * PREAUTH [CAPABILITY IMAP4REV1 IDLE NAMESPACE MAILBOX-REFERRALS BINARY SCAN SORT THREAD=REFERENCES THREAD=ORDEREDSUBJECT MULTIAPPEND] Pre-authenticated user nova nova.lan IMAP4rev1 2003.337 at Wed, 14 May 2003 21:10:50 +0100 1 select inbox * 0 EXISTS * 0 RECENT * OK [UIDVALIDITY 1052687951] UID validity status * OK [UIDNEXT 2] Predicted next UID * FLAGS (\Answered \Flagged \Deleted \Draft \Seen) * OK [PERMANENTFLAGS (\* \Answered \Flagged \Deleted \Draft \Seen)] Permanent flags 1 OK [READ-WRITE] SELECT completed 2 logout * BYE nova.lan IMAP4rev1 server terminating connection 2 OK LOGOUT completed bash-2.05b$ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |