diff options
author | Not Zed <NotZed@Ximian.com> | 2004-05-17 11:44:27 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-05-17 11:44:27 +0800 |
commit | 49686598a43ad861b6ab1cd1a550f124b5910500 (patch) | |
tree | 75f9f7f63880a9c36e0a0791ef8b37a9aa43f09f /camel/camel-folder-summary.c | |
parent | 6e1efd0cba8c8665bb0532e3c5b4c4a9187b2e4f (diff) | |
download | gsoc2013-evolution-49686598a43ad861b6ab1cd1a550f124b5910500.tar.gz gsoc2013-evolution-49686598a43ad861b6ab1cd1a550f124b5910500.tar.zst gsoc2013-evolution-49686598a43ad861b6ab1cd1a550f124b5910500.zip |
don't allow creation of Trash or Junk folders.
2004-05-14 Not Zed <NotZed@Ximian.com>
* camel-store.c (camel_store_create_folder): don't allow creation
of Trash or Junk folders.
(camel_store_rename_folder): similar for rename. #57250.
2004-05-13 Not Zed <NotZed@Ximian.com>
* camel-folder-summary.c (summary_build_content_info): set secure
flag if we have a known security type.
(flag_names[]): Added secure bit.
(summary_build_content_info_message): set secure flag as
appropriate.
(summary_build_content_info_message): dont set attachments for
simple types (non text), only base it on multipart/* stuff.
(summary_build_content_info): same.
* camel-folder-summary.h: added SECURE flag. Indicates signed or
encrypted content.
svn path=/trunk/; revision=25914
Diffstat (limited to 'camel/camel-folder-summary.c')
-rw-r--r-- | camel/camel-folder-summary.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 83c7022c33..ccbe13b22d 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -2056,9 +2056,7 @@ summary_build_content_info(CamelFolderSummary *s, CamelMessageInfo *msginfo, Cam || camel_content_type_is(ct, "application", "pkcs7-signature") #endif ) - /* TODO: set secured bit */; - else if (!camel_content_type_is(ct, "text", "*")) - msginfo->flags |= CAMEL_MESSAGE_ATTACHMENTS; + msginfo->flags |= CAMEL_MESSAGE_SECURE; if (p->index && camel_content_type_is(ct, "text", "*")) { char *encoding; @@ -2143,6 +2141,9 @@ summary_build_content_info(CamelFolderSummary *s, CamelMessageInfo *msginfo, Cam ct = camel_mime_parser_content_type(mp); if (camel_content_type_is(ct, "multipart", "mixed")) msginfo->flags |= CAMEL_MESSAGE_ATTACHMENTS; + if (camel_content_type_is(ct, "multipart", "signed") + || camel_content_type_is(ct, "multipart", "encrypted")) + msginfo->flags |= CAMEL_MESSAGE_SECURE; while (camel_mime_parser_step(mp, &buffer, &len) != CAMEL_MIME_PARSER_STATE_MULTIPART_END) { camel_mime_parser_unstep(mp); @@ -2203,15 +2204,17 @@ summary_build_content_info_message(CamelFolderSummary *s, CamelMessageInfo *msgi if (camel_content_type_is(ct, "multipart", "*")) { if (camel_content_type_is(ct, "multipart", "mixed")) msginfo->flags |= CAMEL_MESSAGE_ATTACHMENTS; + if (camel_content_type_is(ct, "multipart", "signed") + || camel_content_type_is(ct, "multipart", "encrypted")) + msginfo->flags |= CAMEL_MESSAGE_SECURE; } else if (camel_content_type_is(ct, "application", "pgp-signature") #ifdef ENABLE_SMIME || camel_content_type_is(ct, "application", "x-pkcs7-signature") || camel_content_type_is(ct, "application", "pkcs7-signature") #endif ) { - /* TODO: signed bit */; - } else if (!camel_content_type_is(ct, "text", "*")) - msginfo->flags |= CAMEL_MESSAGE_ATTACHMENTS; + msginfo->flags |= CAMEL_MESSAGE_SECURE; + } /* using the object types is more accurate than using the mime/types */ if (CAMEL_IS_MULTIPART(containee)) { @@ -2557,6 +2560,7 @@ struct flag_names_t { { "seen", CAMEL_MESSAGE_SEEN }, { "attachments", CAMEL_MESSAGE_ATTACHMENTS }, { "junk", CAMEL_MESSAGE_JUNK }, + { "secure", CAMEL_MESSAGE_SECURE }, { NULL, 0 } }; |