aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-05-25 18:36:52 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-05-25 18:36:52 +0000
commit61285c7f2db6ad78adb7a66a271dbbfd60aca6fe (patch)
treec2e57d81f5f6222eda5d84605e6da56e46e9c7b9 /fetchmail.c
parent3d4766f364c15b28aa2bb5dac69912dc61c67624 (diff)
downloadfetchmail-61285c7f2db6ad78adb7a66a271dbbfd60aca6fe.tar.gz
fetchmail-61285c7f2db6ad78adb7a66a271dbbfd60aca6fe.tar.bz2
fetchmail-61285c7f2db6ad78adb7a66a271dbbfd60aca6fe.zip
Kok Seng's package to prevent UID lossage.
svn path=/trunk/; revision=1826
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 5e3e28ac..e7c7e3b3 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -3,7 +3,6 @@
*
* For license terms, see the file COPYING in this directory.
*/
-
#include "config.h"
#include <stdio.h>
@@ -511,13 +510,25 @@ int main (int argc, char **argv)
querystatus = query_host(ctl);
- if (querystatus == PS_SUCCESS) {
+ if (querystatus == PS_SUCCESS)
+ {
successes++;
#ifdef POP3_ENABLE
if (!check_only)
- update_str_lists(ctl);
+ update_str_lists(ctl);
+
+ /* Save UID list to prevent re-fetch in case fetchmail
+ recover from crash */
+ if (!check_only)
+ {
+ write_saved_lists(querylist, run.idfile);
+ syslog(LOG_INFO,"Saved UID List");
+ }
#endif /* POP3_ENABLE */
}
+ else
+ syslog(LOG_INFO,"Query status=%d", querystatus);
+
#if defined(linux) && !INET6
if (ctl->server.monitor)
{