diff --git a/src/config.h b/src/config.h index eb34dd42..0bd77572 100644 --- a/src/config.h +++ b/src/config.h @@ -13,7 +13,7 @@ #define VERSION "0.1.23-master-branch" -#define BUILD 767 +#define BUILD 768 #define HOSTID "mailarchiver" diff --git a/src/pop3.c b/src/pop3.c index 04713fc9..0e92310e 100644 --- a/src/pop3.c +++ b/src/pop3.c @@ -160,8 +160,8 @@ int process_pop3_emails(int sd, struct session_data *sdata, struct __data *data, if(nreads == 1){ - if(strncmp(buf, "+OK ", 4) == 0){ - p = strchr(&buf[4], '\n'); + if(strncmp(buf, "+OK", 3) == 0){ + p = strchr(&buf[3], '\n'); if(p){ *p = '\0'; pos = strlen(buf)+1;