notmuch/lib
Carl Worth 404db1de90 maildir_flags_to_tags: Avoid interpreting "no info" as "no flags set".
If a filename has no maildir info at all, (that is, it does not
contain the sequence ":2,"), we consider this distinct from a filename
with an empty maildir info, (the ":2," separator is present, but no
flags characters follow).

Specifically, we regard a missing info field as providing no
information, so tags will remain unchanged. On the other hand, an info
field that is present but has no flags set will cause various tags to
be cleared, (or in the case of "unread", added).

This fixes the "remove info" case of the maildir-sync tests in the
test suite.
2010-11-11 03:40:19 -08:00
..
database-private.h lib: Rework interface for maildir_flags synchronization 2010-11-11 03:40:19 -08:00
database.cc lib: Remove the notion of TAGS_INVALID 2010-11-11 03:40:19 -08:00
directory.cc lib: Add new, public notmuch_message_get_filenames 2010-11-11 03:40:19 -08:00
filenames.c lib: Add new, public notmuch_message_get_filenames 2010-11-11 03:40:19 -08:00
index.cc lib: Add some missing static qualifiers. 2010-11-01 21:58:43 -07:00
libsha1.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
libsha1.h lib: Add GCC visibility(hidden) pragmas to private header files. 2010-11-01 22:35:48 -07:00
Makefile Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. 2010-01-06 10:32:06 -08:00
Makefile.local lib: Add new implementation of notmuch_filenames_t 2010-11-11 03:40:19 -08:00
message-file.c Make Received: header special in notmuch_message_file_get_header 2010-04-26 14:44:06 -07:00
message.cc maildir_flags_to_tags: Avoid interpreting "no info" as "no flags set". 2010-11-11 03:40:19 -08:00
messages.c lib: Add new implementation of notmuch_filenames_t 2010-11-11 03:40:19 -08:00
notmuch-private.h lib: Add new, public notmuch_message_get_filenames 2010-11-11 03:40:19 -08:00
notmuch.h lib: Document that absence of maildir flags can also remove/add tags 2010-11-11 03:40:19 -08:00
query.cc lib: Eliminate some redundant includes of xapian.h 2010-11-01 23:24:40 -07:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
tags.c lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
thread.cc lib: Eliminate some redundant includes of xapian.h 2010-11-01 23:24:40 -07:00
xutil.c xutil: Implement xstrndup without relying on strndup. 2009-12-01 12:51:39 -08:00
xutil.h lib: Add GCC visibility(hidden) pragmas to private header files. 2010-11-01 22:35:48 -07:00