Commit 45a2791f 45a2791f0bb68f1af73056fdc7ab07a39c2b9baa by Sergey Poznyakoff

(main): Use mu_register_all_mbox_formats

1 parent 885c5863
......@@ -325,15 +325,7 @@ main(int argc, char **argv)
mailbox_name = argv[0];
/* register the formats. */
{
list_t bookie;
registrar_get_list (&bookie);
list_append (bookie, mbox_record);
list_append (bookie, path_record);
list_append (bookie, mh_record);
list_append (bookie, pop_record);
list_append (bookie, imap_record);
}
mu_register_all_mbox_formats ();
/* Construct the mailbox_t, attach a notification and destroy */
{
......
......@@ -116,15 +116,7 @@ main(int argc, char **argv)
}
/* Register the desire formats. */
{
list_t bookie;
registrar_get_list (&bookie);
list_append (bookie, mbox_record);
list_append (bookie, path_record);
list_append (bookie, mh_record);
list_append (bookie, pop_record);
list_append (bookie, imap_record);
}
mu_register_all_mbox_formats ();
if ((status = mailbox_create_default (&mbox, mailbox_name)) != 0)
{
......
......@@ -248,19 +248,9 @@ main (int argc, char **argv)
/* Native Language Support */
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);
}
/* Register the desired mailbox formats. */
mu_register_all_mbox_formats ();
/* argument parsing */
mu_error_set_print (movemail_error_printer);
......