aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-11-11 14:32:17 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-11-11 14:32:17 -0800
commit95dd5fe5d7e9cd8169a6e3174ea27376acd92870 (patch)
tree086a08792cea3817755584a4dc3cae91851639f8 /lib/notmuch.h
parent1ea0b8bfe164a0f7a3e750236b8aef9b5ab8917e (diff)
notmuch_message_tags_to_maildir_flags: Do nothing outside of "new" and "cur"
Some people use notmuch with non-maildir files, (for example, email messages in MH format, or else cool things like using sluk[*] to suck down feeds into a format that notmuch can index). To better support uses like that, don't do any renaming for files that are not in a directory named either "new" or "cur". [*] https://github.com/krl/sluk/
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index ea12fe76..d2deca1e 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -947,9 +947,13 @@ notmuch_message_maildir_flags_to_tags (notmuch_message_t *message);
*
* Specifically, for each filename corresponding to this message:
*
- * Rename the file so that its filename ends with the sequence ":2,"
- * followed by zero or more of the following single-character flags
- * (in ASCII order):
+ * If the filename is not in a maildir directory, do nothing.
+ * (A maildir directory is determined as a directory named "new" or
+ * "cur".)
+ *
+ * If the filename is in a maildir directory, rename the file so that
+ * its filename ends with the sequence ":2," followed by zero or more
+ * of the following single-character flags (in ASCII order):
*
* 'D' iff the message has the "draft" tag
* 'F' iff the message has the "flagged" tag