18 static int nntp_is_magic (const char* path) {
19 url_scheme_t s = url_check_scheme (NONULL (path));
20 return ((s == U_NNTP || s == U_NNTPS) ? M_NNTP : -1);
23 /* called by nntp_init(); don't call elsewhere */
24 mx_t* nntp_reg_mx (void) {
25 mx_t* fmt = safe_calloc (1, sizeof (mx_t));
27 /* make up mx_t record... */
29 fmt->mx_is_magic = nntp_is_magic;
30 fmt->mx_open_mailbox = nntp_open_mailbox;