summary file read/write routines.
[platform/upstream/evolution-data-server.git] / camel / providers / mbox / camel-mbox-utils.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /* Various utilities for the mbox provider */
3
4 /* 
5  * Authors : 
6  *   Bertrand Guiheneuf <bertrand@helixcode.com>
7  *
8  * Copyright (C) 1999 Helix Code.
9  *
10  * This program is free software; you can redistribute it and/or 
11  * modify it under the terms of the GNU General Public License as 
12  * published by the Free Software Foundation; either version 2 of the
13  * License, or (at your option) any later version.
14  *
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 General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
23  * USA
24  */
25
26
27 #ifndef CAMEL_MBOX_UTILS_H
28 #define CAMEL_MBOX_UTILS_H 1
29
30
31 #ifdef __cplusplus
32 extern "C" {
33 #pragma }
34 #endif /* __cplusplus }*/
35
36
37 #include "camel-exception.h"
38
39 void 
40 camel_mbox_xev_parse_header_content (gchar header_content[6], 
41                                      guint32 *uid, 
42                                      guchar *status);
43
44 void 
45 camel_mbox_xev_write_header_content (gchar header_content[6], 
46                                      guint32 uid, 
47                                      guchar status);
48
49 glong
50 camel_mbox_write_xev (gchar *mbox_file_name,
51                       GArray *summary_information, 
52                       glong last_uid, 
53                       CamelException *ex);
54
55 GArray *
56 parsed_information_to_mbox_summary (GArray *parsed_information);
57
58 #ifdef __cplusplus
59 }
60 #endif /* __cplusplus */
61
62 #endif /* CAMEL_MBOX_UTILS_H */