Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/mailutils/mail.h
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/mailutils/mail.h
r2725 r3232 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 10 struct globals { 3 11 pid_t helper_pid; 4 12 unsigned timeout; 13 unsigned verbose; 5 14 unsigned opts; 6 15 char *user; … … 8 17 FILE *fp0; // initial stdin 9 18 char *opt_charset; 10 char *content_type;11 19 }; 12 20 13 21 #define G (*ptr_to_globals) 14 22 #define timeout (G.timeout ) 23 #define verbose (G.verbose ) 15 24 #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 25 #define INIT_G() do { \ 22 26 SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ 23 27 G.opt_charset = (char *)CONFIG_FEATURE_MIME_CHARSET; \ 24 G.content_type = (char *)"text/plain"; \25 28 } while (0) 26 29 27 30 //char FAST_FUNC *parse_url(char *url, char **user, char **pass); 28 31 29 void FAST_FUNC launch_helper(const char **argv);30 void FAST_FUNC get_cred_or_die(int fd);32 void launch_helper(const char **argv) FAST_FUNC; 33 void get_cred_or_die(int fd) FAST_FUNC; 31 34 32 c onst FAST_FUNC char *command(const char *fmt, const char *param);35 char *send_mail_command(const char *fmt, const char *param) FAST_FUNC; 33 36 34 void FAST_FUNC encode_base64(char *fname, const char *text, const char *eol);37 void encode_base64(char *fname, const char *text, const char *eol) FAST_FUNC;
Note:
See TracChangeset
for help on using the changeset viewer.