changeset 14166:06bb6d0f60e0

pop3: If UIDL using %f/%m/%g can't be fetched, mention pop3_uidl_format in error message.
author Timo Sirainen <tss@iki.fi>
date Mon, 13 Feb 2012 18:27:44 +0200
parents 9c4cac11da15
children b4479e2d2d21
files src/pop3/pop3-commands.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/pop3/pop3-commands.c	Mon Feb 13 18:28:01 2012 +0200
+++ b/src/pop3/pop3-commands.c	Mon Feb 13 18:27:44 2012 +0200
@@ -578,7 +578,8 @@
 				     &tab[2].value) < 0 ||
 		    *tab[2].value == '\0') {
 			/* broken */
-			i_fatal("UIDL: Header MD5 not found");
+			i_fatal("UIDL: Header MD5 not found "
+				"(pop3_uidl_format=%%m not supported by storage?)");
 		}
 	}
 	if ((client->uidl_keymask & UIDL_FILE_NAME) != 0) {
@@ -587,7 +588,8 @@
 				     &tab[3].value) < 0 ||
 		    *tab[3].value == '\0') {
 			/* broken */
-			i_fatal("UIDL: File name not found");
+			i_fatal("UIDL: File name not found "
+				"(pop3_uidl_format=%%f not supported by storage?)");
 		}
 	}
 	if ((client->uidl_keymask & UIDL_GUID) != 0) {
@@ -595,7 +597,8 @@
 				     &tab[4].value) < 0 ||
 		    *tab[4].value == '\0') {
 			/* broken */
-			i_fatal("UIDL: Message GUID not found");
+			i_fatal("UIDL: Message GUID not found "
+				"(pop3_uidl_format=%%g not supported by storage?)");
 		}
 	}
 	var_expand(str, client->mail_set->pop3_uidl_format, tab);