From 9fa841952fa8040a457183e59bc5cd5b8d3e71f8 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Mon, 8 Aug 2011 21:58:24 +0300 Subject: [PATCH] * mu-msg-flags.c: be more strict for maildir flags; they must be uppercase --- src/mu-msg-flags.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/mu-msg-flags.c b/src/mu-msg-flags.c index e5fe62e5..e53327a8 100644 --- a/src/mu-msg-flags.c +++ b/src/mu-msg-flags.c @@ -72,14 +72,14 @@ mu_msg_flag_from_char (char k) MuMsgFlags mu_msg_flag_from_file_char (char k) { - switch (g_ascii_tolower(k)) { - case 'n': return MU_MSG_FLAG_NEW; - case 'p': return MU_MSG_FLAG_PASSED; - case 'r': return MU_MSG_FLAG_REPLIED; - case 's': return MU_MSG_FLAG_SEEN; - case 't': return MU_MSG_FLAG_TRASHED; - case 'd': return MU_MSG_FLAG_DRAFT; - case 'f': return MU_MSG_FLAG_FLAGGED; + switch (k) { + case 'D': return MU_MSG_FLAG_DRAFT; + case 'F': return MU_MSG_FLAG_FLAGGED; + case 'N': return MU_MSG_FLAG_NEW; + case 'P': return MU_MSG_FLAG_PASSED; + case 'R': return MU_MSG_FLAG_REPLIED; + case 'S': return MU_MSG_FLAG_SEEN; + case 'T': return MU_MSG_FLAG_TRASHED; default: return 0; } } @@ -115,6 +115,7 @@ char mu_msg_flag_char (MuMsgFlags flag) { switch (flag) { + case MU_MSG_FLAG_NEW: return 'n'; case MU_MSG_FLAG_PASSED: return 'p'; case MU_MSG_FLAG_REPLIED: return 'r';