Diffstat (limited to 'libetpan/src/low-level/imap/mailimap_sender.h') (more/less context) (show whitespace changes)
-rw-r--r-- | libetpan/src/low-level/imap/mailimap_sender.h | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/libetpan/src/low-level/imap/mailimap_sender.h b/libetpan/src/low-level/imap/mailimap_sender.h new file mode 100644 index 0000000..34661f5 --- a/dev/null +++ b/libetpan/src/low-level/imap/mailimap_sender.h | |||
@@ -0,0 +1,164 @@ | |||
1 | /* | ||
2 | * libEtPan! -- a mail stuff library | ||
3 | * | ||
4 | * Copyright (C) 2001, 2005 - 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 AUTHORS 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 AUTHORS 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_SENDER_H | ||
37 | |||
38 | #define MAILIMAP_SENDER_H | ||
39 | |||
40 | #ifdef __cplusplus | ||
41 | extern "C" { | ||
42 | #endif | ||
43 | |||
44 | #include "mailimap_types.h" | ||
45 | |||
46 | int mailimap_append_send(mailstream * fd, | ||
47 | const char * mailbox, | ||
48 | struct mailimap_flag_list * flag_list, | ||
49 | struct mailimap_date_time * date_time, | ||
50 | size_t literal_size); | ||
51 | |||
52 | int mailimap_authenticate_send(mailstream * fd, | ||
53 | const char * auth_type); | ||
54 | |||
55 | int mailimap_authenticate_resp_send(mailstream * fd, | ||
56 | const char * base64); | ||
57 | |||
58 | int mailimap_noop_send(mailstream * fd); | ||
59 | |||
60 | int mailimap_logout_send(mailstream * fd); | ||
61 | |||
62 | int mailimap_capability_send(mailstream * fd); | ||
63 | |||
64 | int mailimap_check_send(mailstream * fd); | ||
65 | |||
66 | int mailimap_close_send(mailstream * fd); | ||
67 | |||
68 | int mailimap_expunge_send(mailstream * fd); | ||
69 | |||
70 | int mailimap_copy_send(mailstream * fd, | ||
71 | struct mailimap_set * set, | ||
72 | const char * mb); | ||
73 | |||
74 | int mailimap_uid_copy_send(mailstream * fd, | ||
75 | struct mailimap_set * set, | ||
76 | const char * mb); | ||
77 | |||
78 | int mailimap_create_send(mailstream * fd, | ||
79 | const char * mb); | ||
80 | |||
81 | |||
82 | int mailimap_delete_send(mailstream * fd, const char * mb); | ||
83 | |||
84 | int mailimap_examine_send(mailstream * fd, const char * mb); | ||
85 | |||
86 | int | ||
87 | mailimap_fetch_send(mailstream * fd, | ||
88 | struct mailimap_set * set, | ||
89 | struct mailimap_fetch_type * fetch_type); | ||
90 | |||
91 | int | ||
92 | mailimap_uid_fetch_send(mailstream * fd, | ||
93 | struct mailimap_set * set, | ||
94 | struct mailimap_fetch_type * fetch_type); | ||
95 | |||
96 | int mailimap_list_send(mailstream * fd, | ||
97 | const char * mb, const char * list_mb); | ||
98 | |||
99 | int mailimap_login_send(mailstream * fd, | ||
100 | const char * userid, const char * password); | ||
101 | |||
102 | int mailimap_lsub_send(mailstream * fd, | ||
103 | const char * mb, const char * list_mb); | ||
104 | |||
105 | int mailimap_rename_send(mailstream * fd, const char * mb, | ||
106 | const char * new_name); | ||
107 | |||
108 | int | ||
109 | mailimap_search_send(mailstream * fd, const char * charset, | ||
110 | struct mailimap_search_key * key); | ||
111 | |||
112 | int | ||
113 | mailimap_uid_search_send(mailstream * fd, const char * charset, | ||
114 | struct mailimap_search_key * key); | ||
115 | |||
116 | int | ||
117 | mailimap_select_send(mailstream * fd, const char * mb); | ||
118 | |||
119 | int | ||
120 | mailimap_status_send(mailstream * fd, const char * mb, | ||
121 | struct mailimap_status_att_list * status_att_list); | ||
122 | |||
123 | int | ||
124 | mailimap_store_send(mailstream * fd, | ||
125 | struct mailimap_set * set, | ||
126 | struct mailimap_store_att_flags * store_att_flags); | ||
127 | |||
128 | int | ||
129 | mailimap_uid_store_send(mailstream * fd, | ||
130 | struct mailimap_set * set, | ||
131 | struct mailimap_store_att_flags * store_att_flags); | ||
132 | |||
133 | int mailimap_subscribe_send(mailstream * fd, const char * mb); | ||
134 | |||
135 | |||
136 | int mailimap_tag_send(mailstream * fd, const char * tag); | ||
137 | |||
138 | int mailimap_unsubscribe_send(mailstream * fd, | ||
139 | const char * mb); | ||
140 | |||
141 | int mailimap_crlf_send(mailstream * fd); | ||
142 | |||
143 | int mailimap_space_send(mailstream * fd); | ||
144 | |||
145 | int | ||
146 | mailimap_literal_send(mailstream * fd, const char * literal, | ||
147 | size_t progr_rate, | ||
148 | progress_function * progr_fun); | ||
149 | |||
150 | int | ||
151 | mailimap_literal_count_send(mailstream * fd, uint32_t count); | ||
152 | |||
153 | int | ||
154 | mailimap_literal_data_send(mailstream * fd, const char * literal, uint32_t len, | ||
155 | size_t progr_rate, | ||
156 | progress_function * progr_fun); | ||
157 | |||
158 | int mailimap_starttls_send(mailstream * fd); | ||
159 | |||
160 | #ifdef __cplusplus | ||
161 | } | ||
162 | #endif | ||
163 | |||
164 | #endif | ||