Dominique Leuenberger
3d5d304f42
- Add evolution-bgo769062-mouseover-crash.patch: fix crash on mouse over task when tasks are grouped. - Add evolution-bgo768683-cannot-mark-as-spam.patch: allow marking a non-spam message as spam in a junk folder (bgo#768683). OBS-URL: https://build.opensuse.org/request/show/416776 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/evolution?expand=0&rev=306
65 lines
2.1 KiB
Diff
65 lines
2.1 KiB
Diff
From 7d7e1d8be792977968788f8fe252a36422370fde Mon Sep 17 00:00:00 2001
|
|
From: Milan Crha <mcrha@redhat.com>
|
|
Date: Wed, 3 Aug 2016 13:21:12 +0200
|
|
Subject: [PATCH] Bug 768683 - Cannot mark as spam non-spam message in a real
|
|
Junk folder
|
|
|
|
---
|
|
mail/e-mail-reader.c | 12 ++----------
|
|
1 file changed, 2 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
|
|
index b41ddab..98b9e2a 100644
|
|
--- a/mail/e-mail-reader.c
|
|
+++ b/mail/e-mail-reader.c
|
|
@@ -3841,9 +3841,7 @@ mail_reader_update_actions (EMailReader *reader,
|
|
gtk_action_set_sensitive (action, sensitive);
|
|
|
|
action_name = "mail-mark-junk";
|
|
- sensitive =
|
|
- selection_has_not_junk_messages &&
|
|
- !(state & E_MAIL_READER_FOLDER_IS_JUNK);
|
|
+ sensitive = selection_has_not_junk_messages;
|
|
action = e_mail_reader_get_action (reader, action_name);
|
|
gtk_action_set_sensitive (action, sensitive);
|
|
|
|
@@ -4498,7 +4496,6 @@ e_mail_reader_check_state (EMailReader *reader)
|
|
gboolean has_mail_note = FALSE;
|
|
gboolean have_enabled_account = FALSE;
|
|
gboolean drafts_or_outbox = FALSE;
|
|
- gboolean store_supports_vjunk = FALSE;
|
|
gboolean is_mailing_list;
|
|
gboolean is_junk_folder = FALSE;
|
|
gboolean is_vtrash_folder = FALSE;
|
|
@@ -4522,7 +4519,6 @@ e_mail_reader_check_state (EMailReader *reader)
|
|
gchar *archive_folder;
|
|
|
|
store = camel_folder_get_parent_store (folder);
|
|
- store_supports_vjunk = (store->flags & CAMEL_STORE_VJUNK);
|
|
is_junk_folder =
|
|
(folder->folder_flags & CAMEL_FOLDER_IS_JUNK) != 0;
|
|
is_vtrash_folder = (store->flags & CAMEL_STORE_VTRASH) != 0 && (folder->folder_flags & CAMEL_FOLDER_IS_TRASH) != 0;
|
|
@@ -4567,7 +4563,7 @@ e_mail_reader_check_state (EMailReader *reader)
|
|
if (drafts_or_outbox) {
|
|
has_junk = FALSE;
|
|
has_not_junk = FALSE;
|
|
- } else if (store_supports_vjunk) {
|
|
+ } else {
|
|
guint32 bitmask;
|
|
|
|
/* XXX Strictly speaking, this logic is correct.
|
|
@@ -4590,10 +4586,6 @@ e_mail_reader_check_state (EMailReader *reader)
|
|
has_junk = TRUE;
|
|
has_not_junk = TRUE;
|
|
}
|
|
-
|
|
- } else {
|
|
- has_junk = TRUE;
|
|
- has_not_junk = TRUE;
|
|
}
|
|
|
|
if (flags & CAMEL_MESSAGE_DELETED)
|
|
--
|
|
2.6.6
|
|
|