From 1defd0c5c4f9261b1bc2e496bdabd92b291841ad Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 26 Apr 2020 20:37:35 -0400 Subject: Rearrange some of archive.h --- archive.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'archive.h') diff --git a/archive.h b/archive.h index 09f8f6a..8d55328 100644 --- a/archive.h +++ b/archive.h @@ -136,6 +136,16 @@ static inline void bodyPartFree(struct BodyPart part) { void parseEnvelope(struct Envelope *envelope, struct List list); void parseBodyPart(struct BodyPart *part, struct List list); +char *decodeHeader(const char *header); +char *decodeToString(const struct BodyPart *part, const char *content); +int decodeToFile(FILE *file, const struct BodyPart *part, const char *content); + +#define PATH_UID "UID/[uid].[type]" +#define PATH_MESSAGE "message/[messageID].[type]" +#define PATH_THREAD "thread/[messageID].[type]" +#define PATH_ATTACHMENT \ + "attachment/[messageID]/[section]/[name][disposition][.][subtype]" + bool exportFetch(FILE *imap, enum Atom tag, struct List threads); bool exportData(FILE *imap, enum Atom tag, struct List items); @@ -170,15 +180,9 @@ char *templateBuffer( ); char *templateURL(const char *template, const struct Variable vars[]); -char *decodeHeader(const char *header); -char *decodeToString(const struct BodyPart *part, const char *content); -int decodeToFile(FILE *file, const struct BodyPart *part, const char *content); - -#define PATH_UID "UID/[uid].[type]" -#define PATH_MESSAGE "message/[messageID].[type]" -#define PATH_THREAD "thread/[messageID].[type]" -#define PATH_ATTACHMENT \ - "attachment/[messageID]/[section]/[name][disposition][.][subtype]" +extern const char *baseURL; +extern const char *baseTitle; +extern const char *baseAddress; #define MBOX_HEADERS \ "Date Subject From Sender Reply-To To Cc Bcc " \ @@ -189,10 +193,6 @@ int mboxFrom(FILE *file); int mboxHeader(FILE *file, const char *header); int mboxBody(FILE *file, const char *body); -extern const char *baseURL; -extern const char *baseTitle; -extern const char *baseAddress; - int atomEntryOpen(FILE *file, const struct Envelope *envelope); int atomContent(FILE *file, const char *content); int atomEntryClose(FILE *file); -- cgit 1.4.1