12345678910111213141516171819202122232425262728293031323334353637 |
- struct globals {
- pid_t helper_pid;
- unsigned timeout;
- unsigned verbose;
- unsigned opts;
- char *user;
- char *pass;
- FILE *fp0;
- 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)
- 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;
|