aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-mime-utils.h')
-rw-r--r--camel/camel-mime-utils.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/camel/camel-mime-utils.h b/camel/camel-mime-utils.h
index 4d8d6bb9ea..1a503d6710 100644
--- a/camel/camel-mime-utils.h
+++ b/camel/camel-mime-utils.h
@@ -25,6 +25,9 @@
#include <glib.h>
#include <time.h>
+/* maximum size of a line from header_fold() */
+#define CAMEL_FOLD_SIZE (72)
+
/* a list of references for this message */
struct _header_references {
struct _header_references *next;
@@ -131,6 +134,9 @@ void header_raw_replace(struct _header_raw **list, const char *name, const char
void header_raw_remove(struct _header_raw **list, const char *name);
void header_raw_clear(struct _header_raw **list);
+/* fold a header */
+char *header_fold(const char *in);
+
/* decode a header which is a simple token */
char *header_token_decode(const char *in);
@@ -138,6 +144,9 @@ char *header_token_decode(const char *in);
char *header_decode_string(const char *in);
char *header_encode_string(const unsigned char *in);
+/* encode a phrase, like the real name of an address */
+char *header_encode_phrase(const unsigned char *in);
+
/* decode an email date field into a GMT time, + optional offset */
time_t header_decode_date(const char *in, int *saveoffset);
char *header_format_date(time_t time, int offset);