aboutsummaryrefslogtreecommitdiff
path: root/mailutils/mail.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 23:42:42 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-06 23:42:42 +0000
commit239d06bd4710e8463c6cc7e5411965066a6d134e (patch)
tree10b9f670ec97b651bca9fcbe42a48003b687cd45 /mailutils/mail.h
parentb9d572a2733fa20957a9a3287bd04d66176e3b6a (diff)
downloadbusybox-w32-239d06bd4710e8463c6cc7e5411965066a6d134e.tar.gz
busybox-w32-239d06bd4710e8463c6cc7e5411965066a6d134e.tar.bz2
busybox-w32-239d06bd4710e8463c6cc7e5411965066a6d134e.zip
add mailutils/*
Diffstat (limited to 'mailutils/mail.h')
-rw-r--r--mailutils/mail.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/mailutils/mail.h b/mailutils/mail.h
new file mode 100644
index 000000000..bb747c4c5
--- /dev/null
+++ b/mailutils/mail.h
@@ -0,0 +1,35 @@
1
2struct globals {
3 pid_t helper_pid;
4 unsigned timeout;
5 unsigned opts;
6 char *user;
7 char *pass;
8 FILE *fp0; // initial stdin
9 char *opt_charset;
10 char *content_type;
11};
12
13#define G (*ptr_to_globals)
14#define timeout (G.timeout )
15#define opts (G.opts )
16//#define user (G.user )
17//#define pass (G.pass )
18//#define fp0 (G.fp0 )
19//#define opt_charset (G.opt_charset)
20//#define content_type (G.content_type)
21#define INIT_G() do { \
22 SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
23 G.opt_charset = (char *)CONFIG_FEATURE_MIME_CHARSET; \
24 G.content_type = (char *)"text/plain"; \
25} while (0)
26
27//char FAST_FUNC *parse_url(char *url, char **user, char **pass);
28
29void FAST_FUNC launch_helper(const char **argv);
30void FAST_FUNC get_cred_or_die(int fd);
31
32const FAST_FUNC char *command(const char *fmt, const char *param);
33
34void FAST_FUNC encode_base64(char *fname, const char *text, const char *eol);
35void FAST_FUNC decode_base64(FILE *src_stream, FILE *dst_stream);