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