diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-01-08 16:30:29 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-01-08 16:30:29 +0000 |
commit | 6b4db5de2ba41425ad52ed6f17f59d7e6253760c (patch) | |
tree | 0147eb1ae8e3ffa6bb61ded09d5261d9265b8e54 | |
parent | 45a2791f0bb68f1af73056fdc7ab07a39c2b9baa (diff) | |
download | mailutils-6b4db5de2ba41425ad52ed6f17f59d7e6253760c.tar.gz mailutils-6b4db5de2ba41425ad52ed6f17f59d7e6253760c.tar.bz2 |
(main): Use mu_register_all_formats
-rw-r--r-- | mail/mail.c | 13 | ||||
-rw-r--r-- | sieve/sieve.c | 18 |
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); -} |