about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--git-fetch-email.sh1
-rw-r--r--imbox.14
-rw-r--r--imbox.c4
3 files changed, 4 insertions, 5 deletions
diff --git a/git-fetch-email.sh b/git-fetch-email.sh
index 7ceecc9..e3fc953 100644
--- a/git-fetch-email.sh
+++ b/git-fetch-email.sh
@@ -33,6 +33,7 @@ seen=$(git config --type bool fetchemail.markSeen)
 move=$(git config fetchemail.moveTo)
 [ "${unseen}" = 'false' ] && unseen=
 [ "${seen}" = 'false' ] && seen=
+: ${subject:='[PATCH'}
 
 OPTS_SPEC="\
 git fetch-email [<options>]
diff --git a/imbox.1 b/imbox.1
index bd66a80..799351e 100644
--- a/imbox.1
+++ b/imbox.1
@@ -1,4 +1,4 @@
-.Dd February 24, 2021
+.Dd March  3, 2021
 .Dt IMBOX 1
 .Os
 .
@@ -27,8 +27,6 @@ to the mboxrd format on standard output.
 Messages matching the criteria set by
 .Fl CFSTU
 are exported.
-The default criterion is
-.Fl S Cm '[PATCH' .
 .
 .Pp
 IMAP over TLS without STARTTLS is assumed.
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);