aboutsummaryrefslogtreecommitdiff
path: root/mailutils/mail.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailutils/mail.c')
-rw-r--r--mailutils/mail.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/mailutils/mail.c b/mailutils/mail.c
index 9b4bebce5..44957016f 100644
--- a/mailutils/mail.c
+++ b/mailutils/mail.c
@@ -75,13 +75,16 @@ void FAST_FUNC launch_helper(const char **argv)
75 atexit(kill_helper); 75 atexit(kill_helper);
76} 76}
77 77
78const FAST_FUNC char *command(const char *fmt, const char *param) 78char* FAST_FUNC send_mail_command(const char *fmt, const char *param)
79{ 79{
80 const char *msg = fmt; 80 char *msg;
81 if (timeout) 81 if (timeout)
82 alarm(timeout); 82 alarm(timeout);
83 if (msg) { 83 msg = (char*)fmt;
84 if (fmt) {
84 msg = xasprintf(fmt, param); 85 msg = xasprintf(fmt, param);
86 if (verbose)
87 bb_error_msg("send:'%s'", msg);
85 printf("%s\r\n", msg); 88 printf("%s\r\n", msg);
86 } 89 }
87 fflush_all(); 90 fflush_all();
@@ -90,7 +93,7 @@ const FAST_FUNC char *command(const char *fmt, const char *param)
90 93
91// NB: parse_url can modify url[] (despite const), but only if '@' is there 94// NB: parse_url can modify url[] (despite const), but only if '@' is there
92/* 95/*
93static char FAST_FUNC *parse_url(char *url, char **user, char **pass) 96static char* FAST_FUNC parse_url(char *url, char **user, char **pass)
94{ 97{
95 // parse [user[:pass]@]host 98 // parse [user[:pass]@]host
96 // return host 99 // return host