about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 20:37:35 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 20:37:35 -0400
commit1defd0c5c4f9261b1bc2e496bdabd92b291841ad (patch)
treedbc1aa64dc766af6aeb914b1d6d253f31e625c9b
parentFree part.parts.ptr (diff)
downloadbubger-1defd0c5c4f9261b1bc2e496bdabd92b291841ad.tar.gz
bubger-1defd0c5c4f9261b1bc2e496bdabd92b291841ad.zip
Rearrange some of archive.h
Diffstat (limited to '')
-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);
ref='/src/commit/txt/books.txt?id=1b680349f942ca9d934e4764459575071e8600ba&follow=1'>Add AuthorityJune McEnroe 2019-05-19Specify precedence of unary versions of operatorsJune McEnroe 2019-05-18Add compound assignment operators to orderJune McEnroe 2019-05-15Support simple assignment in orderJune McEnroe 2019-05-15Implement sizeof in orderJune McEnroe 2019-05-15Add orderJune McEnroe 2019-05-12Add T suffix in bitJune McEnroe 2019-05-10Highlight yacc and lex files as CJune McEnroe Their %-prefixed directives should probably be highlighted Macro. 2019-05-10Use val instead of suboptargJune McEnroe suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure? 2019-05-09Add Parable of the SowerJune McEnroe 2019-05-07Add bit without buildJune McEnroe Need to do some stuff in the Makefile for lex and yacc and generating HTML pages for it. 2019-05-04Fix MANDIR typoJune McEnroe 2019-05-04Move relay to binJune McEnroe