2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-8 Michael R. Elkins <me@mutt.org>
4 * Copyright (C) 2000-3 Brendan Cully <brendan@kublai.com>
6 * This file is part of mutt-ng, see http://www.muttng.org/.
7 * It's licensed under the GNU General Public License,
8 * please see the file GPL in the top level source directory.
14 #include <lib-mx/mx.h>
15 #include <lib-ui/browser.h>
19 extern mx_t const imap_mx;
21 /* -- data structures -- */
28 int imap_check_mailbox (CONTEXT * ctx, int *index_hint, int force);
29 int imap_delete_mailbox (CONTEXT * idata, IMAP_MBOX mx);
30 int imap_open_mailbox_append (CONTEXT * ctx);
31 int imap_sync_mailbox (CONTEXT * ctx, int expunge, int *index_hint);
32 int imap_mailbox_check (char *path, int new);
33 int imap_search (CONTEXT* ctx, const pattern_t* pat);
34 int imap_subscribe (char *path, int subscribe);
35 int imap_complete (char *dest, size_t dlen, char *path);
37 void imap_allow_reopen (CONTEXT * ctx);
38 void imap_disallow_reopen (CONTEXT * ctx);
41 int imap_browse (char *path, struct browser_state *state);
42 int imap_mailbox_create (const char *folder);
43 int imap_mailbox_rename (const char *mailbox);
46 int imap_copy_messages (CONTEXT * ctx, HEADER * h, char *dest, int delete);
49 void imap_logout_all (void);
52 int imap_parse_path (const char *path, IMAP_MBOX * mx);
53 void imap_pretty_mailbox (char *path);
55 int imap_wait_keepalive (pid_t pid);
56 void imap_keepalive (void);