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
This commit is contained in:

committed by
Jeffrey Stedfast

parent
b0e603fa0f
commit
54fb74997b
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2002-08-21 Jeffrey Stedfast <fejj@ximian.com>
|
2002-08-21 Jeffrey Stedfast <fejj@ximian.com>
|
||||||
|
|
||||||
* mail-folder-cache.c (ping_store): Spawn a new thread to ping the
|
* mail-folder-cache.c (ping_store): Spawn a new thread to ping the
|
||||||
|
@ -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->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->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->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 */
|
/* rip off the X-Evolution* headers */
|
||||||
camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution");
|
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-Account");
|
||||||
camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc");
|
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-Format");
|
||||||
|
camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution-PostTo");
|
||||||
|
|
||||||
return xev;
|
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);
|
camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Fcc", xev->fcc);
|
||||||
if (xev->format)
|
if (xev->format)
|
||||||
camel_medium_set_header (CAMEL_MEDIUM (message), "X-Evolution-Format", 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
|
void
|
||||||
@ -239,6 +243,7 @@ mail_tool_destroy_xevolution (XEvolution *xev)
|
|||||||
g_free (xev->account);
|
g_free (xev->account);
|
||||||
g_free (xev->format);
|
g_free (xev->format);
|
||||||
g_free (xev->fcc);
|
g_free (xev->fcc);
|
||||||
|
g_free (xev->postto);
|
||||||
g_free (xev);
|
g_free (xev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ typedef struct _xevolution {
|
|||||||
char *account;
|
char *account;
|
||||||
char *fcc;
|
char *fcc;
|
||||||
char *format;
|
char *format;
|
||||||
|
char *postto;
|
||||||
} XEvolution;
|
} XEvolution;
|
||||||
|
|
||||||
/* Get the CamelFolder for the local inbox */
|
/* Get the CamelFolder for the local inbox */
|
||||||
|
Reference in New Issue
Block a user