After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 357476 - Wrong flag name in camel-folder-summary.c
Wrong flag name in camel-folder-summary.c
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
1.8.x (obsolete)
Other Linux
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-09-24 16:27 UTC by Øystein Gisnås
Modified: 2010-12-16 18:27 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Øystein Gisnås 2006-09-24 16:27:09 UTC
Hello,


while reading some parts of camel sources, I saw that in 
camel-folder-summary.c around line 2642:

static struct flag_names_t {
	char *name;
	guint32 value;
} flag_names[] = {
	{ "answered", CAMEL_MESSAGE_ANSWERED },
	{ "deleted", CAMEL_MESSAGE_DELETED },
	{ "draft", CAMEL_MESSAGE_DELETED },
	{ "flagged", CAMEL_MESSAGE_FLAGGED },
	{ "seen", CAMEL_MESSAGE_SEEN },
	{ "attachments", CAMEL_MESSAGE_ATTACHMENTS },
	{ "junk", CAMEL_MESSAGE_JUNK },
	{ "secure", CAMEL_MESSAGE_SECURE },
	{ NULL, 0 }
};

I am surprised to see "draft" associated with CAMEL_MESSAGE_DELETED. 
IMHO it should be replaced by CAMEL_MESSAGE_DRAFT.

This bug was initially reported at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=388519 by Laurent.
Comment 1 André Klapper 2006-09-26 22:18:45 UTC
hihi, that piece of code is dated 2000-december-02. :-)
Comment 2 Lucky Wankhede 2007-08-20 16:24:32 UTC
Is it kept like that deliberately or should we change it.
Any suggestions. I would love to try it.
Comment 3 Claudio Saavedra 2008-08-05 23:46:39 UTC
Is this still valid?
Comment 4 Kjartan Maraas 2010-12-16 18:27:29 UTC
Fixed in git now at least. Closing.