aboutsummaryrefslogtreecommitdiff
path: root/mail/fetchmail/files/patch-fetchlimit-exitstatus
diff options
context:
space:
mode:
Diffstat (limited to 'mail/fetchmail/files/patch-fetchlimit-exitstatus')
-rw-r--r--mail/fetchmail/files/patch-fetchlimit-exitstatus18
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/fetchmail/files/patch-fetchlimit-exitstatus b/mail/fetchmail/files/patch-fetchlimit-exitstatus
new file mode 100644
index 000000000000..dd79d235ffe5
--- /dev/null
+++ b/mail/fetchmail/files/patch-fetchlimit-exitstatus
@@ -0,0 +1,18 @@
+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)