Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/mailutils/popmaildir.c

    r2725 r3232  
    1010 * Licensed under GPLv2, see file LICENSE in this source tree.
    1111 */
     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
    1247#include "libbb.h"
    1348#include "mail.h"
     
    1550static void pop3_checkr(const char *fmt, const char *param, char **ret)
    1651{
    17     const char *msg = command(fmt, param);
     52    char *msg = send_mail_command(fmt, param);
    1853    char *answer = xmalloc_fgetline(stdin);
    1954    if (answer && '+' == answer[0]) {
     55        free(msg);
    2056        if (timeout)
    2157            alarm(0);
     
    2864        return;
    2965    }
    30     bb_error_msg_and_die("%s failed: %s", msg, answer);
     66    bb_error_msg_and_die("%s failed, reply was: %s", msg, answer);
    3167}
    3268
Note: See TracChangeset for help on using the changeset viewer.