/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "buffer.h"
#include "istream.h"
#include "str.h"
#include "str-find.h"
#include "rfc822-parser.h"
#include "message-decoder.h"
#include "message-parser.h"
#include "message-search.h"
struct message_search_context {
};
struct message_search_context *
enum message_search_flags flags)
{
return ctx;
}
{
}
struct message_header_line *hdr)
{
}
struct message_header_line *hdr)
{
return;
}
T_BEGIN {
} T_END;
}
}
const struct message_header_line *hdr)
{
hdr->full_value_len) ||
(!hdr->no_newline &&
}
struct message_block *block)
{
return TRUE;
} else {
return TRUE;
}
return FALSE;
}
struct message_block *raw_block)
{
}
struct message_block *raw_block,
struct message_block *decoded_block_r)
{
/* part changes. we must change this before looking at
content type */
/* we're returning to a multipart message. */
}
}
/* we want to search only message bodies, but
but decoder needs some headers so that it can
decode the body properly. */
return FALSE;
"Content-Transfer-Encoding") != 0)
return FALSE;
}
} else {
/* body */
if (!ctx->content_type_text)
return FALSE;
}
return FALSE;
/* Content-* header */
return FALSE;
}
}
struct message_block *block)
{
/* part changes */
}
}
{
}
static int
const char **error_r)
{
int ret;
input, hdr_parser_flags, 0);
} else {
input, hdr_parser_flags, 0);
}
&raw_block)) > 0) {
ret = 1;
break;
}
}
/* normal exit */
ret = 0;
}
/* broken parts */
ret = -1;
}
return ret;
}
const char **error_r)
{
char *error;
int ret;
T_BEGIN {
} T_END;
return ret;
}