# client disconnected
# %{trashed} - Number of mails that client copied/moved to the
# special_use=\Trash mailbox.
+# %{appended} - Number of mails saved during the session
#imap_logout_format = in=%i out=%o
# Override the IMAP CAPABILITY response. If the value begins with '+',
imap_write_seq_range(msg, &changes.saved_uids);
str_append(msg, "] Append completed.");
}
+ ctx->client->append_count += save_count;
pool_unref(&changes.pool);
if (ctx->box == cmd->client->mailbox) {
{ '\0', NULL, "expunged" },
{ '\0', NULL, "trashed" },
{ '\0', NULL, "autoexpunged" },
+ { '\0', NULL, "appended" },
{ '\0', NULL, NULL }
};
struct var_expand_table *tab;
tab[8].value = dec2str(client->expunged_count);
tab[9].value = dec2str(client->trashed_count);
tab[10].value = dec2str(client->autoexpunged_count);
+ tab[11].value = dec2str(client->append_count);
str = t_str_new(128);
var_expand(str, client->set->imap_logout_format, tab);
unsigned int fetch_hdr_count, fetch_body_count;
uint64_t fetch_hdr_bytes, fetch_body_bytes;
unsigned int deleted_count, expunged_count, trashed_count;
- unsigned int autoexpunged_count;
+ unsigned int autoexpunged_count, append_count;
/* SEARCHRES extension: Last saved SEARCH result */
ARRAY_TYPE(seq_range) search_saved_uidset;