doveadm-mail-fetch.c revision c57ba1788a6598993a9625bbf26a4fedca23815e
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainen/* Copyright (c) 2010-2013 Dovecot authors, see the included COPYING file */
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainenstatic int fetch_user(struct fetch_cmd_context *ctx)
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainen doveadm_print(ctx->ctx.cur_mail_user->username);
2767104d81e97a109f0aa9758792bfa1da325a97Timo Sirainenstatic int fetch_mailbox(struct fetch_cmd_context *ctx)
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainen if (mail_get_special(ctx->mail, MAIL_FETCH_MAILBOX_NAME, &value) < 0)
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainenstatic int fetch_mailbox_guid(struct fetch_cmd_context *ctx)
&metadata) < 0)
const char *value;
const unsigned char *data;
int ret = 0;
if (size == 0)
return ret;
unsigned int pos;
if (add_lf)
if (add_lf)
const unsigned char *data;
int ret = 0;
if (size == 0)
return ret;
const unsigned char *data;
int ret = 0;
if (size == 0)
return ret;
int ret = 0;
&block))
time_t t;
time_t t;
int tz;
char chr;
time_t t;
const char *value;
const char *value;
const char *value;
const char *value;
return &fetch_fields[i];
return NULL;
static void print_fetch_fields(void)
int ret = 0;
return ret;
int ret = 0;
&iter) < 0)
T_BEGIN {
} T_END;
return ret;
int ret = 0;
} T_END;
return ret;
const char *const args[])