summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mail/mail.c13
-rw-r--r--sieve/sieve.c18
2 files changed, 2 insertions, 29 deletions
diff --git a/mail/mail.c b/mail/mail.c
index 05a6d6c9e..521e875cf 100644
--- a/mail/mail.c
+++ b/mail/mail.c
@@ -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
diff --git a/sieve/sieve.c b/sieve/sieve.c
index 92872726c..3d5eff4ee 100644
--- a/sieve/sieve.c
+++ b/sieve/sieve.c
@@ -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);
-}

Return to:

Send suggestions and report system problems to the System administrator.