[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/busybox/src/mailutils/mail.h b/ap/app/busybox/src/mailutils/mail.h
new file mode 100644
index 0000000..fa0c5b3
--- /dev/null
+++ b/ap/app/busybox/src/mailutils/mail.h
@@ -0,0 +1,37 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * helper routines
+ *
+ * Copyright (C) 2008 by Vladimir Dronnikov <dronnikov@gmail.com>
+ *
+ * Licensed under GPLv2, see file LICENSE in this source tree.
+ */
+
+struct globals {
+ pid_t helper_pid;
+ unsigned timeout;
+ unsigned verbose;
+ unsigned opts;
+ char *user;
+ char *pass;
+ FILE *fp0; // initial stdin
+ char *opt_charset;
+};
+
+#define G (*ptr_to_globals)
+#define timeout (G.timeout )
+#define verbose (G.verbose )
+#define opts (G.opts )
+#define INIT_G() do { \
+ SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
+ G.opt_charset = (char *)CONFIG_FEATURE_MIME_CHARSET; \
+} while (0)
+
+//char FAST_FUNC *parse_url(char *url, char **user, char **pass);
+
+void launch_helper(const char **argv) FAST_FUNC;
+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;