GNOME Bugzilla – Bug 503922
"Status is Draft" criterion does not work
Last modified: 2008-07-07 09:04:13 UTC
Please describe the problem: A "Status is Draft" criterion on a search folder fails to match messages that are drafts. Steps to reproduce: 1. Compose a message and save it as a draft. 2. Create a search folder with the single criterion "Status", "is", "Draft". 3. Open the search folder. Actual results: The draft does not appear in the search folder. Expected results: The draft appears in the search folder. Does this happen every time? Yes. Other information: This is the result of a simple blooper in the mapping of flag names to values in evolution-data-server/camel/camel-folder-summary.c : static struct flag_names_t { char *name; guint32 value; } flag_names[] = { { "answered", CAMEL_MESSAGE_ANSWERED }, { "deleted", CAMEL_MESSAGE_DELETED }, { "draft", CAMEL_MESSAGE_DELETED }, /* should be CAMEL_MESSAGE_DRAFT */ { "flagged", CAMEL_MESSAGE_FLAGGED }, { "seen", CAMEL_MESSAGE_SEEN }, { "attachments", CAMEL_MESSAGE_ATTACHMENTS }, { "junk", CAMEL_MESSAGE_JUNK }, { "secure", CAMEL_MESSAGE_SECURE }, { NULL, 0 } }; I made a modified version of Evolution with the mapping fixed and the "Status is Draft" criterion worked correctly.
Bumping version to a stable release.
Fedora users who are annoyed by this bug may wish to use my modified evolution-data-server RPMs: http://mattmccutchen.net/email/#rpm
I don't see a patch here. But you've gone and provided your own RPMs?
Created attachment 113819 [details] [review] Patch
looks right to me.
yes, please commit :)
Patch committed to SVN trunk as r9097 http://svn.gnome.org/viewvc/evolution-data-server?view=revision&revision=9097