diff options
author | Not Zed <NotZed@Ximian.com> | 2004-11-12 13:54:07 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-11-12 13:54:07 +0800 |
commit | d25f16e9ea91dc50cc8477576c6a7def086d34c7 (patch) | |
tree | afd1003f6acc2573c505d25b74d3e1f3c8b1691c /mail/em-menu.c | |
parent | 8e212824134c1740d05fb36799f78716c5059801 (diff) | |
download | gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar.gz gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.tar.zst gsoc2013-evolution-d25f16e9ea91dc50cc8477576c6a7def086d34c7.zip |
** Merge in notzed-messageinfo-branch.
2004-11-12 Not Zed <NotZed@Ximian.com>
** Merge in notzed-messageinfo-branch.
svn path=/trunk/; revision=27899
Diffstat (limited to 'mail/em-menu.c')
-rw-r--r-- | mail/em-menu.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mail/em-menu.c b/mail/em-menu.c index 62a4a3ee8e..bf2eb19fe6 100644 --- a/mail/em-menu.c +++ b/mail/em-menu.c @@ -187,34 +187,37 @@ em_menu_target_new_select(EMMenu *emp, struct _CamelFolder *folder, const char * for (i = 0; i < uids->len; i++) { CamelMessageInfo *info = camel_folder_get_message_info(folder, uids->pdata[i]); + guint32 flags; if (info == NULL) continue; - if (info->flags & CAMEL_MESSAGE_SEEN) + flags = camel_message_info_flags(info); + + if (flags & CAMEL_MESSAGE_SEEN) mask &= ~EM_MENU_SELECT_MARK_UNREAD; else mask &= ~EM_MENU_SELECT_MARK_READ; - if (info->flags & CAMEL_MESSAGE_DELETED) + if (flags & CAMEL_MESSAGE_DELETED) mask &= ~EM_MENU_SELECT_UNDELETE; else mask &= ~EM_MENU_SELECT_DELETE; - if (info->flags & CAMEL_MESSAGE_FLAGGED) + if (flags & CAMEL_MESSAGE_FLAGGED) mask &= ~EM_MENU_SELECT_MARK_UNIMPORTANT; else mask &= ~EM_MENU_SELECT_MARK_IMPORTANT; - if (info->flags & CAMEL_MESSAGE_JUNK) + if (flags & CAMEL_MESSAGE_JUNK) mask &= ~EM_MENU_SELECT_MARK_NOJUNK; else mask &= ~EM_MENU_SELECT_MARK_JUNK; - tmp = camel_tag_get (&info->user_tags, "follow-up"); + tmp = camel_message_info_user_tag(info, "follow-up"); if (tmp && *tmp) { mask &= ~EM_MENU_SELECT_FLAG_CLEAR; - tmp = camel_tag_get(&info->user_tags, "completed-on"); + tmp = camel_message_info_user_tag(info, "completed-on"); if (tmp == NULL || *tmp == 0) mask &= ~EM_MENU_SELECT_FLAG_COMPLETED; } else |