***********************************************************************/
#include <config.h>
-#include <varargs.h>
-
#include <stdio.h>
-#if defined(STDC_HEADERS)
-#include <string.h>
-#endif
-#if defined(HAVE_UNISTD_H)
-#include <unistd.h>
-#endif
-#include <errno.h>
-
#include "socket.h"
#include "fetchmail.h"
-static int count, first;
-
/*********************************************************************
Method declarations for IMAP
*********************************************************************/
+static int count, first;
static int exists, unseen, recent;
int imap_ok (argbuf,socket)
static struct method imap =
{
"IMAP", /* Internet Message Access Protocol */
- 143, /* standard IMAP3bis/IMAP4 port */
+ 143, /* standard IMAP2bis/IMAP4 port */
1, /* this is a tagged protocol */
0, /* no message delimiter */
imap_ok, /* parse command response */
return(do_protocol(queryctl, &imap));
}
+
-/* Copyright 1993-95 by Carl Harris, Jr. Copyright 1996 by Eric S. Raymond
+/* Copyright 1996 by Eric S. Raymond
* All rights reserved.
* For license terms, see the file COPYING in this directory.
*/
/***********************************************************************
module: pop2.c
project: fetchmail
- programmer: Carl Harris, ceharris@mal.com
- Hacks and bug fixes by esr.
- description: POP2 client code.
+ programmer: Eric S. Raymond
+ description: POP2 method code.
***********************************************************************/
#include <config.h>
-
#include <stdio.h>
-#if defined(STDC_HEADERS)
-#include <string.h>
-#endif
-#if defined(HAVE_UNISTD_H)
-#include <unistd.h>
-#endif
-
-#include <sys/time.h>
-#include <errno.h>
-
#include "socket.h"
#include "fetchmail.h"
-#if HAVE_PROTOTYPES
-#endif
-
/*********************************************************************
Method declarations for POP2