diff options
Diffstat (limited to 'mailutils/mail.h')
-rw-r--r-- | mailutils/mail.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/mailutils/mail.h b/mailutils/mail.h index e0048fbfa..d1d783055 100644 --- a/mailutils/mail.h +++ b/mailutils/mail.h | |||
@@ -1,7 +1,16 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
2 | /* | ||
3 | * helper routines | ||
4 | * | ||
5 | * Copyright (C) 2008 by Vladimir Dronnikov <dronnikov@gmail.com> | ||
6 | * | ||
7 | * Licensed under GPLv2, see file LICENSE in this source tree. | ||
8 | */ | ||
1 | 9 | ||
2 | struct globals { | 10 | struct globals { |
3 | pid_t helper_pid; | 11 | pid_t helper_pid; |
4 | unsigned timeout; | 12 | unsigned timeout; |
13 | unsigned verbose; | ||
5 | unsigned opts; | 14 | unsigned opts; |
6 | char *user; | 15 | char *user; |
7 | char *pass; | 16 | char *pass; |
@@ -12,6 +21,7 @@ struct globals { | |||
12 | 21 | ||
13 | #define G (*ptr_to_globals) | 22 | #define G (*ptr_to_globals) |
14 | #define timeout (G.timeout ) | 23 | #define timeout (G.timeout ) |
24 | #define verbose (G.verbose ) | ||
15 | #define opts (G.opts ) | 25 | #define opts (G.opts ) |
16 | //#define user (G.user ) | 26 | //#define user (G.user ) |
17 | //#define pass (G.pass ) | 27 | //#define pass (G.pass ) |
@@ -26,9 +36,9 @@ struct globals { | |||
26 | 36 | ||
27 | //char FAST_FUNC *parse_url(char *url, char **user, char **pass); | 37 | //char FAST_FUNC *parse_url(char *url, char **user, char **pass); |
28 | 38 | ||
29 | void FAST_FUNC launch_helper(const char **argv); | 39 | void launch_helper(const char **argv) FAST_FUNC; |
30 | void FAST_FUNC get_cred_or_die(int fd); | 40 | void get_cred_or_die(int fd) FAST_FUNC; |
31 | 41 | ||
32 | const FAST_FUNC char *command(const char *fmt, const char *param); | 42 | char *send_mail_command(const char *fmt, const char *param) FAST_FUNC; |
33 | 43 | ||
34 | void FAST_FUNC encode_base64(char *fname, const char *text, const char *eol); | 44 | void encode_base64(char *fname, const char *text, const char *eol) FAST_FUNC; |