X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pop%2Fpop.c;h=a8c26162712a9121e348df4f58e200c8c416660f;hp=999d3b1b8302dd0e5263de770f338af29ac2104d;hb=108f3c7ab59844591f7540347914ea57be5245e2;hpb=dbb9a1e16d03a2d4664d6dc6a30c721b889d4982 diff --git a/pop/pop.c b/pop/pop.c index 999d3b1..a8c2616 100644 --- a/pop/pop.c +++ b/pop/pop.c @@ -11,10 +11,14 @@ # include "config.h" #endif +#include +#include + #include #include #include #include +#include #include @@ -23,11 +27,6 @@ #include "pop.h" #include -#include "lib/debug.h" - -#include -#include - /* write line to file */ static int fetch_message (char *line, void *file) { @@ -63,7 +62,7 @@ static pop_query_status pop_read_header (POP_DATA * pop_data, HEADER * h) return PFD_FUNCT_ERROR; } - snprintf (buf, sizeof (buf), "LIST %d\r\n", h->refno); + snprintf (buf, sizeof (buf), "string_list_t %d\r\n", h->refno); ret = pop_query (pop_data, buf, sizeof (buf)); if (ret == PQ_OK) { sscanf (buf, "+OK %d %ld", &index, &length);