<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/lib/directory.cc, branch 0.3.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.3.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.3.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2010-03-09T17:22:29Z</updated>
<entry>
<title>lib: Rename iterator functions to prepare for reverse iteration.</title>
<updated>2010-03-09T17:22:29Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-03-09T17:22:29Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4e5d2f22db290a830c0267f34b519c6138af00ed'/>
<id>urn:sha1:4e5d2f22db290a830c0267f34b519c6138af00ed</id>
<content type='text'>
We rename 'has_more' to 'valid' so that it can function whether
iterating in a forward or reverse direction. We also rename
'advance' to 'move_to_next' to setup parallel naming with
the proposed functions 'move_to_first', 'move_to_last', and
'move_to_previous'.
</content>
</entry>
<entry>
<title>lib: Add non-content terms with a WDF value of 0.</title>
<updated>2010-01-09T19:18:27Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-01-09T19:18:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ccf2e0cc4211c276da1db43cdca7ee11018c391d'/>
<id>urn:sha1:ccf2e0cc4211c276da1db43cdca7ee11018c391d</id>
<content type='text'>
The WDF is the "within-document frequency" value for a particular
term. It's intended to provide an indication of how frequent a term is
within a document, (for use in computing relevance). Xapian's term
generator already computes WDF values when we use that, (which we do
for indexing all mail content).

We don't use the term generator when adding single terms for things
that don't actually appear in the mail document, (such as tags, the
filename, etc.). In this case, the WDF value for these terms doesn't
matter much.

But Xapian's flint backend can be more efficient with changes to terms
that don't affect the document "length". So there's a performance
advantage for manipulating tags (with the flint backend) if the WDF of
these terms is 0.
</content>
</entry>
<entry>
<title>lib: Consolidate checks for read-only database.</title>
<updated>2010-01-07T18:19:44Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-01-07T18:19:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f93b7218c3e2d11c5b3cdd4c367a42ca7a7ede77'/>
<id>urn:sha1:f93b7218c3e2d11c5b3cdd4c367a42ca7a7ede77</id>
<content type='text'>
Previously, many checks were deep in the library just before a cast
operation. These have now been replaced with internal errors and new
checks have instead been added at the beginning of all top-levelentry
points requiring a read-write database.

The new checks now also use a single function for checking and
printing the error message. This will give us a convenient location to
extend the check, (such as based on database version as well).
</content>
</entry>
<entry>
<title>lib: Treat NULL as a valid (and empty) notmuch_filenames_t iterator.</title>
<updated>2010-01-06T22:35:11Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-01-06T22:35:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=957ae198e708dc901e3a8c89b7364c2bc75ce371'/>
<id>urn:sha1:957ae198e708dc901e3a8c89b7364c2bc75ce371</id>
<content type='text'>
This will be convenient to avoid some special-casing in higher-level
code.
</content>
</entry>
<entry>
<title>lib: Implement new notmuch_directory_t API.</title>
<updated>2010-01-06T18:32:06Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-01-05T21:29:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d807e28f43579ecc91aa40ae3e42760991c2f810'/>
<id>urn:sha1:d807e28f43579ecc91aa40ae3e42760991c2f810</id>
<content type='text'>
This new directory ojbect provides all the infrastructure needed to
detect when files or directories are deleted or renamed. There's still
code needed on top of this (within "notmuch new") to actually do that
detection.
</content>
</entry>
</feed>
