1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* camel-imap-command.h: IMAP command sending/parsing routines */
6 * Dan Winship <danw@ximian.com>
7 * Jeffrey Stedfast <fejj@ximian.com>
9 * Copyright (C) 2000, 2001 Ximian, Inc.
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of version 2 of the GNU Lesser General Public
13 * License as published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
27 #ifndef CAMEL_IMAP_COMMAND_H
28 #define CAMEL_IMAP_COMMAND_H 1
31 #include "camel-imap-types.h"
36 CAMEL_IMAP_RESPONSE_ERROR,
37 CAMEL_IMAP_RESPONSE_CONTINUATION,
38 CAMEL_IMAP_RESPONSE_UNTAGGED,
39 CAMEL_IMAP_RESPONSE_TAGGED
40 } CamelImapResponseType;
42 struct _CamelImapResponse {
48 CamelImapResponse *camel_imap_command (CamelImapStore *store,
51 const char *fmt, ...);
52 CamelImapResponse *camel_imap_command_continuation (CamelImapStore *store,
57 void camel_imap_response_free (CamelImapStore *store,
58 CamelImapResponse *response);
59 void camel_imap_response_free_without_processing (CamelImapStore *store,
60 CamelImapResponse *response);
61 char *camel_imap_response_extract (CamelImapStore *store,
62 CamelImapResponse *response,
65 char *camel_imap_response_extract_continuation (CamelImapStore *store,
66 CamelImapResponse *response,
69 gboolean camel_imap_command_start (CamelImapStore *store,
72 const char *fmt, ...);
73 CamelImapResponseType camel_imap_command_response (CamelImapStore *store,
79 #endif /* CAMEL_IMAP_COMMAND_H */