Commit 6b4db5de 6b4db5de2ba41425ad52ed6f17f59d7e6253760c by Sergey Poznyakoff

(main): Use mu_register_all_formats

1 parent 45a2791f
......@@ -230,18 +230,7 @@ main (int argc, char **argv)
mu_init_nls ();
/* Register the desired formats. */
{
list_t bookie;
registrar_get_list (&bookie);
list_append (bookie, mbox_record);
list_append (bookie, path_record);
list_append (bookie, pop_record);
list_append (bookie, imap_record);
list_append (bookie, mh_record);
/* Possible supported mailers. */
list_append (bookie, sendmail_record);
list_append (bookie, smtp_record);
}
mu_register_all_formats ();
interactive = isatty (fileno(stdin));
#ifdef HAVE_SIGACTION
......
......@@ -44,8 +44,6 @@
#include <mailutils/nls.h>
#include <mailutils/tls.h>
void mutil_register_all_mbox_formats (void);
const char *program_version = "sieve (" PACKAGE_STRING ")";
static char doc[] =
......@@ -367,7 +365,7 @@ main (int argc, char *argv[])
if (rc)
return 1;
mutil_register_all_mbox_formats ();
mu_register_all_formats ();
/* Sieve interpreter setup. */
rc = sieve_machine_init (&mach, NULL);
......@@ -535,17 +533,3 @@ cleanup:
return rc ? 1 : 0;
}
void
mutil_register_all_mbox_formats (void)
{
list_t bookie = 0;
registrar_get_list (&bookie);
list_append (bookie, path_record);
list_append (bookie, file_record);
list_append (bookie, mbox_record);
list_append (bookie, pop_record);
list_append (bookie, imap_record);
list_append (bookie, mh_record);
list_append (bookie, sendmail_record);
list_append (bookie, smtp_record);
}
......