Minor changes for compatibility with the Emacs implementation.
Showing
1 changed file
with
12 additions
and
0 deletions
... | @@ -184,6 +184,16 @@ compatibility_mode (mailbox_t *mbx, char *source_name, char *password, | ... | @@ -184,6 +184,16 @@ compatibility_mode (mailbox_t *mbx, char *source_name, char *password, |
184 | } | 184 | } |
185 | 185 | ||
186 | int | 186 | int |
187 | movemail_error_printer (const char *fmt, va_list ap) | ||
188 | { | ||
189 | int n; | ||
190 | n = fprintf (stderr, "%s: ", program_invocation_short_name); | ||
191 | n += vfprintf (stderr, fmt, ap); | ||
192 | fputc ('\n', stderr); | ||
193 | return n + 1; | ||
194 | } | ||
195 | |||
196 | int | ||
187 | main (int argc, char **argv) | 197 | main (int argc, char **argv) |
188 | { | 198 | { |
189 | int index; | 199 | int index; |
... | @@ -210,6 +220,8 @@ main (int argc, char **argv) | ... | @@ -210,6 +220,8 @@ main (int argc, char **argv) |
210 | } | 220 | } |
211 | /* argument parsing */ | 221 | /* argument parsing */ |
212 | 222 | ||
223 | mu_error_set_print (movemail_error_printer); | ||
224 | |||
213 | mu_argp_init (program_version, NULL); | 225 | mu_argp_init (program_version, NULL); |
214 | #ifdef WITH_TLS | 226 | #ifdef WITH_TLS |
215 | mu_tls_init_client_argp (); | 227 | mu_tls_init_client_argp (); | ... | ... |
-
Please register or sign in to post a comment