|
|
@@ -10,52 +10,3 @@ Index: socket.c
|
|
|
#include <ctype.h> /* isspace() */
|
|
|
#ifdef HAVE_MEMORY_H
|
|
|
#include <memory.h>
|
|
|
-Index: driver.c
|
|
|
---- driver.c.orig 2003-10-15 21:22:31 +0200
|
|
|
-+++ driver.c 2005-01-29 13:36:30 +0100
|
|
|
-@@ -429,7 +429,9 @@
|
|
|
- /* for POP3, we can get the size of one mail only! Unfortunately, this
|
|
|
- * protocol specific test cannot be done elsewhere as the protocol
|
|
|
- * could be "auto". */
|
|
|
-- if (ctl->server.protocol == P_POP3)
|
|
|
-+ if ( ctl->server.protocol == P_POP3
|
|
|
-+ || ctl->server.protocol == P_APOP
|
|
|
-+ || ctl->server.protocol == P_RPOP)
|
|
|
- fetchsizelimit = 1;
|
|
|
-
|
|
|
- /* Time to allocate memory to store the sizes */
|
|
|
-
|
|
|
-OpenPKG-SA-2005.016-fetchmail; CAN-2005-2335
|
|
|
-Patch from Ludwig Nussel @SUSE
|
|
|
-Index: fetchmail-6.2.5/pop3.c
|
|
|
-===================================================================
|
|
|
---- pop3.c.625
|
|
|
-+++ pop3.c
|
|
|
-@@ -613,6 +613,8 @@ static int pop3_gettopid( int sock, int
|
|
|
- return 0;
|
|
|
- }
|
|
|
-
|
|
|
-+#define str(s) #s
|
|
|
-+#define UIDLFMT(n) "%d %" str(n) "s"
|
|
|
- static int pop3_getuidl( int sock, int num , char *id)
|
|
|
- {
|
|
|
- int ok;
|
|
|
-@@ -620,7 +622,7 @@ static int pop3_getuidl( int sock, int n
|
|
|
- gen_send(sock, "UIDL %d", num);
|
|
|
- if ((ok = pop3_ok(sock, buf)) != 0)
|
|
|
- return(ok);
|
|
|
-- if (sscanf(buf, "%d %s", &num, id) != 2)
|
|
|
-+ if (sscanf(buf, UIDLFMT(IDLEN), &num, id) != 2)
|
|
|
- return(PS_PROTOCOL);
|
|
|
- return(PS_SUCCESS);
|
|
|
- }
|
|
|
-@@ -862,7 +864,7 @@ static int pop3_getrange(int sock,
|
|
|
- {
|
|
|
- if (DOTLINE(buf))
|
|
|
- break;
|
|
|
-- else if (sscanf(buf, "%d %s", &num, id) == 2)
|
|
|
-+ else if (sscanf(buf, UIDLFMT(IDLEN), &num, id) == 2)
|
|
|
- {
|
|
|
- struct idlist *old, *new;
|
|
|
-
|
|
|
-
|