summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-16 20:03:12 -0400
committerJune McEnroe <june@causal.agency>2020-04-16 20:03:12 -0400
commit6b0d631a171192d4d9d5ccc6acabb307fee5fa22 (patch)
tree1d406ef9428199bdd56c7a5dcd26bb0d90cd9fab /archive.h
parentDecode Q encoding (diff)
downloadbubger-6b0d631a171192d4d9d5ccc6acabb307fee5fa22.tar.gz
bubger-6b0d631a171192d4d9d5ccc6acabb307fee5fa22.zip
Decode quoted-printable and 7bit/8bit
Diffstat (limited to '')
-rw-r--r--archive.h12
1 files changed, 3 insertions, 9 deletions
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);