about summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h19
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);