comparison src/lib-index/maildir/maildir-index.c @ 5:1b34ec11fff8 HEAD

Message data is parsed in blocks (no longer entirely mmap()ed). Several IOBuffer changes. All mixed signed/unsigned comparisions were fixed so code can now be compiled with gcc's -W flag. mbox support is broken currently, and there's most likely several other problems too.
author Timo Sirainen <tss@iki.fi>
date Thu, 22 Aug 2002 01:10:20 +0300
parents 3b1985cbc908
children 352c2567ba11
comparison
equal deleted inserted replaced
4:744588369401 5:1b34ec11fff8
19 if (info != NULL && strrchr(fname, '/') > info) 19 if (info != NULL && strrchr(fname, '/') > info)
20 info = NULL; 20 info = NULL;
21 21
22 oldflags = ""; 22 oldflags = "";
23 if (info != NULL) { 23 if (info != NULL) {
24 fname = t_strndup(fname, (unsigned int) (info-fname)); 24 fname = t_strdup_until(fname, info);
25 if (info[1] == '2' && info[2] == ',') 25 if (info[1] == '2' && info[2] == ',')
26 oldflags = info+3; 26 oldflags = info+3;
27 } 27 }
28 28
29 /* insert the new flags between old flags. flags must be sorted by 29 /* insert the new flags between old flags. flags must be sorted by
176 mail_index_append, 176 mail_index_append,
177 mail_index_update_begin, 177 mail_index_update_begin,
178 mail_index_update_end, 178 mail_index_update_end,
179 mail_index_update_field, 179 mail_index_update_field,
180 mail_index_get_last_error, 180 mail_index_get_last_error,
181 mail_index_is_inconsistency_error 181 mail_index_is_inconsistency_error,
182
183 MAIL_INDEX_PRIVATE_FILL
182 }; 184 };