diff options
author | uid65697 <uid65697> | 2003-12-28 16:39:17 +0000 |
---|---|---|
committer | uid65697 <uid65697> | 2003-12-28 16:39:17 +0000 |
commit | 813c698409b7a559f0588e3e7757cfef837679f0 (patch) | |
tree | 2e21e92bd5fccfd8245b874f41eab36810007b6a /movemail | |
parent | 46d848f2afe480b7e4c373721525d42b94262622 (diff) | |
download | mailutils-813c698409b7a559f0588e3e7757cfef837679f0.tar.gz mailutils-813c698409b7a559f0588e3e7757cfef837679f0.tar.bz2 |
Minor changes for compatibility with the Emacs implementation.
Diffstat (limited to 'movemail')
-rw-r--r-- | movemail/movemail.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/movemail/movemail.c b/movemail/movemail.c index 158badb94..37d6d13ba 100644 --- a/movemail/movemail.c +++ b/movemail/movemail.c @@ -184,6 +184,16 @@ compatibility_mode (mailbox_t *mbx, char *source_name, char *password, } int +movemail_error_printer (const char *fmt, va_list ap) +{ + int n; + n = fprintf (stderr, "%s: ", program_invocation_short_name); + n += vfprintf (stderr, fmt, ap); + fputc ('\n', stderr); + return n + 1; +} + +int main (int argc, char **argv) { int index; @@ -210,6 +220,8 @@ main (int argc, char **argv) } /* argument parsing */ + mu_error_set_print (movemail_error_printer); + mu_argp_init (program_version, NULL); #ifdef WITH_TLS mu_tls_init_client_argp (); |