Subject: imapd problems on ptx

From: bob ellsworth s <[email-masked]>
Date: Tue, 20 Jul 1993 11:20:58 -0300 (EDT)

hi : i am having problems with the imapd server daemon on a ptx sequent
symmetry system. (v 2.0.0) i have placed the imapd executable in the
/usr/etc/ directory and added the appropriate entries to /etc/services and
/etc/inetd.conf but whenever i attempt to connect to the imapd daemon from
pine or mtest the following scenario unfolds:

- the imapd2b daemon announces itself
- the impad daemon requests a login and password which i provide

i then get the following three messages

- IMAP connection broken in reply.
- Login failed: IMAP connection broken in reply
- Too many login failures

i have tried connecting from a second ptx mainframe using pine 3.05 and
also from a pc using the pc/tcp version of pine. also when i try a 
telnet to the 143 port, imapd wakes up and announces itself but the
connection is broken once i try to enter an IMAP command manually.

Can any of the pine people or ptx people on this list provide me with some
suggestions as to how to proceed on this problem. thanks.

---

From: Dave King <[email-masked]>
Date: Tue, 20 Jul 1993 17:31:50 +0100 (BST)

Bob, I encountered exactly the same problem (on ptx 1.4), but have applied
the following patch, kindly supplied by Mark (Crispin). As the saying goes
"It worked for me", and imap works with PCPine, etc. as expected.

*** imapd.c	Tue Jul 13 14:44:42 1993
--- imapd-ptx.c	Wed Jul 14 15:31:33 1993
***************
*** 47,52 ****
--- 47,54 ----
  #include <sys/stat.h>
  #include <sys/time.h>
  #include "misc.h"
+ #include <tiuser.h>
+ #include <stropts.h>

  /* Autologout timer */
***************
*** 147,152 ****
--- 149,157 ----
    char *s,*t = "OK",*u,*v;
    struct hostent *hst;
    void (*f) () = NIL;
+   t_sync (0);
+   ioctl (0,I_PUSH,"tirdwr");
+   dup2 (0,1);
    mail_link (&tenexdriver);	/* install the Tenex mail driver */
    mail_link (&bezerkdriver);	/* install the Berkeley mail driver */
    mail_link (&imapdriver);	/* install the IMAP driver */

Going on past experience (and much frustration) of porting C code to ptx,
Pine is in a class of its own. It compiled "as delivered", and has never
let me down.

Cheers,
Dave

PS  I think the "tirdwr" kludge must rate #2 to "-lseq" for ptx fixups ... 

-------------------------------------------------------------------
Dave King, Admin. Computing Services Manager, University of Bristol
Email: [email-masked]       Tel: 0272 303961 (Direct Line)