aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.h
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-03-15 01:44:20 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-03-15 01:44:20 +0800
commit1df1d4aead3ebacf457f637c6df2a5e8539b7fbf (patch)
tree0d31b8877fc39052b20abc8434018ecaa1ef63c9 /camel/camel-mime-utils.h
parent0b82cc7a34271a145a45ff7f296304e19a9315cc (diff)
downloadgsoc2013-evolution-1df1d4aead3ebacf457f637c6df2a5e8539b7fbf.tar.gz
gsoc2013-evolution-1df1d4aead3ebacf457f637c6df2a5e8539b7fbf.tar.zst
gsoc2013-evolution-1df1d4aead3ebacf457f637c6df2a5e8539b7fbf.zip
Use header_contentid_decode() as this new function should be safer than
2003-03-13 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-part.c (process_header): Use header_contentid_decode() as this new function should be safer than the hack that we had before. * camel-mime-utils.c (header_contentid_decode): New function to try and parse a content-id string in such a way as to work around some of the known bugs in other MIME implementations. Try to be as "safe" as we can - ie. don't allow for more than 1 @ (since the mailer uses "@@@%d" as a fake content-id value for parts without content-ids) and don't allow for invalid content-type chars. svn path=/trunk/; revision=20295
Diffstat (limited to 'camel/camel-mime-utils.h')
-rw-r--r--camel/camel-mime-utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h
index 91d1d71553..303f29be07 100644
--- a/camel/camel-mime-utils.h
+++ b/camel/camel-mime-utils.h
@@ -184,6 +184,7 @@ char *header_format_date (time_t time, int offset);
/* decode a message id */
char *header_msgid_decode (const char *in);
+char *header_contentid_decode (const char *in);
/* generate msg id */
char *header_msgid_generate (void);