From 6b0d631a171192d4d9d5ccc6acabb307fee5fa22 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 16 Apr 2020 20:03:12 -0400 Subject: Decode quoted-printable and 7bit/8bit --- archive.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'archive.h') diff --git a/archive.h b/archive.h index 8b991cb..a7377ab 100644 --- a/archive.h +++ b/archive.h @@ -143,7 +143,6 @@ struct Variable { typedef int EscapeFn(FILE *file, const char *str); -int escapeNull(FILE *file, const char *str); int escapeURL(FILE *file, const char *str); int escapeXML(FILE *file, const char *str); @@ -154,10 +153,7 @@ int templateRender( char *templateURL(const char *template, const struct Variable vars[]); char *decodeHeader(const char *header); -int decodeContent( - FILE *file, EscapeFn *escape, - const struct BodyPart *part, const char *content -); +char *decodeToString(const struct BodyPart *part, const char *content); static inline const char *pathUID(uint32_t uid, const char *type) { static char buf[PATH_MAX]; @@ -198,16 +194,14 @@ int mboxBody(FILE *file, const char *body); extern const char *atomBaseURL; int atomEntryOpen(FILE *file, const struct Envelope *envelope); -int atomContentOpen(FILE *file); -int atomContentClose(FILE *file); +int atomContent(FILE *file, const char *content); int atomEntryClose(FILE *file); int atomFeedOpen(FILE *file, const struct Envelope *envelope); int atomFeedClose(FILE *file); extern const char *htmlTitle; int htmlMessageOpen(FILE *file, const struct Envelope *envelope); -int htmlInlineOpen(FILE *file, const struct BodyPart *part); -int htmlInlineClose(FILE *file); +int htmlInline(FILE *file, const struct BodyPart *part, const char *content); int htmlMessageClose(FILE *file); int htmlThreadHead(FILE *file, const struct Envelope *envelope); int htmlThreadOpen(FILE *file, const struct Envelope *envelope); -- cgit 1.4.1