projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rationalize list handling in mutt a bit.
[apps/madmutt.git]
/
pop
/
pop.c
diff --git
a/pop/pop.c
b/pop/pop.c
index
999d3b1
..
a8c2616
100644
(file)
--- a/
pop/pop.c
+++ b/
pop/pop.c
@@
-11,10
+11,14
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#include <string.h>
+#include <unistd.h>
+
#include <lib-lib/mem.h>
#include <lib-lib/file.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
#include <lib-lib/mem.h>
#include <lib-lib/file.h>
#include <lib-lib/str.h>
#include <lib-lib/macros.h>
+#include <lib-lib/debug.h>
#include <lib-ui/curses.h>
#include <lib-ui/curses.h>
@@
-23,11
+27,6
@@
#include "pop.h"
#include <lib-crypt/crypt.h>
#include "pop.h"
#include <lib-crypt/crypt.h>
-#include "lib/debug.h"
-
-#include <string.h>
-#include <unistd.h>
-
/* write line to file */
static int fetch_message (char *line, void *file)
{
/* 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;
}
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);
ret = pop_query (pop_data, buf, sizeof (buf));
if (ret == PQ_OK) {
sscanf (buf, "+OK %d %ld", &index, &length);