On Sat, 13 Dec 2008, Michelle Konzack wrote:

> Now checking the wraper logfiles I have encountered if I start fetchmail
> with the option --fetchlimit, it does not more exit with status  13,  if
> the fetchlimit is reached...

Apparently this got introduced between 6.2.5 and 6.3.0.

The patch below should remedy it (SVN r5255).
Thanks for reporting this.

-- 
Matthias Andree
Index: driver.c
===================================================================
--- driver.c	(Revision 5254)
+++ driver.c	(Revision 5255)
@@ -1435,9 +1435,11 @@
 		/* end-of-mailbox processing before we repoll or switch to another one */
 		if (ctl->server.base_protocol->end_mailbox_poll)
 		{
-		    err = (ctl->server.base_protocol->end_mailbox_poll)(mailserver_socket, ctl);
-		    if (err)
+		    tmperr = (ctl->server.base_protocol->end_mailbox_poll)(mailserver_socket, ctl);
+		    if (tmperr) {
+			err = tmperr;
 			goto cleanUp;
+		    }
 		}
 		/* Return now if we have reached the fetchlimit */
 		if (maxfetch && maxfetch <= fetches)

Attachment: pgpf1bgqgJwT0.pgp
Description: PGP signature

Reply via email to