diff options
author | June McEnroe <june@causal.agency> | 2020-04-26 20:37:35 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-26 20:37:35 -0400 |
commit | 1defd0c5c4f9261b1bc2e496bdabd92b291841ad (patch) | |
tree | dbc1aa64dc766af6aeb914b1d6d253f31e625c9b | |
parent | Free part.parts.ptr (diff) | |
download | bubger-1defd0c5c4f9261b1bc2e496bdabd92b291841ad.tar.gz bubger-1defd0c5c4f9261b1bc2e496bdabd92b291841ad.zip |
Rearrange some of archive.h
Diffstat (limited to '')
-rw-r--r-- | archive.h | 26 |
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); |