dovecot-2.2: doveadm fetch: Added "modseq" field.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jan 31 19:45:57 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/61aaf4102761
changeset: 15701:61aaf4102761
user: Timo Sirainen <tss at iki.fi>
date: Thu Jan 31 19:45:50 2013 +0200
description:
doveadm fetch: Added "modseq" field.
diffstat:
src/doveadm/doveadm-mail-fetch.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 067179cbabc2 -r 61aaf4102761 src/doveadm/doveadm-mail-fetch.c
--- 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 |
More information about the dovecot-cvs
mailing list