diff options
| author | Sam Varshavchik | 2013-08-26 19:41:57 -0400 | 
|---|---|---|
| committer | Sam Varshavchik | 2013-08-28 21:07:40 -0400 | 
| commit | e0a0a6eba9f31aea09624b3ea21fb75107c96780 (patch) | |
| tree | 4abeeb6b18ddbde710c292c3fc6a170f53492797 /maildrop/search.h | |
| parent | 88fcede4132f42e2297d11832cf6c7e047c71ce8 (diff) | |
| download | courier-libs-e0a0a6eba9f31aea09624b3ea21fb75107c96780.tar.bz2 | |
maildrop: handle MIME encoding when searching messages.
Use rfc2045_decodmsgtoutf8() to decode entire message into UTF-8, before
searching it.
Diffstat (limited to 'maildrop/search.h')
| -rw-r--r-- | maildrop/search.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/maildrop/search.h b/maildrop/search.h index 2ba726d..5f97125 100644 --- a/maildrop/search.h +++ b/maildrop/search.h @@ -72,5 +72,10 @@ private:  	int findinline(Message &, const char *, Buffer *);  	int findinsection(Message &, const char *, Buffer *);  	void init_match_vars(const char *, int, int *, Buffer *); + +	Buffer search_expr; +	Buffer *foreachp_arg; +	static int search_cb(const char *ptr, size_t cnt, void *arg); +	int search_cb(const char *ptr, size_t cnt);  } ;  #endif | 
