author | zautrix <zautrix> | 2004-09-01 10:23:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-01 10:23:29 (UTC) |
commit | 6cefbdc9c8f3f3001373f10715361e2740c45395 (patch) (unidiff) | |
tree | cb2c36f57620e698913c27ca4ebe59e4a7c9d46e /kmicromail/libetpan/mbox/mailmbox_types.c | |
parent | b9257cb225cd29bab5d96fcdaf557926603ee587 (diff) | |
download | kdepimpi-6cefbdc9c8f3f3001373f10715361e2740c45395.zip kdepimpi-6cefbdc9c8f3f3001373f10715361e2740c45395.tar.gz kdepimpi-6cefbdc9c8f3f3001373f10715361e2740c45395.tar.bz2 |
Mail fixes and libetpan updated
Diffstat (limited to 'kmicromail/libetpan/mbox/mailmbox_types.c') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libetpan/mbox/mailmbox_types.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kmicromail/libetpan/mbox/mailmbox_types.c b/kmicromail/libetpan/mbox/mailmbox_types.c index 1986182..4e3e521 100644 --- a/kmicromail/libetpan/mbox/mailmbox_types.c +++ b/kmicromail/libetpan/mbox/mailmbox_types.c | |||
@@ -157,49 +157,50 @@ mailmbox_msg_info_new(size_t msg_start, size_t msg_start_len, | |||
157 | info->msg_padding = msg_padding; | 157 | info->msg_padding = msg_padding; |
158 | 158 | ||
159 | return info; | 159 | return info; |
160 | } | 160 | } |
161 | 161 | ||
162 | void mailmbox_msg_info_free(struct mailmbox_msg_info * info) | 162 | void mailmbox_msg_info_free(struct mailmbox_msg_info * info) |
163 | { | 163 | { |
164 | free(info); | 164 | free(info); |
165 | } | 165 | } |
166 | 166 | ||
167 | 167 | ||
168 | /* append info */ | 168 | /* append info */ |
169 | 169 | ||
170 | struct mailmbox_append_info * | 170 | struct mailmbox_append_info * |
171 | mailmbox_append_info_new(const char * ai_message, size_t ai_size) | 171 | mailmbox_append_info_new(const char * ai_message, size_t ai_size) |
172 | { | 172 | { |
173 | struct mailmbox_append_info * info; | 173 | struct mailmbox_append_info * info; |
174 | 174 | ||
175 | info = malloc(sizeof(* info)); | 175 | info = malloc(sizeof(* info)); |
176 | if (info == NULL) | 176 | if (info == NULL) |
177 | return NULL; | 177 | return NULL; |
178 | 178 | ||
179 | info->ai_message = ai_message; | 179 | info->ai_message = ai_message; |
180 | info->ai_size = ai_size; | 180 | info->ai_size = ai_size; |
181 | 181 | info->ai_uid = 0; | |
182 | |||
182 | return info; | 183 | return info; |
183 | } | 184 | } |
184 | 185 | ||
185 | void mailmbox_append_info_free(struct mailmbox_append_info * info) | 186 | void mailmbox_append_info_free(struct mailmbox_append_info * info) |
186 | { | 187 | { |
187 | free(info); | 188 | free(info); |
188 | } | 189 | } |
189 | 190 | ||
190 | struct mailmbox_folder * mailmbox_folder_new(const char * mb_filename) | 191 | struct mailmbox_folder * mailmbox_folder_new(const char * mb_filename) |
191 | { | 192 | { |
192 | struct mailmbox_folder * folder; | 193 | struct mailmbox_folder * folder; |
193 | 194 | ||
194 | folder = malloc(sizeof(* folder)); | 195 | folder = malloc(sizeof(* folder)); |
195 | if (folder == NULL) | 196 | if (folder == NULL) |
196 | goto err; | 197 | goto err; |
197 | 198 | ||
198 | strncpy(folder->mb_filename, mb_filename, PATH_MAX); | 199 | strncpy(folder->mb_filename, mb_filename, PATH_MAX); |
199 | 200 | ||
200 | folder->mb_mtime = (time_t) -1; | 201 | folder->mb_mtime = (time_t) -1; |
201 | 202 | ||
202 | folder->mb_fd = -1; | 203 | folder->mb_fd = -1; |
203 | folder->mb_read_only = TRUE; | 204 | folder->mb_read_only = TRUE; |
204 | folder->mb_no_uid = TRUE; | 205 | folder->mb_no_uid = TRUE; |
205 | 206 | ||