Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/mailutils/popmaildir.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/mailutils/popmaildir.c
r2725 r3232 10 10 * Licensed under GPLv2, see file LICENSE in this source tree. 11 11 */ 12 13 //kbuild:lib-$(CONFIG_POPMAILDIR) += popmaildir.o mail.o 14 15 //usage:#define popmaildir_trivial_usage 16 //usage: "[OPTIONS] MAILDIR [CONN_HELPER ARGS]" 17 //usage:#define popmaildir_full_usage "\n\n" 18 //usage: "Fetch content of remote mailbox to local maildir\n" 19 /* //usage: "\n -b Binary mode. Ignored" */ 20 /* //usage: "\n -d Debug. Ignored" */ 21 /* //usage: "\n -m Show used memory. Ignored" */ 22 /* //usage: "\n -V Show version. Ignored" */ 23 /* //usage: "\n -c Use tcpclient. Ignored" */ 24 /* //usage: "\n -a Use APOP protocol. Implied. If server supports APOP -> use it" */ 25 //usage: "\n -s Skip authorization" 26 //usage: "\n -T Get messages with TOP instead of RETR" 27 //usage: "\n -k Keep retrieved messages on the server" 28 //usage: "\n -t SEC Network timeout" 29 //usage: IF_FEATURE_POPMAILDIR_DELIVERY( 30 //usage: "\n -F \"PROG ARGS\" Filter program (may be repeated)" 31 //usage: "\n -M \"PROG ARGS\" Delivery program" 32 //usage: ) 33 //usage: "\n" 34 //usage: "\nFetch from plain POP3 server:" 35 //usage: "\npopmaildir -k DIR nc pop3.server.com 110 <user_and_pass.txt" 36 //usage: "\nFetch from SSLed POP3 server and delete fetched emails:" 37 //usage: "\npopmaildir DIR -- openssl s_client -quiet -connect pop3.server.com:995 <user_and_pass.txt" 38 /* //usage: "\n -R BYTES Remove old messages on the server >= BYTES. Ignored" */ 39 /* //usage: "\n -Z N1-N2 Remove messages from N1 to N2 (dangerous). Ignored" */ 40 /* //usage: "\n -L BYTES Don't retrieve new messages >= BYTES. Ignored" */ 41 /* //usage: "\n -H LINES Type first LINES of a message. Ignored" */ 42 //usage: 43 //usage:#define popmaildir_example_usage 44 //usage: "$ popmaildir -k ~/Maildir -- nc pop.drvv.ru 110 [<password_file]\n" 45 //usage: "$ popmaildir ~/Maildir -- openssl s_client -quiet -connect pop.gmail.com:995 [<password_file]\n" 46 12 47 #include "libbb.h" 13 48 #include "mail.h" … … 15 50 static void pop3_checkr(const char *fmt, const char *param, char **ret) 16 51 { 17 c onst char *msg =command(fmt, param);52 char *msg = send_mail_command(fmt, param); 18 53 char *answer = xmalloc_fgetline(stdin); 19 54 if (answer && '+' == answer[0]) { 55 free(msg); 20 56 if (timeout) 21 57 alarm(0); … … 28 64 return; 29 65 } 30 bb_error_msg_and_die("%s failed : %s", msg, answer);66 bb_error_msg_and_die("%s failed, reply was: %s", msg, answer); 31 67 } 32 68
Note:
See TracChangeset
for help on using the changeset viewer.