~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib-mail/message-search.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
enum message_search_flags {
9
9
        /* Skip the main header and all the MIME headers. */
10
 
        MESSAGE_SEARCH_FLAG_SKIP_HEADERS        = 0x01,
11
 
        /* Search with decomposed titlecase (instead of exact case matching).
12
 
           The search key must be given with dtcase also. */
13
 
        MESSAGE_SEARCH_FLAG_DTCASE              = 0x02
 
10
        MESSAGE_SEARCH_FLAG_SKIP_HEADERS        = 0x01
14
11
};
15
12
 
16
13
/* The key must be given in UTF-8 charset */
17
14
struct message_search_context *
18
 
message_search_init(const char *key_utf8,
 
15
message_search_init(const char *normalized_key_utf8,
 
16
                    normalizer_func_t *normalizer,
19
17
                    enum message_search_flags flags);
20
18
void message_search_deinit(struct message_search_context **ctx);
21
19
 
29
27
/* Search a full message. Returns 1 if match was found, 0 if not,
30
28
   -1 if error (if stream_error == 0, the parts contained broken data) */
31
29
int message_search_msg(struct message_search_context *ctx,
32
 
                       struct istream *input, struct message_part *parts);
 
30
                       struct istream *input, struct message_part *parts)
 
31
        ATTR_NULL(3);
33
32
 
34
33
#endif