ntpd: default to FEATURE_NTP_AUTH=y
[oweals/busybox.git] / mailutils / mail.h
index d1d783055a3b703b84d6e7fdacfc19ec14c190b4..b14228a4a5e34fc23e9186f8fe6855d000cb58eb 100644 (file)
@@ -16,22 +16,15 @@ struct globals {
        char *pass;
        FILE *fp0; // initial stdin
        char *opt_charset;
-       char *content_type;
 };
 
 #define G (*ptr_to_globals)
 #define timeout         (G.timeout  )
 #define verbose         (G.verbose  )
 #define opts            (G.opts     )
-//#define user            (G.user     )
-//#define pass            (G.pass     )
-//#define fp0             (G.fp0      )
-//#define opt_charset     (G.opt_charset)
-//#define content_type    (G.content_type)
 #define INIT_G() do { \
        SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
        G.opt_charset = (char *)CONFIG_FEATURE_MIME_CHARSET; \
-       G.content_type = (char *)"text/plain"; \
 } while (0)
 
 //char FAST_FUNC *parse_url(char *url, char **user, char **pass);
@@ -41,4 +34,6 @@ void get_cred_or_die(int fd) FAST_FUNC;
 
 char *send_mail_command(const char *fmt, const char *param) FAST_FUNC;
 
-void encode_base64(char *fname, const char *text, const char *eol) FAST_FUNC;
+void printbuf_base64(const char *buf, unsigned len) FAST_FUNC;
+void printstr_base64(const char *buf) FAST_FUNC;
+void printfile_base64(const char *fname) FAST_FUNC;