diff options
author | Denys Vlasenko | 2010-12-20 05:12:39 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-12-20 05:12:39 +0100 |
commit | 5707b52fd4de0d9d5ebb496f459fa4fa66215226 (patch) | |
tree | 40ccc1ba8324ada382607c07e16203239043aa37 /mailutils/mail.c | |
parent | 27c6c00a7cf141aaa972c0f9691072db287a36ae (diff) | |
download | busybox-5707b52fd4de0d9d5ebb496f459fa4fa66215226.zip busybox-5707b52fd4de0d9d5ebb496f459fa4fa66215226.tar.gz |
mailutils/*: add verbose option to sendmail; remove -m and -j from makemime
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'mailutils/mail.c')
-rw-r--r-- | mailutils/mail.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mailutils/mail.c b/mailutils/mail.c index 9b4bebc..4495701 100644 --- a/mailutils/mail.c +++ b/mailutils/mail.c @@ -75,13 +75,16 @@ void FAST_FUNC launch_helper(const char **argv) atexit(kill_helper); } -const FAST_FUNC char *command(const char *fmt, const char *param) +char* FAST_FUNC send_mail_command(const char *fmt, const char *param) { - const char *msg = fmt; + char *msg; if (timeout) alarm(timeout); - if (msg) { + msg = (char*)fmt; + if (fmt) { msg = xasprintf(fmt, param); + if (verbose) + bb_error_msg("send:'%s'", msg); printf("%s\r\n", msg); } fflush_all(); @@ -90,7 +93,7 @@ const FAST_FUNC char *command(const char *fmt, const char *param) // NB: parse_url can modify url[] (despite const), but only if '@' is there /* -static char FAST_FUNC *parse_url(char *url, char **user, char **pass) +static char* FAST_FUNC parse_url(char *url, char **user, char **pass) { // parse [user[:pass]@]host // return host |