diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-03-06 19:52:57 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-03-06 19:52:57 +0000 |
commit | 582012e400e28648a602804eeea6d701f2295306 (patch) | |
tree | 4479151c2773a54535c9373f2f69fa934d1ffd43 /driver.c | |
parent | 8fafdda84fb552dbba9829308cd963d5ab78cbdd (diff) | |
download | fetchmail-582012e400e28648a602804eeea6d701f2295306.tar.gz fetchmail-582012e400e28648a602804eeea6d701f2295306.tar.bz2 fetchmail-582012e400e28648a602804eeea6d701f2295306.zip |
Try to prevent .fetchids from being randomly nuked.
svn path=/trunk/; revision=2799
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1458,6 +1458,9 @@ const int maxfetch; /* maximum number of messages to fetch */ alrmsave = signal(SIGALRM, timeout_handler); mytimeout = ctl->server.timeout; + /* no UIDLs seen yet */ + ctl->have_uids = TRUE; + /* set up the broken-pipe timeout */ pipesave = signal(SIGPIPE, sigpipe_handler); @@ -1767,6 +1770,9 @@ const int maxfetch; /* maximum number of messages to fetch */ if (ok != 0) goto cleanUp; + /* we've now seen any UIDs that will be coming up the link */ + ctl->have_uids = TRUE; + /* show user how many messages we downloaded */ if (idp->id) (void) sprintf(buf, _("%s at %s (folder %s)"), |