aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-05-20 00:31:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-05-20 01:07:21 +0800
commit67227b428b5f730059ad9eefcc866fb4f4bf5e86 (patch)
treee01e448ebe350bde25d4bc1b1eee6d852b6ad4ce /mail
parent543b4d932102206527f42c7a2d1bf049a4b2415d (diff)
downloadgsoc2013-evolution-67227b428b5f730059ad9eefcc866fb4f4bf5e86.tar
gsoc2013-evolution-67227b428b5f730059ad9eefcc866fb4f4bf5e86.tar.gz
gsoc2013-evolution-67227b428b5f730059ad9eefcc866fb4f4bf5e86.tar.bz2
gsoc2013-evolution-67227b428b5f730059ad9eefcc866fb4f4bf5e86.tar.lz
gsoc2013-evolution-67227b428b5f730059ad9eefcc866fb4f4bf5e86.tar.xz
gsoc2013-evolution-67227b428b5f730059ad9eefcc866fb4f4bf5e86.tar.zst
gsoc2013-evolution-67227b428b5f730059ad9eefcc866fb4f4bf5e86.zip
Add e_mail_part_get_validity_flags().
Diffstat (limited to 'mail')
-rw-r--r--mail/em-utils.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 07c943a4e9..6a12e3c4c1 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -1322,7 +1322,6 @@ em_utils_message_to_html (CamelSession *session,
for (link = head; link != NULL; link = g_list_next (link)) {
EMailPart *part = link->data;
- GList *vhead, *vlink;
const gchar *mime_type;
mime_type = e_mail_part_get_mime_type (part);
@@ -1338,16 +1337,7 @@ em_utils_message_to_html (CamelSession *session,
hidden_text_html_part = part;
}
- vhead = g_queue_peek_head_link (&part->validities);
-
- for (vlink = vhead; vlink != NULL; vlink = g_list_next (vlink)) {
- EMailPartValidityPair *pair = vlink->data;
-
- if (pair == NULL)
- continue;
-
- is_validity_found |= pair->validity_type;
- }
+ is_validity_found |= e_mail_part_get_validity_flags (part);
}
while (!g_queue_is_empty (&queue))