summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--archive.h26
1 files changed, 13 insertions, 13 deletions
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);