aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-10 07:55:02 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-10 07:55:02 +0800
commit439bc7a3ec18635897c63d572e46288775fd5594 (patch)
treea4fadb8879f9581b5ba1cc78050b2246cfaf99c9 /mail/mail-format.c
parent7367ac4cb65aa4a04025e68ebf25a619231a2ce5 (diff)
downloadgsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.gz
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.bz2
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.lz
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.xz
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.tar.zst
gsoc2013-evolution-439bc7a3ec18635897c63d572e46288775fd5594.zip
Handle application/pgp using the text/plain handler.
2001-07-09 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (setup_mime_tables): Handle application/pgp using the text/plain handler. * mail-account-gui.c (get_sensitive_widget): New function to determine which widget is focused. * mail-account-editor.c (apply_changes): Not only flip to the notebook page that wasn't finished, but also grab the focus of the incomplete widget. * mail-config-druid.c (source_changed): Grab the focus of the incomplete widget. (transport_prepare): And here. (identity_changed): Here too. * mail-account-gui.c (mail_account_gui_identity_complete): Take an incomplete argument so we can set which widget is incomplete and then the caller can focus it or whatever. (service_complete): Same. (mail_account_gui_transport_complete): And again here. (mail_account_gui_management_complete): And here too. svn path=/trunk/; revision=10939
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 7dcbc978cb..fb0218659c 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -273,7 +273,7 @@ setup_mime_tables (void)
{
mime_handler_table = g_hash_table_new (g_str_hash, g_str_equal);
mime_function_table = g_hash_table_new (g_str_hash, g_str_equal);
-
+
g_hash_table_insert (mime_function_table, "text/plain",
handle_text_plain);
g_hash_table_insert (mime_function_table, "text/richtext",
@@ -282,7 +282,7 @@ setup_mime_tables (void)
handle_text_enriched);
g_hash_table_insert (mime_function_table, "text/html",
handle_text_html);
-
+
g_hash_table_insert (mime_function_table, "image/gif",
handle_image);
g_hash_table_insert (mime_function_table, "image/jpeg",
@@ -311,14 +311,14 @@ setup_mime_tables (void)
handle_image);
g_hash_table_insert (mime_function_table, "image/x-xpixmap",
handle_image);
-
+
g_hash_table_insert (mime_function_table, "message/rfc822",
handle_message_rfc822);
g_hash_table_insert (mime_function_table, "message/news",
handle_message_rfc822);
g_hash_table_insert (mime_function_table, "message/external-body",
handle_message_external_body);
-
+
g_hash_table_insert (mime_function_table, "multipart/alternative",
handle_multipart_alternative);
g_hash_table_insert (mime_function_table, "multipart/related",
@@ -331,11 +331,17 @@ setup_mime_tables (void)
handle_multipart_encrypted);
g_hash_table_insert (mime_function_table, "multipart/signed",
handle_multipart_signed);
-
+
+ /* Some broken mailers, such as The Bat! send pgp
+ * signed/encrypted messages with a content-type of
+ * application/pgp which basically means it's a text/plain but
+ * either signed or encrypted. */
+ g_hash_table_insert (mime_function_table, "application/pgp",
+ handle_text_plain);
+
/* RFC 2046 says unrecognized text subtypes can be treated
* as text/plain (as long as you recognize the character set),
- * and unrecognized multipart subtypes as multipart/mixed.
- */
+ * and unrecognized multipart subtypes as multipart/mixed. */
g_hash_table_insert (mime_function_table, "text/*",
handle_text_plain);
g_hash_table_insert (mime_function_table, "multipart/*",