diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-08-23 06:05:06 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-08-23 06:05:06 +0800 |
commit | 54fb74997b546aefe7cccb1985708e4d93e73b51 (patch) | |
tree | a38d80e2688a67390d772194a5056fc22d3856fd /mail/mail-tools.c | |
parent | b0e603fa0fda57dd9b268b7286259522010a2f48 (diff) | |
download | gsoc2013-evolution-54fb74997b546aefe7cccb1985708e4d93e73b51.tar.gz gsoc2013-evolution-54fb74997b546aefe7cccb1985708e4d93e73b51.tar.zst gsoc2013-evolution-54fb74997b546aefe7cccb1985708e4d93e73b51.zip |
Reset the X-Evolution-PostTo header.
2002-08-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tool_restore_xevolution_headers): Reset the
X-Evolution-PostTo header.
(mail_tool_remove_xevolution_headers): Remove the
X-Evolution-PostTo header.
svn path=/trunk/; revision=17844
Diffstat (limited to 'mail/mail-tools.c')
-rw-r--r-- | mail/mail-tools.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-tools.c b/mail/mail-tools.c index c2e4d33e06..217c0db3f2 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -201,6 +201,7 @@ mail_tool_remove_xevolution_headers (CamelMimeMessage *message) xev->account = g_strdup (camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Account")); xev->fcc = g_strdup (camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc")); xev->format = g_strdup (camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Format")); + xev->postto = g_strdup (camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-PostTo")); /* rip off the X-Evolution* headers */ camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution"); @@ -209,6 +210,7 @@ mail_tool_remove_xevolution_headers (CamelMimeMessage *message) camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution-Account"); camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc"); camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution-Format"); + camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution-PostTo"); return xev; } @@ -228,6 +230,8 @@ mail_tool_restore_xevolution_headers (CamelMimeMessage *message, XEvolution *xev camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc", xev->fcc); if (xev->format) camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Format", xev->format); + if (xev->postto) + camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-PostTo", xev->postto); } void @@ -239,6 +243,7 @@ mail_tool_destroy_xevolution (XEvolution *xev) g_free (xev->account); g_free (xev->format); g_free (xev->fcc); + g_free (xev->postto); g_free (xev); } |