Diffstat (limited to 'kmicromail/libetpan/imap/mailimap_keywords.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libetpan/imap/mailimap_keywords.h | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/kmicromail/libetpan/imap/mailimap_keywords.h b/kmicromail/libetpan/imap/mailimap_keywords.h new file mode 100644 index 0000000..a8443aa --- a/dev/null +++ b/kmicromail/libetpan/imap/mailimap_keywords.h | |||
@@ -0,0 +1,107 @@ | |||
1 | /* | ||
2 | * libEtPan! -- a mail stuff library | ||
3 | * | ||
4 | * Copyright (C) 2001, 2002 - DINH Viet Hoa | ||
5 | * All rights reserved. | ||
6 | * | ||
7 | * Redistribution and use in source and binary forms, with or without | ||
8 | * modification, are permitted provided that the following conditions | ||
9 | * are met: | ||
10 | * 1. Redistributions of source code must retain the above copyright | ||
11 | * notice, this list of conditions and the following disclaimer. | ||
12 | * 2. Redistributions in binary form must reproduce the above copyright | ||
13 | * notice, this list of conditions and the following disclaimer in the | ||
14 | * documentation and/or other materials provided with the distribution. | ||
15 | * 3. Neither the name of the libEtPan! project nor the names of its | ||
16 | * contributors may be used to endorse or promote products derived | ||
17 | * from this software without specific prior written permission. | ||
18 | * | ||
19 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | ||
20 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
21 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
22 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | ||
23 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
25 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
26 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
27 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
28 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
29 | * SUCH DAMAGE. | ||
30 | */ | ||
31 | |||
32 | /* | ||
33 | * $Id$ | ||
34 | */ | ||
35 | |||
36 | #ifndef MAILIMAP_COMMON_H | ||
37 | |||
38 | #define MAILIMAP_COMMON_H | ||
39 | |||
40 | #ifdef __cplusplus | ||
41 | extern "C" { | ||
42 | #endif | ||
43 | |||
44 | #include "mailstream.h" | ||
45 | |||
46 | |||
47 | /* tools */ | ||
48 | |||
49 | int mailimap_char_parse(mailstream * fd, MMAPString * buffer, | ||
50 | size_t * index, char token); | ||
51 | |||
52 | int mailimap_space_parse(mailstream * fd, MMAPString * buffer, | ||
53 | size_t * index); | ||
54 | |||
55 | /* tokens */ | ||
56 | |||
57 | int mailimap_token_case_insensitive_parse(mailstream * fd, | ||
58 | MMAPString * buffer, | ||
59 | size_t * index, | ||
60 | const char * token); | ||
61 | |||
62 | int mailimap_status_att_get_token_value(mailstream * fd, MMAPString * buffer, | ||
63 | size_t * index); | ||
64 | const char * mailimap_status_att_get_token_str(size_t index); | ||
65 | |||
66 | |||
67 | int mailimap_month_get_token_value(mailstream * fd, MMAPString * buffer, | ||
68 | size_t * index); | ||
69 | const char * mailimap_month_get_token_str(size_t index); | ||
70 | |||
71 | |||
72 | int mailimap_flag_get_token_value(mailstream * fd, MMAPString * buffer, | ||
73 | size_t * index); | ||
74 | |||
75 | const char * mailimap_flag_get_token_str(size_t index); | ||
76 | |||
77 | int mailimap_encoding_get_token_value(mailstream * fd, MMAPString * buffer, | ||
78 | size_t * index); | ||
79 | |||
80 | int mailimap_mbx_list_sflag_get_token_value(mailstream * fd, | ||
81 | MMAPString * buffer, | ||
82 | size_t * index); | ||
83 | |||
84 | int mailimap_media_basic_get_token_value(mailstream * fd, MMAPString * buffer, | ||
85 | size_t * index); | ||
86 | |||
87 | int mailimap_resp_cond_state_get_token_value(mailstream * fd, | ||
88 | MMAPString * buffer, | ||
89 | size_t * index); | ||
90 | |||
91 | int mailimap_resp_text_code_1_get_token_value(mailstream * fd, | ||
92 | MMAPString * buffer, | ||
93 | size_t * index); | ||
94 | |||
95 | int mailimap_resp_text_code_2_get_token_value(mailstream * fd, | ||
96 | MMAPString * buffer, | ||
97 | size_t * index); | ||
98 | |||
99 | int mailimap_section_msgtext_get_token_value(mailstream * fd, | ||
100 | MMAPString * buffer, | ||
101 | size_t * index); | ||
102 | |||
103 | #ifdef __cplusplus | ||
104 | } | ||
105 | #endif | ||
106 | |||
107 | #endif | ||