Mercurial > dovecot > original-hg > dovecot-1.2
diff src/pop3/commands.c @ 3567:58e3fa234ef4 HEAD
Added pop3_reuse_xuidl setting. Patch by Chris Wakelin
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 11 Sep 2005 13:52:00 +0300 |
parents | bfd47c33c46d |
children | 6d485bf73429 |
line wrap: on
line diff
--- a/src/pop3/commands.c Thu Sep 01 10:57:35 2005 +0300 +++ b/src/pop3/commands.c Sun Sep 11 13:52:00 2005 +0300 @@ -514,6 +514,7 @@ }; struct var_expand_table *tab; string_t *str; + const char *uidl; int ret, found = FALSE; tab = t_malloc(sizeof(static_tab)); @@ -558,7 +559,11 @@ str_truncate(str, 0); str_printfa(str, ctx->message == 0 ? "%u " : "+OK %u ", ctx->mail->seq); - var_expand(str, uidl_format, tab); + + uidl = !reuse_xuidl ? NULL : + mail_get_first_header(ctx->mail, "X-UIDL"); + if (uidl == NULL) + var_expand(str, uidl_format, tab); ret = client_send_line(client, "%s", str_c(str)); t_pop();