2 * This file is part of mutt-ng, see http://www.muttng.org/.
3 * It's licensed under the GNU General Public License,
4 * please see the file GPL in the top level source directory.
21 static int pop_is_magic (const char* path) {
22 url_scheme_t s = url_check_scheme (NONULL (path));
23 return ((s == U_POP || s == U_POPS) ? M_POP : -1);
26 static int acl_check_pop (CONTEXT* ctx, int bit) {
28 case ACL_INSERT: /* editing messages */
29 case ACL_WRITE: /* change importance */
31 case ACL_DELETE: /* (un)deletion */
32 case ACL_SEEN: /* mark as read */
39 mx_t* pop_reg_mx (void) {
40 mx_t* fmt = safe_calloc (1, sizeof (mx_t));
42 /* make up mx_t record... */
44 fmt->mx_is_magic = pop_is_magic;
45 fmt->mx_open_mailbox = pop_open_mailbox;
46 fmt->mx_acl_check = acl_check_pop;