Commit 885c5863 885c5863cad30184428e7b0ac3ffb1da58e3f6dd by Sergey Poznyakoff

(mu_register_all_mbox_formats)

(mu_register_all_mailer_formats,mu_register_all_formats): New
macros.
1 parent d0f66bb2
...@@ -97,12 +97,38 @@ extern record_t file_record; ...@@ -97,12 +97,38 @@ extern record_t file_record;
97 extern record_t path_record; 97 extern record_t path_record;
98 /* Local MH, "mh:" */ 98 /* Local MH, "mh:" */
99 extern record_t mh_record; 99 extern record_t mh_record;
100 /* Maildir, "maildir:" */
101 extern record_t maildir_record;
100 102
101 /* SMTP mailer, "smtp://" */ 103 /* SMTP mailer, "smtp://" */
102 extern record_t smtp_record; 104 extern record_t smtp_record;
103 /* Sendmail, "sendmail:" */ 105 /* Sendmail, "sendmail:" */
104 extern record_t sendmail_record; 106 extern record_t sendmail_record;
105 107
108 #define mu_register_all_mbox_formats() do {\
109 list_t bookie = 0;\
110 registrar_get_list (&bookie);\
111 list_append (bookie, path_record);\
112 list_append (bookie, file_record);\
113 list_append (bookie, mbox_record);\
114 list_append (bookie, pop_record);\
115 list_append (bookie, imap_record);\
116 list_append (bookie, mh_record);\
117 list_append (bookie, maildir_record);\
118 } while (0)
119
120 #define mu_register_all_mailer_formats() do {\
121 list_t bookie = 0;\
122 registrar_get_list (&bookie);\
123 list_append (bookie, sendmail_record);\
124 list_append (bookie, smtp_record);\
125 } while (0)
126
127 #define mu_register_all_formats() do {\
128 mu_register_all_mbox_formats ();\
129 mu_register_all_mailer_formats ();\
130 } while (0)
131
106 #ifdef __cplusplus 132 #ifdef __cplusplus
107 } 133 }
108 #endif 134 #endif
......