diff options
author | June McEnroe <june@causal.agency> | 2021-06-11 16:09:27 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-06-11 16:09:27 -0400 |
commit | 5956e421952721dfea0eff838f74a5d4f13b5e94 (patch) | |
tree | 9714a81ac8fdb2dcab2acaf54c1e3f3f29c8c47d /archive.h | |
parent | Ignore test directory (diff) | |
download | bubger-5956e421952721dfea0eff838f74a5d4f13b5e94.tar.gz bubger-5956e421952721dfea0eff838f74a5d4f13b5e94.zip |
Generalize index.{atom,html} to search pages
Diffstat (limited to 'archive.h')
-rw-r--r-- | archive.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/archive.h b/archive.h index 1a94744..3f13109 100644 --- a/archive.h +++ b/archive.h @@ -44,6 +44,7 @@ #define PATH_THREAD "thread/[messageID].[type]" #define PATH_ATTACHMENT \ "attachment/[messageID]/[section]/[name][disposition][.][subtype]" +#define PATH_SEARCH "[name].[type]" #define MBOX_HEADERS \ "Date Subject From Sender Reply-To To Cc Bcc " \ @@ -214,13 +215,15 @@ bool exportFetch(FILE *imap, enum Atom tag, struct List threads); bool exportData(FILE *imap, enum Atom tag, struct List items); extern const char *concatHead; -extern size_t concatIndexEntries; +extern size_t concatSearchEntries; void concatFetch(FILE *imap, enum Atom tag, struct List threads); void concatData( struct List threads, struct Envelope *envelopes, struct List items ); void concatThreads(struct List threads, const struct Envelope *envelopes); -void concatIndex(struct List threads, const struct Envelope *envelopes); +void concatSearch( + const char *name, struct List threads, const struct Envelope *envelopes +); int mboxFrom(FILE *file); int mboxHeader(FILE *file, const char *header); @@ -231,8 +234,8 @@ int atomContent(FILE *file, const char *content); int atomEntryClose(FILE *file); int atomThreadOpen(FILE *file, const struct Envelope *envelope); int atomThreadClose(FILE *file); -int atomIndexOpen(FILE *file); -int atomIndexClose(FILE *file); +int atomSearchOpen(FILE *file, const char *name); +int atomSearchClose(FILE *file); int htmlMessageOpen(FILE *file, const struct Envelope *envelope, bool nested); int htmlInline(FILE *file, const struct BodyPart *part, const char *content); @@ -247,9 +250,9 @@ int htmlThreadOpen(FILE *file, const struct Envelope *envelope); int htmlSubthreadOpen(FILE *file, struct List thread); int htmlSubthreadClose(FILE *file); int htmlThreadClose(FILE *file); -int htmlIndexHead(FILE *file); -int htmlIndexOpen(FILE *file); -int htmlIndexThread( +int htmlSearchHead(FILE *file, const char *name); +int htmlSearchOpen(FILE *file, const char *name); +int htmlSearchThread( FILE *file, const struct Envelope *envelope, struct List thread ); -int htmlIndexClose(FILE *file); +int htmlSearchClose(FILE *file); |