* RFC822 header continuation for long address lists is is now handled properly.
-Note: These changes mean that older .fetchmailrc files using the `set'
-syntax for these options will cause fetchmail to die with a parse
-error at initialization time. Conversion is trivial -- for details,
-see the FAQ.
+Note: The first two changes mean that older .fetchmailrc files using
+the `set' syntax for these options will cause fetchmail to die with a
+parse error at initialization time. Conversion is trivial -- for
+details, see the FAQ.
bugs --
(this cut its size in half!) Instead, applicable RFCs are listed on the
manual page.
-There are 192 people on the fetchmail-friends list.
+There are 193 people on the fetchmail-friends list.
------------------------------------------------------------------------------
fetchmail-2.8 (Sat Jan 11 15:48:33 EST 1997)
# library. So don't add -lresolv to the link list unless it's necessary
AC_CHECK_FUNC(res_search,, AC_CHECK_LIB(resolv,res_search))
+AC_CHECK_FUNC(strstr, AC_DEFINE(HAVE_STRSTR),
+ [EXTRASRC="$EXTRASRC \$(srcdir)/strstr.c"
+ EXTRAOBJ="$EXTRAOBJ strstr.o"])
+
AC_CHECK_FUNC(strcasecmp, AC_DEFINE(HAVE_STRCASECMP),
[EXTRASRC="$EXTRASRC \$(srcdir)/strcasecmp.c"
EXTRAOBJ="$EXTRAOBJ strcasecmp.o"])
#endif
/* BSD portability hack */
-#if !defined(SIGCHLD) && defined(SICHLD)
+#if !defined(SIGCHLD) && defined(SIGCLD)
#define SIGCHLD SIGCLD
#endif
/* lose controlling tty */
signal(SIGHUP, SIG_IGN);
- if ((childpid = fork) < 0) {
+ if ((childpid = fork()) < 0) {
error(0, errno, "fork");
return(PS_IOERR);
}
#define SMTP_PORT 25 /* standard SMTP service port */
+extern char *strstr(); /* needed on sysV68 R3V7.1. */
+
int batchlimit; /* how often to tear down the delivery connection */
int fetchlimit; /* how often to tear down the server connection */
int batchcount; /* count of messages sent in current batch */
if (!(sockfp = SockOpen(ctl->server.names->id,
ctl->server.port ? ctl->server.port : protocol->port)))
{
+#ifndef EHOSTUNREACH
+#define EHOSTUNREACH (-1)
+#endif
if (errno != EHOSTUNREACH)
error(0, errno, "connecting to host");
ok = PS_SOCKET;
fprintf(stderr,"fetchmail: removing stale lockfile\n");
pid = -1;
bkgd = FALSE;
- remove(lockfile);
+ unlink(lockfile);
}
fclose(lockfp);
}
{
fprintf(stderr,"fetchmail: %s fetchmail at %d killed.\n",
bkgd ? "background" : "foreground", pid);
- remove(lockfile);
+ unlink(lockfile);
exit(0);
}
}
#include "fetchmail.h"
#include "socket.h"
+extern char *strstr(); /* needed on sysV68 R3V7.1. */
+
static int count, seen, recent, unseen, imap4, deletecount;
int imap_ok (FILE *sockfp, char *argbuf)
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
-#ifdef HAVE_STRING_H
-# include <string.h>
-#else
-# include <strings.h>
-#endif
+#include <string.h>
#include "config.h"
#include "fetchmail.h"
#define PROTOCOL_ERROR {error(0, 0, "protocol error"); return(PS_ERROR);}
+extern char *strstr(); /* needed on sysV68 R3V7.1. */
+
static int last;
int pop3_ok (FILE *sockfp, char *argbuf)