dovecot-2.2: doveadm fetch: Added pop3.order field.

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 7 19:24:56 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/36d11bf4e58d
changeset: 17134:36d11bf4e58d
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 07 14:24:44 2014 -0500
description:
doveadm fetch: Added pop3.order field.

diffstat:

 src/doveadm/doveadm-mail-fetch.c |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r a16dbcb0f477 -r 36d11bf4e58d src/doveadm/doveadm-mail-fetch.c
--- a/src/doveadm/doveadm-mail-fetch.c	Fri Feb 07 17:17:25 2014 +0200
+++ b/src/doveadm/doveadm-mail-fetch.c	Fri Feb 07 14:24:44 2014 -0500
@@ -402,6 +402,16 @@
 	return 0;
 }
 
+static int fetch_pop3_order(struct fetch_cmd_context *ctx)
+{
+	const char *value;
+
+	if (mail_get_special(ctx->mail, MAIL_FETCH_POP3_ORDER, &value) < 0)
+		return -1;
+	doveadm_print(value);
+	return 0;
+}
+
 static const struct fetch_field fetch_fields[] = {
 	{ "user",          0,                        fetch_user },
 	{ "mailbox",       0,                        fetch_mailbox },
@@ -425,7 +435,8 @@
 	{ "imap.envelope", MAIL_FETCH_IMAP_ENVELOPE, fetch_imap_envelope },
 	{ "imap.body",     MAIL_FETCH_IMAP_BODY,     fetch_imap_body },
 	{ "imap.bodystructure", MAIL_FETCH_IMAP_BODYSTRUCTURE, fetch_imap_bodystructure },
-	{ "pop3.uidl",     MAIL_FETCH_UIDL_BACKEND,  fetch_pop3_uidl }
+	{ "pop3.uidl",     MAIL_FETCH_UIDL_BACKEND,  fetch_pop3_uidl },
+	{ "pop3.order",    MAIL_FETCH_POP3_ORDER,    fetch_pop3_order }
 };
 
 static const struct fetch_field *fetch_field_find(const char *name)


More information about the dovecot-cvs mailing list