summaryrefslogtreecommitdiff
path: root/movemail
diff options
context:
space:
mode:
authoruid65697 <uid65697>2003-12-28 16:39:17 +0000
committeruid65697 <uid65697>2003-12-28 16:39:17 +0000
commit813c698409b7a559f0588e3e7757cfef837679f0 (patch)
tree2e21e92bd5fccfd8245b874f41eab36810007b6a /movemail
parent46d848f2afe480b7e4c373721525d42b94262622 (diff)
downloadmailutils-813c698409b7a559f0588e3e7757cfef837679f0.tar.gz
mailutils-813c698409b7a559f0588e3e7757cfef837679f0.tar.bz2
Minor changes for compatibility with the Emacs implementation.
Diffstat (limited to 'movemail')
-rw-r--r--movemail/movemail.c12
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 ();

Return to:

Send suggestions and report system problems to the System administrator.