[Dovecot] Japanese Search

Kazuo Moriwaka moriwaka at valinux.co.jp
Mon Dec 20 12:00:41 EET 2004


Hello, 

From: Kazuo Moriwaka <moriwaka at valinux.co.jp>
Subject: Re: [Dovecot] Japanese Search
Date: Mon, 20 Dec 2004 16:08:54 +0900 (JST)

> But body of messages can't. I'll check it out.

I found a missing of NULL value checking while this work.
hdr_search_ctx can be NULL when key is not valid.
I made a patch for it.

best regards,
-- 
Kazuo Moriwaka 
moriwaka at valinux.co.jp
-------------- next part --------------
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-body-search.c,v
retrieving revision 1.20
diff -c -r1.20 message-body-search.c
*** message-body-search.c	7 Nov 2004 15:21:29 -0000	1.20
--- message-body-search.c	20 Dec 2004 09:46:46 -0000
***************
*** 120,126 ****
  		if (hdr->eoh)
  			continue;
  
! 		if (!ctx->ignore_header) {
  			if (message_header_search(hdr->value, hdr->value_len,
  						  hdr_search_ctx)) {
  				found = TRUE;
--- 120,126 ----
  		if (hdr->eoh)
  			continue;
  
! 		if (!ctx->ignore_header && hdr_search_ctx) {
  			if (message_header_search(hdr->value, hdr->value_len,
  						  hdr_search_ctx)) {
  				found = TRUE;


More information about the dovecot mailing list