aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-text-index.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-29 20:04:34 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-29 20:04:34 +0800
commit6b132fe48a5fe75643cbff31b26f3d78e66da796 (patch)
tree9bf4acd8ef5b7ce03e601bbc749a8f3ceb23a40d /camel/camel-text-index.c
parent54a484f860ece03f6488af5e18be539ca34f4a69 (diff)
downloadgsoc2013-evolution-6b132fe48a5fe75643cbff31b26f3d78e66da796.tar
gsoc2013-evolution-6b132fe48a5fe75643cbff31b26f3d78e66da796.tar.gz
gsoc2013-evolution-6b132fe48a5fe75643cbff31b26f3d78e66da796.tar.bz2
gsoc2013-evolution-6b132fe48a5fe75643cbff31b26f3d78e66da796.tar.lz
gsoc2013-evolution-6b132fe48a5fe75643cbff31b26f3d78e66da796.tar.xz
gsoc2013-evolution-6b132fe48a5fe75643cbff31b26f3d78e66da796.tar.zst
gsoc2013-evolution-6b132fe48a5fe75643cbff31b26f3d78e66da796.zip
Change the case sensitive search of subject to expect case insensitive
2002-08-29 Not Zed <NotZed@Ximian.com> * tests/folder/test3.c: Change the case sensitive search of subject to expect case insensitive results, as the behaviour has changed. (main): Made the search content before sync nonfatal. its something that needs to be fixed but not practical concern in evolution. * camel-block-file.c (block_file_validate_root): Only spit out the invalid root warnings if the file isn't empty. * camel-text-index.c (text_index_compress_nosync): Swap the path as well when we compress. * camel-mime-parser.c (folder_scan_content): Treat the end of file as a boundary if we're scanning From lines, and drop the last \n. (folder_scan_init_with_fd): Dont pre-read from the fd, and init eof. (folder_scan_init_with_stream): Similar. (folder_read): Handle eof, and set eof on 0 read. (folder_seek): Dont pre-read after a seek, and reset eof flag. (camel_mime_parser_init_with_fd): Fix doco, no pre-read occurs anymore. (camel_mime_parser_init_with_stream): Same. * providers/local/camel-mbox-summary.c (camel_mbox_summary_sync_mbox): Add a \n to end of content of each message, not at start. * providers/local/camel-mbox-folder.c (mbox_append_message): Instead of appending "\nFrom " to a mailbox, start with "From ", and append a \n after the message always. For better mutt/elm compatability. Also, unlock after we've stat'd. (mbox_append_message): Set the message's from_pos exactly as the mbox size. svn path=/trunk/; revision=17921
Diffstat (limited to 'camel/camel-text-index.c')
-rw-r--r--camel/camel-text-index.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-text-index.c b/camel/camel-text-index.c
index 046c5a98de..3c490804fc 100644
--- a/camel/camel-text-index.c
+++ b/camel/camel-text-index.c
@@ -491,12 +491,14 @@ text_index_compress_nosync(CamelIndex *idx)
#define myswap(a, b) { void *tmp = a; a = b; b = tmp; }
/* Poke the private data across to the new object */
/* And change the fd's over, etc? */
+ /* Yes: This is a hack */
myswap(newp->blocks, oldp->blocks);
myswap(newp->links, oldp->links);
myswap(newp->word_index, oldp->word_index);
myswap(newp->word_hash, oldp->word_hash);
myswap(newp->name_index, oldp->name_index);
myswap(newp->name_hash, oldp->name_hash);
+ myswap(((CamelIndex *)newidx)->path, ((CamelIndex *)idx)->path);
#undef myswap
ret = 0;