form "foo"@bar.com are not parsed correctly, even though they are
technically RFC822 legal. The general problem is mentioned on the man page.
-* Rich Kulawiec <rsk@itw.com> writes: fetchmail 3.9 seems to work fine when
- run from a tty or pty, but not when run from cron or at. [...] It looks
- like the problem is that fetchmail is having difficulty opening an SMTP
- connection to push mail to, but I'm somewhat baffled as to why that might be.
- (I guess a better way of saying that is that I'm having trouble figuring
- why it wouldn't just break *all* the time.)
-
* fetchmail has been reported to break when processing 0-length (bodyless)
messages retrieved via IMAP. It is not clear whether this is a fetchmail
bug or a glitch in some specific IMAP server. (Such messages are sometimes
------------------------------------------------------------------------------
+pl 3.9.4 ():
+* Fixed a compilation glitch for systems like SunOS & others without atexit(3).
+* Fixed a compilation glitch in daemonize for HP-UX.
+
+------------------------------------------------------------------------------
+
pl 3.9.3 (Wed May 7 11:40:47 EDT 1997):
* Fix for -I option from George Sipe.
* Finally got error.c to compile under AIX, thanks to Dave Vinish.
/* Define if you have vsyslog */
#undef HAVE_VSYSLOG
+/* Define if you have atexit */
+#undef HAVE_ATEXIT
+
\f
/* Leave that blank line there!! Autoheader needs it.
If you're adding to this file, keep in mind:
AC_SUBST(EXTRAOBJ)
AC_CHECK_FUNCS(tcsetattr stty setsid seteuid gethostbyname res_search herror \
- strrchr strstr strerror setlinebuf syslog snprintf vsnprintf vsyslog)
+ strrchr strstr strerror setlinebuf syslog snprintf vsnprintf vsyslog atexit)
dnl AC_FUNC_SETVBUF_REVERSED
#endif
#if defined(HAVE_WAIT3)
+#ifdef hpux
+ while ((pid = wait3(&status, WNOHANG, (int *) 0)) > 0)
+#else
while ((pid = wait3(&status, WNOHANG, (struct rusage *) 0)) > 0)
+#endif
; /* swallow 'em up. */
#elif defined(HAVE_WAITPID)
while ((pid = waitpid(-1, &status, WNOHANG)) > 0)
RETSIGTYPE donothing(sig) int sig; {signal(sig, donothing); lastsig = sig;}
+#ifdef HAVE_ATEXIT
static void unlockit(void)
+#else /* use on_exit(), e.g. on SunOS */
+static void unlockit(int n, void *p)
+#endif
/* must-do actions for exit (but we can't count on being able to do malloc) */
{
unlink(lockfile);
if (poll_interval)
fprintf(lockfp," %d", poll_interval);
fclose(lockfp);
+
+#ifdef HAVE_ATEXIT
atexit(unlockit);
+#else
+ on_exit(unlockit, (char *)NULL);
+#endif
}
/*
}
if (statbuf.st_mode & ~(S_IFREG | S_IREAD | S_IWRITE)) {
- fprintf(stderr, "File %s must have no more than -rw------ permissions.\n",
+ fprintf(stderr, "File %s must have no more than -rw------ (0600) permissions.\n",
pathname);
return(PS_AUTHFAIL);
}