2 * Copyright (C) 1996-8 Michael R. Elkins <me@mutt.org>
3 * Copyright (C) 2000-7 Brendan Cully <brendan@kublai.com>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27 /* -- data structures -- */
35 int imap_access (const char*, int);
36 int imap_check_mailbox (CONTEXT *ctx, int *index_hint, int force);
37 int imap_delete_mailbox (CONTEXT* idata, IMAP_MBOX mx);
38 int imap_open_mailbox (CONTEXT *ctx);
39 int imap_open_mailbox_append (CONTEXT *ctx);
40 int imap_sync_mailbox (CONTEXT *ctx, int expunge, int *index_hint);
41 int imap_close_mailbox (CONTEXT *ctx);
42 int imap_buffy_check (int force);
43 int imap_status (char *path, int queue);
44 int imap_search (CONTEXT* ctx, const pattern_t* pat);
45 int imap_subscribe (char *path, int subscribe);
46 int imap_complete (char* dest, size_t dlen, char* path);
48 void imap_allow_reopen (CONTEXT *ctx);
49 void imap_disallow_reopen (CONTEXT *ctx);
52 int imap_browse (char* path, struct browser_state* state);
53 int imap_mailbox_state (const char* path, struct mailbox_state* state);
54 int imap_mailbox_create (const char* folder);
55 int imap_mailbox_rename (const char* mailbox);
58 int imap_append_message (CONTEXT* ctx, MESSAGE* msg);
59 int imap_copy_messages (CONTEXT* ctx, HEADER* h, char* dest, int delete);
60 int imap_fetch_message (MESSAGE* msg, CONTEXT* ctx, int msgno);
63 void imap_logout_all (void);
66 int imap_expand_path (char* path, size_t len);
67 int imap_parse_path (const char* path, IMAP_MBOX* mx);
68 void imap_pretty_mailbox (char* path);
70 int imap_wait_keepalive (pid_t pid);
71 void imap_keepalive (void);
73 int imap_account_match (const ACCOUNT* a1, const ACCOUNT* a2);