(main): Use mu_register_all_mbox_formats
Showing
3 changed files
with
5 additions
and
31 deletions
... | @@ -325,15 +325,7 @@ main(int argc, char **argv) | ... | @@ -325,15 +325,7 @@ main(int argc, char **argv) |
325 | mailbox_name = argv[0]; | 325 | mailbox_name = argv[0]; |
326 | 326 | ||
327 | /* register the formats. */ | 327 | /* register the formats. */ |
328 | { | 328 | mu_register_all_mbox_formats (); |
329 | list_t bookie; | ||
330 | registrar_get_list (&bookie); | ||
331 | list_append (bookie, mbox_record); | ||
332 | list_append (bookie, path_record); | ||
333 | list_append (bookie, mh_record); | ||
334 | list_append (bookie, pop_record); | ||
335 | list_append (bookie, imap_record); | ||
336 | } | ||
337 | 329 | ||
338 | /* Construct the mailbox_t, attach a notification and destroy */ | 330 | /* Construct the mailbox_t, attach a notification and destroy */ |
339 | { | 331 | { | ... | ... |
... | @@ -116,15 +116,7 @@ main(int argc, char **argv) | ... | @@ -116,15 +116,7 @@ main(int argc, char **argv) |
116 | } | 116 | } |
117 | 117 | ||
118 | /* Register the desire formats. */ | 118 | /* Register the desire formats. */ |
119 | { | 119 | mu_register_all_mbox_formats (); |
120 | list_t bookie; | ||
121 | registrar_get_list (&bookie); | ||
122 | list_append (bookie, mbox_record); | ||
123 | list_append (bookie, path_record); | ||
124 | list_append (bookie, mh_record); | ||
125 | list_append (bookie, pop_record); | ||
126 | list_append (bookie, imap_record); | ||
127 | } | ||
128 | 120 | ||
129 | if ((status = mailbox_create_default (&mbox, mailbox_name)) != 0) | 121 | if ((status = mailbox_create_default (&mbox, mailbox_name)) != 0) |
130 | { | 122 | { | ... | ... |
... | @@ -248,19 +248,9 @@ main (int argc, char **argv) | ... | @@ -248,19 +248,9 @@ main (int argc, char **argv) |
248 | 248 | ||
249 | /* Native Language Support */ | 249 | /* Native Language Support */ |
250 | mu_init_nls (); | 250 | mu_init_nls (); |
251 | /* Register the desired formats. */ | 251 | /* Register the desired mailbox formats. */ |
252 | { | 252 | mu_register_all_mbox_formats (); |
253 | list_t bookie; | 253 | |
254 | registrar_get_list (&bookie); | ||
255 | list_append (bookie, mbox_record); | ||
256 | list_append (bookie, path_record); | ||
257 | list_append (bookie, pop_record); | ||
258 | list_append (bookie, imap_record); | ||
259 | list_append (bookie, mh_record); | ||
260 | /* Possible supported mailers. */ | ||
261 | list_append (bookie, sendmail_record); | ||
262 | list_append (bookie, smtp_record); | ||
263 | } | ||
264 | /* argument parsing */ | 254 | /* argument parsing */ |
265 | 255 | ||
266 | mu_error_set_print (movemail_error_printer); | 256 | mu_error_set_print (movemail_error_printer); | ... | ... |
-
Please register or sign in to post a comment