For anyone who has been trying the recent test releases (including
searching on attachment names), this patch needs to be applied.

--- >8 ---
commit c078c9f788c6edfc127f5aad43c6d94edc41c842
Author: Richard P. Curnow <[EMAIL PROTECTED]>
Date:   Fri Sep 29 22:35:22 2006 +0100

    Fix silly typo
    
    The previous code, on the 2nd indexing run onwards, was losing the table for
    the email bodies from all previous messages.

diff --git a/db.c b/db.c
index 4edfb1b..7d1c2b4 100755
--- a/db.c
+++ b/db.c
@@ -496,7 +496,7 @@ struct database *new_database_from_file(
   import_toktable(input->data, input->hash_key, result->n_msgs, &input->from, 
result->from);
   import_toktable(input->data, input->hash_key, result->n_msgs, 
&input->subject, result->subject);
   import_toktable(input->data, input->hash_key, result->n_msgs, &input->body, 
result->body);
-  import_toktable(input->data, input->hash_key, result->n_msgs, 
&input->attachment_name, result->body);
+  import_toktable(input->data, input->hash_key, result->n_msgs, 
&input->attachment_name, result->attachment_name);
   import_toktable2(input->data, input->hash_key, result->n_msgs, 
&input->msg_ids, result->msg_ids);
 
   close_db(input);
--- 8< ---

I'll be pushing this out to the public git repository very shortly.

-- 
Richard P. Curnow | Free software developer
Weston-super-Mare | 
United Kingdom    | http://www.rc0.org.uk/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users

Reply via email to