aboutsummaryrefslogtreecommitdiff
path: root/mailutils/popmaildir.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailutils/popmaildir.c')
-rw-r--r--mailutils/popmaildir.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mailutils/popmaildir.c b/mailutils/popmaildir.c
index c5522f1b7..1f2db2892 100644
--- a/mailutils/popmaildir.c
+++ b/mailutils/popmaildir.c
@@ -68,10 +68,11 @@
68static void pop3_checkr(const char *fmt, const char *param, char **ret) 68static void pop3_checkr(const char *fmt, const char *param, char **ret)
69{ 69{
70 char *msg = send_mail_command(fmt, param); 70 char *msg = send_mail_command(fmt, param);
71//FIXME: limit max len!!!
71 char *answer = xmalloc_fgetline(stdin); 72 char *answer = xmalloc_fgetline(stdin);
72 if (answer && '+' == answer[0]) { 73 if (answer && '+' == answer[0]) {
73 free(msg); 74 free(msg);
74 if (timeout) 75 if (G.timeout)
75 alarm(0); 76 alarm(0);
76 if (ret) { 77 if (ret) {
77 // skip "+OK " 78 // skip "+OK "
@@ -92,6 +93,7 @@ static void pop3_check(const char *fmt, const char *param)
92int popmaildir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 93int popmaildir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
93int popmaildir_main(int argc UNUSED_PARAM, char **argv) 94int popmaildir_main(int argc UNUSED_PARAM, char **argv)
94{ 95{
96 unsigned opts;
95 char *buf; 97 char *buf;
96 unsigned nmsg; 98 unsigned nmsg;
97 char *hostname; 99 char *hostname;
@@ -128,7 +130,7 @@ int popmaildir_main(int argc UNUSED_PARAM, char **argv)
128 opts = getopt32(argv, "^" 130 opts = getopt32(argv, "^"
129 "bdmVcasTkt:+" "R:+Z:L:+H:+" IF_FEATURE_POPMAILDIR_DELIVERY("M:F:") 131 "bdmVcasTkt:+" "R:+Z:L:+H:+" IF_FEATURE_POPMAILDIR_DELIVERY("M:F:")
130 "\0" "-1:dd", 132 "\0" "-1:dd",
131 &timeout, NULL, NULL, NULL, &opt_nlines 133 &G.timeout, NULL, NULL, NULL, &opt_nlines
132 IF_FEATURE_POPMAILDIR_DELIVERY(, &delivery, &delivery) // we treat -M and -F the same 134 IF_FEATURE_POPMAILDIR_DELIVERY(, &delivery, &delivery) // we treat -M and -F the same
133 ); 135 );
134 //argc -= optind; 136 //argc -= optind;