mu: protect against overly long keys
We got some errors when some of the key values exceeded the Xapian maximum; in particular the message-id. So make all the key-methods check, and truncate the message-id if necessary.
This commit is contained in:
@ -30,6 +30,8 @@ G_BEGIN_DECLS
|
||||
struct _MuStore;
|
||||
typedef struct _MuStore MuStore;
|
||||
|
||||
/* http://article.gmane.org/gmane.comp.search.xapian.general/3656 */
|
||||
#define MU_STORE_MAX_TERM_LENGTH (240)
|
||||
|
||||
/**
|
||||
* create a new writable Xapian store, a place to store documents
|
||||
|
||||
Reference in New Issue
Block a user