diff options
| author | Eric S. Raymond <esr@thyrsus.com> | 1999-12-23 17:00:18 +0000 | 
|---|---|---|
| committer | Eric S. Raymond <esr@thyrsus.com> | 1999-12-23 17:00:18 +0000 | 
| commit | cf5b2ecd3903f8e00f19bda48cd79b4b1343a03d (patch) | |
| tree | 6fa666b2d8282c31d01b404466b4f5150a152db0 /fetchmail.c | |
| parent | b1d579c21d332b02181e80a046b379350ce39771 (diff) | |
| download | fetchmail-cf5b2ecd3903f8e00f19bda48cd79b4b1343a03d.tar.gz fetchmail-cf5b2ecd3903f8e00f19bda48cd79b4b1343a03d.tar.bz2 fetchmail-cf5b2ecd3903f8e00f19bda48cd79b4b1343a03d.zip  | |
Ken Estes's fix for MAXFETCH returns.
svn path=/trunk/; revision=2678
Diffstat (limited to 'fetchmail.c')
| -rw-r--r-- | fetchmail.c | 17 | 
1 files changed, 8 insertions, 9 deletions
diff --git a/fetchmail.c b/fetchmail.c index 6e461445..08d051af 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -626,23 +626,22 @@ int main(int argc, char **argv)  		querystatus = query_host(ctl); -		if (querystatus == PS_SUCCESS) -		{ -		    successes++;  #ifdef POP3_ENABLE -		    if (!check_only) -			update_str_lists(ctl); - -		   /* Save UID list to prevent re-fetch in case fetchmail  +		/* Save UID list to prevent re-fetch in cases fetchmail   		      recover from crash */ -		    if (!check_only) +		if (!check_only) +		    if ((querystatus==PS_SUCCESS)||(querystatus==PS_MAXFETCH))  		    { +			update_str_lists(ctl); +			    			write_saved_lists(querylist, run.idfile);  			if (outlevel >= O_DEBUG)  			    report(stdout, _("saved UID List\n"));  		    }  #endif  /* POP3_ENABLE */ -		} + +		if (querystatus == PS_SUCCESS) +		    successes++;  		else if (!check_only &&   			 ((querystatus!=PS_NOMAIL) || (outlevel==O_DEBUG)))  		    report(stdout, _("Query status=%d\n"), querystatus);  | 
