# %u - Mail's IMAP UID
# %m - MD5 sum of the mailbox headers in hex (mbox only)
# %f - filename (maildir only)
+ # %g - Mail's GUID
#
# If you want UIDL compatibility with other POP3 servers, use:
# UW's ipop3d : %08Xv%08Xu
i_fatal("UIDL: File name not found");
}
}
+ if ((client->uidl_keymask & UIDL_GUID) != 0) {
+ if (mail_get_special(ctx->mail, MAIL_FETCH_GUID,
+ &tab[4].value) < 0 ||
+ *tab[4].value == '\0') {
+ /* broken */
+ i_fatal("UIDL: Message GUID not found");
+ }
+ }
var_expand(str, client->mail_set->pop3_uidl_format, tab);
return FALSE;
}
{ 'u', NULL, "uid" },
{ 'm', NULL, "md5" },
{ 'f', NULL, "filename" },
+ { 'g', NULL, "guid" },
{ '\0', NULL, NULL }
};
struct var_expand_table *tab;