aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
Commit message (Expand)AuthorAgeFilesLines
...
* Support user@example.org (full-address) mappings for multidropMatthias Andree2006-08-071-0/+1
* --logfile is now handled more carefully, errors opening the logfile are Matthias Andree2006-08-071-0/+3
* Log opportunistic TLS upgrades in verbose mode.Matthias Andree2006-08-071-0/+2
* Freeaddrinfo() fix for Uli Zappe's bug.Matthias Andree2006-08-071-0/+4
* When trying to connect or upon connection failure, log the numeric service po...Matthias Andree2006-08-011-1/+2
* Keep all non-error syslog messages on one line per downloaded message.Matthias Andree2006-08-011-0/+1
* When connect()ing fails, log host and service as well.Matthias Andree2006-08-011-0/+2
* Fix SIGHUP behavior, broken since 5.9.13 (r3692).Matthias Andree2006-07-311-0/+7
* If the lockfile ends before the process ID, treat it as stale and unlink it.Matthias Andree2006-07-041-0/+2
* Avoid compiling empty files, to avoid diagnostics from strict compilers.Matthias Andree2006-06-291-3/+1
* * When looking up ports for a service, the lookup succeeds and the Matthias Andree2006-06-281-0/+4
* No longer stat rcfile if it's called -.Matthias Andree2006-06-121-0/+3
* POP3: some UID flags may not be set properly on UIDL lists. (Sunil Shetye)Matthias Andree2006-05-241-0/+1
* Complain about fetchall in idle mode, too.Matthias Andree2006-05-211-0/+1
* * IMAP4 patch by Sunil Shetye:Matthias Andree2006-05-211-0/+3
* Revise --flush description, suggested by Frederic Marchal.Matthias Andree2006-05-171-0/+2
* Make IMAP4 IDLE work on servers that do not update RECENT counts. Reported by...Matthias Andree2006-05-151-0/+2
* * Improve KAME/getnameinfo.c portability to Linux libc5 systems. Matthias Andree2006-05-151-0/+5
* Mention Debian Bug#361825 submitter.Matthias Andree2006-05-141-1/+1
* In verbose mode, log every IP fetchmail tries to connect to, to avoidMatthias Andree2006-05-141-0/+3
* Improve --with-gssapi auto detection for /usr-based GSSAPI installs.Matthias Andree2006-05-141-0/+2
* If krb5-config provides gssapi library information, use that rather than gues...Matthias Andree2006-05-141-0/+2
* Support Kerberos installations where krb5.h and perhaps roken.h are in .../in...Matthias Andree2006-05-141-0/+2
* Configure prints a warning (but proceeds) if Kerberos IV support is enabled.Matthias Andree2006-05-141-0/+1
* Fix des_pcbc_encrypt compile warnings in kerberos.c line 246.Matthias Andree2006-05-141-0/+1
* Drop #include <com_err.h> from Kerberos 5 header file, fixes compile error on...Matthias Andree2006-05-141-0/+2
* On NetBSD, link against -lroken -lcom_err if --with-kerberos is enabled.Matthias Andree2006-05-141-0/+1
* Mark Kerberos IV obsolete.Matthias Andree2006-05-141-0/+1
* Rename all fetchmail-internal lock_* functions to fm_lock_*. Obsoletes Matthias Andree2006-05-121-0/+4
* When using NTLM authentication, use regular IMAP response code handler after Matthias Andree2006-05-121-0/+3
* For protocols such as IMAP that are not delimited by "." lines, truncateMatthias Andree2006-05-121-0/+6
* Revise Received: format requirement notice.Matthias Andree2006-05-121-1/+2
* Update Russian and Vietnamese translations.Matthias Andree2006-05-041-0/+3
* Mark Received envelope parsing obsolete.Matthias Andree2006-05-041-0/+7
* PopDel.py was revised by Joshua Crawford to display the From: address and Matthias Andree2006-04-271-1/+8
* Clarify that 'aka' will remain after DNS alias deprecation.Matthias Andree2006-04-191-0/+1
* Mark fetchmail 6.3.4 released.Matthias Andree2006-04-141-1/+1
* Correct daemon (which isn't translated into French). (Stéphane Schildknecht)Matthias Andree2006-04-141-1/+1
* Minor revision of French translation after comments from Luc Pionchon.Matthias Andree2006-04-141-1/+2
* Updated French descriptions for the .spec file (Stéphane Schildknecht)Matthias Andree2006-04-141-0/+1
* Update Japanese translation.Matthias Andree2006-04-131-1/+1
* specgen.sh converted to UTF-8 to support future translations.Matthias Andree2006-04-111-0/+1
* Add new Vietnamese [vi] translation by Clytie Siddall.Matthias Andree2006-04-101-0/+1
* Add note about empty files not being ISO-C compliant.Matthias Andree2006-04-091-0/+3
* Update Polish Translation (Jakub Bogusz).Matthias Andree2006-04-071-0/+4
* * SSL/TLS: if, for a certain server, an sslfingerprint is specified and Matthias Andree2006-04-061-0/+5
* set no bouncemail now also prevents 'General SMTP/ESMTP error.' bounces.Matthias Andree2006-04-041-0/+2
* Add SF.net #780933.Matthias Andree2006-04-031-6/+9
* Add pidfile option, requested by Héctor García.Matthias Andree2006-04-021-0/+6
* a few more type fixes for report/snprintf, patch by Miloslav Trmac.Matthias Andree2006-04-011-0/+1
">&status, WNOHANG, 0)) > 0) continue; /* swallow 'em up. */ #else /* Zooks! Nothing to do but wait(), and hope we don't block... */ int status; wait(&status); #endif lastsig = SIGCHLD; (void)sig; } RETSIGTYPE null_signal_handler(int sig) { (void)sig; } SIGHANDLERTYPE set_signal_handler(int sig, SIGHANDLERTYPE handler) /* * This function is called by other parts of the program to * setup the signal handler after a change to the signal context. * This is done to improve robustness of the signal handling code. * It has the same prototype as signal(2). */ { SIGHANDLERTYPE rethandler; #ifdef HAVE_SIGACTION struct sigaction sa_new, sa_old; memset (&sa_new, 0, sizeof sa_new); sigemptyset (&sa_new.sa_mask); sa_new.sa_handler = handler; sa_new.sa_flags = 0; #ifdef SA_RESTART /* SunOS 4.1 portability hack */ /* system call should restart on all signals except SIGALRM */ if (sig != SIGALRM) sa_new.sa_flags |= SA_RESTART; #endif #ifdef SA_NOCLDSTOP /* SunOS 4.1 portability hack */ if (sig == SIGCHLD) sa_new.sa_flags |= SA_NOCLDSTOP; #endif sigaction(sig, &sa_new, &sa_old); rethandler = sa_old.sa_handler; #if defined(SIGPWR) if (sig == SIGCHLD) sigaction(SIGPWR, &sa_new, NULL); #endif #else /* HAVE_SIGACTION */ rethandler = signal(sig, handler); #if defined(SIGPWR) if (sig == SIGCHLD) signal(SIGPWR, handler); #endif /* system call should restart on all signals except SIGALRM */ siginterrupt(sig, sig == SIGALRM); #endif /* HAVE_SIGACTION */ return rethandler; } void deal_with_sigchld(void) { set_signal_handler(SIGCHLD, sigchld_handler); } int daemonize (const char *logfile) /* detach from control TTY, become process group leader, catch SIGCHLD */ { int fd, logfd; pid_t childpid; /* if we are started by init (process 1) via /etc/inittab we needn't bother to detach from our process group context */ if (getppid() == 1) goto nottyDetach; /* Ignore BSD terminal stop signals */ #ifdef SIGTTOU set_signal_handler(SIGTTOU, SIG_IGN); #endif #ifdef SIGTTIN set_signal_handler(SIGTTIN, SIG_IGN); #endif #ifdef SIGTSTP set_signal_handler(SIGTSTP, SIG_IGN); #endif /* In case we were not started in the background, fork and let the parent exit. Guarantees that the child is not a process group leader */ if ((childpid = fork()) < 0) { report(stderr, "fork (%s)\n", strerror(errno)); return(PS_IOERR); } else if (childpid > 0) exit(0); /* parent */ /* Make ourselves the leader of a new process group with no controlling terminal */ #if defined(HAVE_SETSID) /* POSIX */ /* POSIX makes this soooo easy to do */ if (setsid() < 0) { report(stderr, "setsid (%s)\n", strerror(errno)); return(PS_IOERR); } #elif defined(SIGTSTP) /* BSD */ /* change process group */ #ifndef __EMX__ setpgrp(0, getpid()); #endif /* lose controlling tty */ if ((fd = open("/dev/tty", O_RDWR)) >= 0) { ioctl(fd, TIOCNOTTY, (char *) 0); close(fd); /* not checking should be safe, there were no writes */ } #else /* SVR3 and older */ /* change process group */ #ifndef __EMX__ setpgrp(); #endif /* lose controlling tty */ set_signal_handler(SIGHUP, SIG_IGN); if ((childpid = fork()) < 0) { report(stderr, "fork (%s)\n", strerror(errno)); return(PS_IOERR); } else if (childpid > 0) { exit(0); /* parent */ } #endif nottyDetach: (void)close(0); /* Reopen stdin descriptor on /dev/null */ if ((fd = open("/dev/null", O_RDWR)) < 0) { /* stdin */ report(stderr, "cannot open /dev/null: %s\n", strerror(errno)); return(PS_IOERR); } if (logfile) { if ((logfd = open(logfile, O_CREAT|O_WRONLY|O_APPEND, 0666)) < 0) { /* stdout */ report(stderr, "cannot open %s: %s\n", logfile, strerror(errno)); return PS_IOERR; } } else logfd = 0; /* else use /dev/null */ /* Close any/all open file descriptors */ #if defined(HAVE_GETDTABLESIZE) fd = getdtablesize() - 1; #elif defined(NOFILE) fd = NOFILE - 1; #else /* make an educated guess */ fd = 1023; #endif while (fd >= 1) { if (fd != logfd) close(fd); /* not checking this should be safe, no writes */ -- fd; } if (dup(logfd) < 0 /* stdout */ || ((logfd == 0 || logfd >= 3) && dup(logfd) < 0)) { /* stderr */ report(stderr, "dup (%s)\n", strerror(errno)); return(PS_IOERR); } #ifdef HAVE_GETCWD /* move to root directory, so we don't prevent filesystem unmounts */ chdir("/"); #endif /* set our umask to something reasonable (we hope) */ #if defined(DEF_UMASK) umask(DEF_UMASK); #else umask(022); #endif deal_with_sigchld(); return(0); } flag is_a_file(int fd) /* is the given fd attached to a file? (used to control logging) */ { struct stat stbuf; /* * We'd like just to return 1 on (S_IFREG | S_IFBLK), * but weirdly enough, Linux ptys seem to have S_IFBLK * so this test would fail when run on an xterm. */ if (isatty(fd) || fstat(fd, &stbuf)) return(0); else if (stbuf.st_mode & (S_IFREG)) return(1); return(0); } /* daemon.c ends here */