dovecot-2.2: doveadm fetch: Added "storageid" field.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 30 15:51:40 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/2ceca0becf8e
changeset: 19259:2ceca0becf8e
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 30 18:50:09 2015 +0300
description:
doveadm fetch: Added "storageid" field.
diffstat:
src/doveadm/doveadm-mail-fetch.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r b631f67f56d3 -r 2ceca0becf8e src/doveadm/doveadm-mail-fetch.c
--- a/src/doveadm/doveadm-mail-fetch.c Wed Sep 30 18:49:39 2015 +0300
+++ b/src/doveadm/doveadm-mail-fetch.c Wed Sep 30 18:50:09 2015 +0300
@@ -386,6 +386,16 @@
return 0;
}
+static int fetch_storageid(struct fetch_cmd_context *ctx)
+{
+ const char *value;
+
+ if (mail_get_special(ctx->mail, MAIL_FETCH_STORAGE_ID, &value) < 0)
+ return -1;
+ doveadm_print(value);
+ return 0;
+}
+
static const struct fetch_field fetch_fields[] = {
{ "user", 0, fetch_user },
{ "mailbox", 0, fetch_mailbox },
@@ -412,7 +422,8 @@
{ "imap.bodystructure", MAIL_FETCH_IMAP_BODYSTRUCTURE, fetch_imap_bodystructure },
{ "pop3.uidl", MAIL_FETCH_UIDL_BACKEND, fetch_pop3_uidl },
{ "pop3.order", MAIL_FETCH_POP3_ORDER, fetch_pop3_order },
- { "refcount", MAIL_FETCH_REFCOUNT, fetch_refcount }
+ { "refcount", MAIL_FETCH_REFCOUNT, fetch_refcount },
+ { "storageid", MAIL_FETCH_STORAGE_ID, fetch_storageid }
};
static const struct fetch_field *fetch_field_find(const char *name)
More information about the dovecot-cvs
mailing list