aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/camel-mime-message.c13
-rw-r--r--camel/camel-mime-message.h3
3 files changed, 14 insertions, 5 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index aabcb22ad1..baa50d48fc 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2002-01-28 Jeffrey Stedfast <fejj@ximian.com>
+ * camel-mime-message.c (process_header): Handle Resent headers
+ too.
+
* camel-mime-message.h: Added Resent-* #defines.
* camel-filter-driver.c (camel_filter_driver_remove_rule_by_name):
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 3383e51ba0..f4f85f22d9 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -56,23 +56,27 @@ typedef enum {
HEADER_REPLY_TO,
HEADER_SUBJECT,
HEADER_TO,
+ HEADER_RESENT_TO,
HEADER_CC,
+ HEADER_RESENT_CC,
HEADER_BCC,
+ HEADER_RESENT_BCC,
HEADER_DATE,
HEADER_MESSAGE_ID
} CamelHeaderType;
static char *header_names[] = {
/* dont include HEADER_UNKNOWN string */
- "From", "Reply-To", "Subject", "To", "Cc", "Bcc", "Date", "Message-Id", NULL
+ "From", "Reply-To", "Subject", "To", "Resent-To", "Cc", "Resent-Cc",
+ "Bcc", "Resent-Bcc", "Date", "Message-Id", NULL
};
static GHashTable *header_name_table;
-static CamelMimePartClass *parent_class=NULL;
+static CamelMimePartClass *parent_class = NULL;
static char *recipient_names[] = {
- "To", "Cc", "Bcc", NULL
+ "To", "Cc", "Bcc", "Resent-To", "Resent-Cc", "Resent-Bcc", NULL
};
static int write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
@@ -555,6 +559,9 @@ process_header (CamelMedium *medium, const char *header_name, const char *header
case HEADER_TO:
case HEADER_CC:
case HEADER_BCC:
+ case HEADER_RESENT_TO:
+ case HEADER_RESENT_CC:
+ case HEADER_RESENT_BCC:
addr = g_hash_table_lookup (message->recipients, header_name);
if (header_value)
camel_address_decode (CAMEL_ADDRESS (addr), header_value);
diff --git a/camel/camel-mime-message.h b/camel/camel-mime-message.h
index 04c8c13dbc..e03924b8b3 100644
--- a/camel/camel-mime-message.h
+++ b/camel/camel-mime-message.h
@@ -42,8 +42,7 @@ extern "C" {
#define CAMEL_RECIPIENT_TYPE_RESENT_TO "Resent-To"
#define CAMEL_RECIPIENT_TYPE_RESENT_CC "Resent-Cc"
-/* This one is "Bcc" as a kludge so that the SMTP provider removes it */
-#define CAMEL_RECIPIENT_TYPE_RESENT_BCC "Bcc"
+#define CAMEL_RECIPIENT_TYPE_RESENT_BCC "Resent-Bcc"
#define CAMEL_MIME_MESSAGE_TYPE (camel_mime_message_get_type ())
#define CAMEL_MIME_MESSAGE(obj) (CAMEL_CHECK_CAST((obj), CAMEL_MIME_MESSAGE_TYPE, CamelMimeMessage))