about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--archive.c2
-rw-r--r--archive.h2
-rw-r--r--export.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/archive.c b/archive.c
index b6960e3..ea2259c 100644
--- a/archive.c
+++ b/archive.c
@@ -172,7 +172,7 @@ int main(int argc, char *argv[]) {
 			}
 			createDir("UID");
 			createDir("message");
-			export = exportThreads(imap, resp.data);
+			export = exportFetch(imap, resp.data);
 		}
 
 		if (export && resp.resp == AtomFetch) {
diff --git a/archive.h b/archive.h
index cca5775..f588a09 100644
--- a/archive.h
+++ b/archive.h
@@ -64,7 +64,7 @@ static inline void envelopeFree(struct Envelope envelope) {
 	free(envelope.bcc.addrs);
 }
 
-enum Atom exportThreads(FILE *imap, struct List threads);
+enum Atom exportFetch(FILE *imap, struct List threads);
 void exportData(struct List items);
 
 #define TEMPLATE(...) #__VA_ARGS__
diff --git a/export.c b/export.c
index b1f63b8..2ff6c5d 100644
--- a/export.c
+++ b/export.c
@@ -50,7 +50,7 @@ static void flatten(struct List *flat, struct List nested) {
 	}
 }
 
-enum Atom exportThreads(FILE *imap, struct List threads) {
+enum Atom exportFetch(FILE *imap, struct List threads) {
 	struct List uids = {0};
 	flatten(&uids, threads);
 	for (size_t i = uids.len - 1; i < uids.len; --i) {
@@ -69,7 +69,7 @@ enum Atom exportThreads(FILE *imap, struct List threads) {
 	enum Atom tag = 0;
 	if (!uids.len) goto done;
 
-	tag = atom("exportThreads");
+	tag = atom("exportFetch");
 	fprintf(imap, "%s UID FETCH ", Atoms[tag]);
 	for (size_t i = 0; i < uids.len; ++i) {
 		fprintf(imap, "%s%" PRIu32, (i ? "," : ""), uids.ptr[i].number);