summaryrefslogtreecommitdiffabout
path: root/libetpan/src/low-level/imap/mailimap_sender.h
Unidiff
Diffstat (limited to 'libetpan/src/low-level/imap/mailimap_sender.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libetpan/src/low-level/imap/mailimap_sender.h164
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
41extern "C" {
42#endif
43
44#include "mailimap_types.h"
45
46int 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
52int mailimap_authenticate_send(mailstream * fd,
53 const char * auth_type);
54
55int mailimap_authenticate_resp_send(mailstream * fd,
56 const char * base64);
57
58int mailimap_noop_send(mailstream * fd);
59
60int mailimap_logout_send(mailstream * fd);
61
62int mailimap_capability_send(mailstream * fd);
63
64int mailimap_check_send(mailstream * fd);
65
66int mailimap_close_send(mailstream * fd);
67
68int mailimap_expunge_send(mailstream * fd);
69
70int mailimap_copy_send(mailstream * fd,
71 struct mailimap_set * set,
72 const char * mb);
73
74int mailimap_uid_copy_send(mailstream * fd,
75 struct mailimap_set * set,
76 const char * mb);
77
78int mailimap_create_send(mailstream * fd,
79 const char * mb);
80
81
82int mailimap_delete_send(mailstream * fd, const char * mb);
83
84int mailimap_examine_send(mailstream * fd, const char * mb);
85
86int
87mailimap_fetch_send(mailstream * fd,
88 struct mailimap_set * set,
89 struct mailimap_fetch_type * fetch_type);
90
91int
92mailimap_uid_fetch_send(mailstream * fd,
93 struct mailimap_set * set,
94 struct mailimap_fetch_type * fetch_type);
95
96int mailimap_list_send(mailstream * fd,
97 const char * mb, const char * list_mb);
98
99int mailimap_login_send(mailstream * fd,
100 const char * userid, const char * password);
101
102int mailimap_lsub_send(mailstream * fd,
103 const char * mb, const char * list_mb);
104
105int mailimap_rename_send(mailstream * fd, const char * mb,
106 const char * new_name);
107
108int
109mailimap_search_send(mailstream * fd, const char * charset,
110 struct mailimap_search_key * key);
111
112int
113mailimap_uid_search_send(mailstream * fd, const char * charset,
114 struct mailimap_search_key * key);
115
116int
117mailimap_select_send(mailstream * fd, const char * mb);
118
119int
120mailimap_status_send(mailstream * fd, const char * mb,
121 struct mailimap_status_att_list * status_att_list);
122
123int
124mailimap_store_send(mailstream * fd,
125 struct mailimap_set * set,
126 struct mailimap_store_att_flags * store_att_flags);
127
128int
129mailimap_uid_store_send(mailstream * fd,
130 struct mailimap_set * set,
131 struct mailimap_store_att_flags * store_att_flags);
132
133int mailimap_subscribe_send(mailstream * fd, const char * mb);
134
135
136int mailimap_tag_send(mailstream * fd, const char * tag);
137
138int mailimap_unsubscribe_send(mailstream * fd,
139 const char * mb);
140
141int mailimap_crlf_send(mailstream * fd);
142
143int mailimap_space_send(mailstream * fd);
144
145int
146mailimap_literal_send(mailstream * fd, const char * literal,
147 size_t progr_rate,
148 progress_function * progr_fun);
149
150int
151mailimap_literal_count_send(mailstream * fd, uint32_t count);
152
153int
154mailimap_literal_data_send(mailstream * fd, const char * literal, uint32_t len,
155 size_t progr_rate,
156 progress_function * progr_fun);
157
158int mailimap_starttls_send(mailstream * fd);
159
160#ifdef __cplusplus
161}
162#endif
163
164#endif