Fixes a crasher when a message on the server has an empty Subject: line.

This commit is contained in:
Jim Nelson 2011-10-07 16:58:19 -07:00
parent c012c3b3f5
commit af7c5f585e
4 changed files with 73 additions and 15 deletions

View file

@ -228,8 +228,8 @@ public class Geary.Sqlite.Folder : Geary.AbstractFolder, Geary.LocalFolder, Gear
// separate table
if (!message_row.fields.fulfills(required_fields.clear(Geary.Email.Field.PROPERTIES))) {
throw new EngineError.INCOMPLETE_MESSAGE(
"Message %s in folder %s only fulfills %Xh fields", id.to_string(), to_string(),
message_row.fields);
"Message %s in folder %s only fulfills %Xh fields (required: %Xh)", id.to_string(),
to_string(), message_row.fields, required_fields);
}
ImapMessagePropertiesRow? properties = null;