dovecot-2.0: doveadm fetch: Added support for pop3.uidl field.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Oct 22 00:45:30 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/3b13bd2d64f4
changeset: 12341:3b13bd2d64f4
user: Timo Sirainen <tss at iki.fi>
date: Thu Oct 21 22:45:27 2010 +0100
description:
doveadm fetch: Added support for pop3.uidl field.
diffstat:
src/doveadm/doveadm-mail-fetch.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 9aa158bd50eb -r 3b13bd2d64f4 src/doveadm/doveadm-mail-fetch.c
--- a/src/doveadm/doveadm-mail-fetch.c Thu Oct 21 22:21:57 2010 +0100
+++ b/src/doveadm/doveadm-mail-fetch.c Thu Oct 21 22:45:27 2010 +0100
@@ -290,6 +290,15 @@
doveadm_print(value);
return 0;
}
+static int fetch_pop3_uidl(struct fetch_cmd_context *ctx)
+{
+ const char *value;
+
+ if (mail_get_special(ctx->mail, MAIL_FETCH_UIDL_BACKEND, &value) < 0)
+ return -1;
+ doveadm_print(value);
+ return 0;
+}
static const struct fetch_field fetch_fields[] = {
{ "user", 0, fetch_user },
@@ -310,7 +319,8 @@
{ "date.saved", MAIL_FETCH_SAVE_DATE, fetch_date_saved },
{ "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 }
+ { "imap.bodystructure", MAIL_FETCH_IMAP_BODYSTRUCTURE, fetch_imap_bodystructure },
+ { "pop3.uidl", MAIL_FETCH_UIDL_BACKEND, fetch_pop3_uidl }
};
static const struct fetch_field *fetch_field_find(const char *name)
More information about the dovecot-cvs
mailing list