aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-08-01 13:18:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-08-01 13:18:30 +0800
commit386386f94302daf4c6ca626453fd55d2fbfbe168 (patch)
treee1c5e8cbbbae5d75a639dfc6d7ed342267cca876 /mail/mail-format.c
parent70c9d1ce6afba17ffc1ae583ef40656959967b22 (diff)
downloadgsoc2013-evolution-386386f94302daf4c6ca626453fd55d2fbfbe168.tar.gz
gsoc2013-evolution-386386f94302daf4c6ca626453fd55d2fbfbe168.tar.zst
gsoc2013-evolution-386386f94302daf4c6ca626453fd55d2fbfbe168.zip
Don't setup a handler for multipart/digest. (handle_multipart_digest):
2002-08-01 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (setup_mime_tables): Don't setup a handler for multipart/digest. (handle_multipart_digest): Removed. svn path=/trunk/; revision=17667
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c31
1 files changed, 5 insertions, 26 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 946e4f0cc5..5e41298c32 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1,7 +1,7 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- * Authors:
- * Dan Winship <danw@ximian.com>
+ * Authors: Dan Winship <danw@ximian.com>
+ * Jeffrey Stedfast <fejj@ximian.com>
*
* Copyright 2000, 2001 Ximian, Inc.
*
@@ -21,12 +21,13 @@
*
*/
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include <ctype.h> /* for isprint */
#include <string.h> /* for strstr */
+#include <ctype.h>
#include <fcntl.h>
#include <liboaf/liboaf.h>
@@ -92,9 +93,6 @@ static gboolean handle_multipart_encrypted (CamelMimePart *part,
static gboolean handle_multipart_signed (CamelMimePart *part,
const char *mime_type,
MailDisplay *md, GtkHTML *html, GtkHTMLStream *stream);
-static gboolean handle_multipart_digest (CamelMimePart *part,
- const char *mime_type,
- MailDisplay *md, GtkHTML *html, GtkHTMLStream *stream);
static gboolean handle_message_rfc822 (CamelMimePart *part,
const char *mime_type,
MailDisplay *md, GtkHTML *html, GtkHTMLStream *stream);
@@ -345,8 +343,6 @@ setup_mime_tables (void)
handle_multipart_encrypted);
g_hash_table_insert (mime_function_table, "multipart/signed",
handle_multipart_signed);
- g_hash_table_insert (mime_function_table, "multipart/digest",
- handle_multipart_digest);
/* RFC 2046 says unrecognized text subtypes can be treated
* as text/plain (as long as you recognize the character set),
@@ -1143,7 +1139,7 @@ mail_format_get_data_wrapper_text (CamelDataWrapper *wrapper, MailDisplay *mail_
camel_object_unref (CAMEL_OBJECT (filtered_stream));
for (text = ba->data, end = text + ba->len; text < end; text++) {
- if (!isspace ((unsigned char)*text))
+ if (!isspace ((unsigned char) *text))
break;
}
@@ -1718,23 +1714,6 @@ handle_multipart_mixed (CamelMimePart *part, const char *mime_type,
}
static gboolean
-handle_multipart_digest (CamelMimePart *part, const char *mime_type,
- MailDisplay *md, GtkHTML *html, GtkHTMLStream *stream)
-{
- CamelDataWrapper *wrapper =
- camel_medium_get_content_object (CAMEL_MEDIUM (part));
-
- g_return_val_if_fail (CAMEL_IS_MULTIPART (wrapper), FALSE);
-
- gtk_html_stream_printf (stream, "&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"digest:\"><img align=\"middle\" src=\"%s\"></a>"
- "&nbsp;<a href=\"digest:\">%s</a>",
- mail_display_get_url_for_icon (md, EVOLUTION_ICONSDIR "/envelope.png"),
- U_("View messages..."));
-
- return TRUE;
-}
-
-static gboolean
handle_multipart_encrypted (CamelMimePart *part, const char *mime_type,
MailDisplay *md, GtkHTML *html, GtkHTMLStream *stream)
{