Commit 865b0b80 865b0b80e25a9d72d9a4501e6de9fe1bb448a9e6 by Alain Magloire

mailboxi.c

gone.
1 parent a94d1cca
1 /* GNU mailutils - a suite of utilities for electronic mail
2 Copyright (C) 1999, 2000 Free Software Foundation, Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
17
18 #include <mailbox0.h>
19
20 int
21 mailbox_open (mailbox_t mbox, int flag)
22 {
23 return mbox->_open (mbox, flag);
24 }
25
26 int
27 mailbox_close (mailbox_t mbox)
28 {
29 return mbox->_close (mbox);
30 }
31
32
33 /* passwd */
34 int
35 mailbox_get_passwd (mailbox_t mbox, char *passwd, size_t len, size_t *n)
36 {
37 return mbox->_get_passwd (mbox, passwd, len, n);
38 }
39
40 int
41 mailbox_get_mpasswd (mailbox_t mbox, char **passwd, size_t *n)
42 {
43 return mbox->_get_mpasswd (mbox, passwd, n);
44 }
45
46 int
47 mailbox_set_passwd (mailbox_t mbox, const char *passwd,
48 size_t len)
49 {
50 return mbox->_set_passwd (mbox, passwd, len);
51 }
52
53
54 /* deleting */
55 int
56 mailbox_delete (mailbox_t mbox, size_t msgno)
57 {
58 return mbox->_delete (mbox, msgno);
59 }
60
61 int
62 mailbox_undelete (mailbox_t mbox, size_t msgno)
63 {
64 return mbox->_undelete (mbox, msgno);
65 }
66
67 int
68 mailbox_expunge (mailbox_t mbox)
69 {
70 return mbox->_expunge (mbox);
71 }
72
73 int
74 mailbox_is_deleted (mailbox_t mbox, size_t msgno)
75 {
76 return mbox->_is_deleted (mbox, msgno);
77 }
78
79
80 /* appending */
81 int
82 mailbox_new_msg (mailbox_t mbox, size_t *msgno)
83 {
84 return mbox->_new_msg (mbox, msgno);
85 }
86
87 int
88 mailbox_set_header (mailbox_t mbox, size_t msgno, const char *h,
89 size_t len, int replace)
90 {
91 return mbox->_set_header (mbox, msgno, h, len, replace);
92 }
93
94 int
95 mailbox_set_body (mailbox_t mbox, size_t msgno, const char *b,
96 size_t len, int replace)
97 {
98 return mbox->_set_body (mbox, msgno, b, len, replace);
99 }
100
101 int
102 mailbox_append (mailbox_t mbox, size_t msgno)
103 {
104 return mbox->_append (mbox, msgno);
105 }
106
107 int
108 mailbox_destroy_msg (mailbox_t mbox, size_t msgno)
109 {
110 return mbox->_destroy_msg (mbox, msgno);
111 }
112
113
114 /* reading */
115 int
116 mailbox_get_body (mailbox_t mbox, size_t msgno, off_t off, char *b,
117 size_t len, size_t *n)
118 {
119 return mbox->_get_body (mbox, msgno, off, b, len, n);
120 }
121
122 int
123 mailbox_get_mbody (mailbox_t mbox, size_t msgno, off_t off,
124 char **b, size_t *n)
125 {
126 return mbox->_get_mbody (mbox, msgno, off, b, n);
127 }
128
129 int
130 mailbox_get_header (mailbox_t mbox, size_t msgno, off_t off, char *h,
131 size_t len, size_t *n)
132 {
133 return mbox->_get_header (mbox, msgno, off, h, len, n);
134 }
135
136 int
137 mailbox_get_mheader (mailbox_t mbox, size_t msgno, off_t off,
138 char **h, size_t *n)
139 {
140 return mbox->_get_mheader (mbox, msgno, off, h, n);
141 }
142
143
144 /* locking */
145 int
146 mailbox_lock (mailbox_t mbox, int flag)
147 {
148 return mbox->_lock (mbox, flag);
149 }
150
151 int
152 mailbox_unlock (mailbox_t mbox)
153 {
154 return mbox->_unlock (mbox);
155 }
156
157
158 /* misc */
159 int
160 mailbox_scan (mailbox_t mbox, size_t *msgs)
161 {
162 return mbox->_scan (mbox, msgs);
163 }
164
165 int
166 mailbox_is_updated (mailbox_t mbox)
167 {
168 return mbox->_is_updated (mbox);
169 }
170
171 int
172 mailbox_get_timeout (mailbox_t mbox, size_t *timeout)
173 {
174 return mbox->_get_timeout (mbox, timeout);
175 }
176
177 int
178 mailbox_set_timeout (mailbox_t mbox, size_t timeout)
179 {
180 return mbox->_set_timeout (mbox, timeout);
181 }
182
183 int
184 mailbox_get_refresh (mailbox_t mbox, size_t *refresh)
185 {
186 return mbox->_get_refresh (mbox, refresh);
187 }
188
189 int
190 mailbox_set_refresh (mailbox_t mbox, size_t refresh)
191 {
192 return mbox->_set_refresh (mbox, refresh);
193 }
194
195 int
196 mailbox_set_notification (mailbox_t mbox,
197 int (*notif) __P ((mailbox_t, void *)))
198 {
199 return mbox->_set_notification (mbox, notif);
200 }