about summary refs log tree commit diff
path: root/imbox.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-03-03 17:30:55 -0500
committerJune McEnroe <june@causal.agency>2021-03-03 17:30:55 -0500
commitc6de16f5a91170f7d9749c45cd06a28f528f786d (patch)
treea5fe9cc5ff4750c70794ec5a589f6d36ae1753f8 /imbox.c
parentUse printf for pass (diff)
downloadimbox-c6de16f5a91170f7d9749c45cd06a28f528f786d.tar.gz
imbox-c6de16f5a91170f7d9749c45cd06a28f528f786d.zip
Move default Subject criterion to git-fetch-email
This allows imbox with no criteria to fetch all mail in a mailbox,
and the use of git fetch-email --no-subject to do the same.
Diffstat (limited to '')
-rw-r--r--imbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/imbox.c b/imbox.c
index d3c2bf5..1f65517 100644
--- a/imbox.c
+++ b/imbox.c
@@ -80,7 +80,7 @@ int main(int argc, char *argv[]) {
 	const char *port = "imaps";
 	const char *mailbox = "INBOX";
 
-	const char *subject = "[PATCH";
+	const char *subject = NULL;
 	const char *from = NULL;
 	const char *to = NULL;
 	const char *cc = NULL;
@@ -146,7 +146,7 @@ int main(int argc, char *argv[]) {
 search:;
 	struct List nums = {0};
 	enum Atom search = atom("search");
-	fprintf(imap.w, "%s SEARCH CHARSET UTF-8", Atoms[search]);
+	fprintf(imap.w, "%s SEARCH CHARSET UTF-8 ALL", Atoms[search]);
 	if (subject) fprintf(imap.w, " SUBJECT \"%s\"", subject);
 	if (from) fprintf(imap.w, " FROM \"%s\"", from);
 	if (to) fprintf(imap.w, " TO \"%s\"", to);