mail-cache-lookup.c revision 2454dfa32c93c20a8522c6ed42fe057baaac9f9a
343a568a3281a6a0a4c562407aef7b0dfc299b98minfrin/* Copyright (c) 2003-2017 Dovecot authors, see the included COPYING file */
#include "str.h"
#include "mail-cache-private.h"
const void *data;
int ret;
&data) < 0)
if (ret == 0) {
const void *data;
if (offset == 0)
i_unreached();
return offset;
int i, ret;
if (offset == 0)
return ret;
int ret;
if (ret <= 0) {
return FALSE;
return TRUE;
unsigned int field_idx;
unsigned int data_size;
int ret;
return ret;
int ret;
return ret;
unsigned int field)
const unsigned char *src;
unsigned char *dest;
int ret;
int ret;
if (ret <= 0)
return ret;
dest_buf);
return ret;
struct header_lookup_data {
const unsigned char *data;
struct header_lookup_line {
struct header_lookup_context {
void *data_dup;
if (lines[i] == 0)
lines_count = i;
if (data_size > 0) {
for (i = 0; i < lines_count; i++) {
int ret;
if (fields_count == 0)
for (i = 0; i < fields_count; i++)
for (i = 0; i < fields_count; i++) {
if (ret < 0)
for (i = 0; i <= max_field; i++) {
for (i = 0; i < count; i++) {
unsigned int fields_count)
int ret;
T_BEGIN {
&pool);
} T_END;
return ret;
if (offset != 0) {
return t_strdup_printf(
return t_strdup_printf(
if (offset != 0)
if (seq == 0) {
return t_strdup_printf(
return t_strdup_printf(