Mercurial > dovecot > core-2.2
changeset 15701:61aaf4102761
doveadm fetch: Added "modseq" field.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 31 Jan 2013 19:45:50 +0200 |
parents | 067179cbabc2 |
children | 85e464d088da |
files | src/doveadm/doveadm-mail-fetch.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/doveadm-mail-fetch.c Thu Jan 31 19:45:33 2013 +0200 +++ b/src/doveadm/doveadm-mail-fetch.c Thu Jan 31 19:45:50 2013 +0200 @@ -101,6 +101,12 @@ return 0; } +static int fetch_modseq(struct fetch_cmd_context *ctx) +{ + doveadm_print_num(mail_get_modseq(ctx->mail)); + return 0; +} + static int fetch_hdr(struct fetch_cmd_context *ctx) { struct istream *input; @@ -404,6 +410,7 @@ { "uid", 0, fetch_uid }, { "guid", 0, fetch_guid }, { "flags", MAIL_FETCH_FLAGS, fetch_flags }, + { "modseq", 0, fetch_modseq }, { "hdr", MAIL_FETCH_STREAM_HEADER, fetch_hdr }, { "body", MAIL_FETCH_STREAM_BODY, fetch_body }, { "text", MAIL_FETCH_STREAM_HEADER |