1303 files changed, 32187 insertions, 57138 deletions
diff --git a/mailutils/reformime.c b/mailutils/reformime.c index 8e7d455..e97bc01 100644 --- a/mailutils/reformime.c +++ b/mailutils/reformime.c @@ -6,6 +6,21 @@ * * Licensed under GPLv2, see file LICENSE in this source tree. */ +//config:config REFORMIME +//config: bool "reformime" +//config: default y +//config: help +//config: Parse MIME-formatted messages. +//config: +//config:config FEATURE_REFORMIME_COMPAT +//config: bool "Accept and ignore options other than -x and -X" +//config: default y +//config: depends on REFORMIME +//config: help +//config: Accept (for compatibility only) and ignore options +//config: other than -x and -X. + +//applet:IF_REFORMIME(APPLET(reformime, BB_DIR_BIN, BB_SUID_DROP)) //kbuild:lib-$(CONFIG_REFORMIME) += reformime.o mail.o @@ -134,7 +149,6 @@ static int parse(const char *boundary, char **argv) if (strcasecmp(type + 10, "mixed") != 0) bb_error_msg_and_die("no support of content type '%s'", type); parse(xfind_token(tokens, "boundary"), argv); - } else { /* No, process one non-multipart section */ char *end; @@ -266,9 +280,9 @@ int reformime_main(int argc UNUSED_PARAM, char **argv) // parse options // N.B. only -x and -X are supported so far - opt_complementary = "x--X:X--x" IF_FEATURE_REFORMIME_COMPAT(":m::"); + opt_complementary = "x--X:X--x"; opts = getopt32(argv, - "x:X" IF_FEATURE_REFORMIME_COMPAT("deis:r:c:m:h:o:O:"), + "x:X" IF_FEATURE_REFORMIME_COMPAT("deis:r:c:m:*h:o:O:"), &opt_prefix IF_FEATURE_REFORMIME_COMPAT(, NULL, NULL, &G.opt_charset, NULL, NULL, NULL, NULL) ); |