ash: builtin: Mark more regular built-ins
[oweals/busybox.git] / mailutils / makemime.c
index 8e1bc664c483e21b1be7afc718ad984ae236b207..53a1820f17c6c07ee0c5f6be2ed2057a257a5a8a 100644 (file)
@@ -6,6 +6,13 @@
  *
  * Licensed under GPLv2, see file LICENSE in this source tree.
  */
+//config:config MAKEMIME
+//config:      bool "makemime (5.4 kb)"
+//config:      default y
+//config:      help
+//config:      Create MIME-formatted messages.
+
+//applet:IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
 
 //kbuild:lib-$(CONFIG_MAKEMIME) += makemime.o mail.o
 
@@ -227,7 +234,7 @@ int makemime_main(int argc UNUSED_PARAM, char **argv)
                        , G.opt_charset
                        , bb_get_last_path_component_strip(*argv)
                );
-               encode_base64(*argv++, (const char *)stdin, "");
+               printfile_base64(*argv++);
        }
 
        // put multipart footer