aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-08-01lib: add notmuch_message_reindexDaniel Kahn Gillmor
This new function asks the database to reindex a given message. The parameter `indexopts` is currently ignored, but is intended to provide an extensible API to support e.g. changing the encryption or filtering status (e.g. whether and how certain non-plaintext parts are indexed).
2017-08-01lib: add _notmuch_message_remove_indexed_termsDavid Bremner
Testing will be provided via use in notmuch_message_reindex
2017-08-01cli/search: print total number of files matched in summary output.David Bremner
The structured output formats already have all of the filenames. This is an easy bit of UI change to make the multiple files visible.
2017-08-01lib: add notmuch_thread_get_total_filesDavid Bremner
This is relatively inexpensive in terms of run time and implementation cost as we are already traversing the list of messages in a thread.
2017-08-01lib: add notmuch_message_count_filesDavid Bremner
This operation is relatively inexpensive, as the needed metadata is already computed by our lazy metadata fetching. The goal is to support better UI for messages with multipile files.
2017-08-01lib: index message files with duplicate message-idsDavid Bremner
The corresponding xapian document just gets more terms added to it, but this doesn't seem to break anything. Values on the other hand get overwritten, which is a bit annoying, but arguably it is not worse to take the values (from, subject, date) from the last file indexed rather than the first.
2017-08-01test: add known broken tests for duplicate message idDavid Bremner
There are many other problems that could be tested, but these ones we have some hope of fixing because it doesn't require UI changes, just indexing changes.
2017-08-01lib: refactor notmuch_database_add_message header parsingDavid Bremner
This function is large and hard to understand and modify. Start to break it down into meaningful pieces.
2017-08-01lib: factor out message-id parsing to separate file.David Bremner
This is really pure C string parsing, and doesn't need to be mixed in with the Xapian/C++ layer. Although not strictly necessary, it also makes it a bit more natural to call _parse_message_id from multiple compilation units.
2017-08-01lib/n_d_add_message: refactor test for new/ghost messagesDavid Bremner
The switch is easier to understand than the side effects in the if test. It also potentially allows us more flexibility in breaking up this function into smaller pieces, since passing private_status around is icky.
2017-08-01lib: isolate n_d_add_message and helper functions into own fileDavid Bremner
'database.cc' is becoming a monster, and it's hard to follow what the various static functions are used for. It turns out that about 1/3 of this file notmuch_database_add_message and helper functions not used by any other function. This commit isolates this code into it's own file. Some side effects of this refactoring: - find_doc_ids becomes the non-static (but still private) _notmuch_database_find_doc_ids - a few instances of 'string' have 'std::' prepended, avoiding the need for 'using namespace std;' in the new file.
2017-07-29Merge tag 'debian/0.25-2'David Bremner
uploaded to unstable
2017-07-26debian: update gmime dependenciesdebian/0.25-2David Bremner
- build against gmime 3.0 by preference - drop gmime-2.4-dev, no longer supported upstream
2017-07-26Merge tag 'debian/0.25-1'David Bremner
notmuch Debian 0.25-1 upload (same as 0.25)
2017-07-25debian: add changelog entry for 0.25debian/0.25-10.25David Bremner
2017-07-25NEWS: set dateDavid Bremner
2017-07-25version: bump to 0.25David Bremner
2017-07-25NEWS: formatting fixupsDavid Bremner
These are from Tomi, split from the previous commit
2017-07-25NEWS for release 0.25: Emacs: support for stashing message timestampTomi Ollila
2017-07-20emacs: Add commentary for MELPA usersDavid Bremner
We have a steady trickle of people using notmuch-emacs from melpa with distro packages of notmuch, and then being confused when it doesn't work. Try to warn people what a foot-gun this is; this commentary should be copied to the melpa web site.
2017-07-18debian: changelog for 0.25~rc1-2debian/0.25_rc1-2David Bremner
2017-07-18debian: finalize changelog for 0.25~rc1-1debian/0.25_rc1-10.25_rc1David Bremner
2017-07-18version: bump to 0.25~rc1David Bremner
2017-07-18debian: allow emacs25 as a build dependDavid Bremner
It's a bit crazy to require emacs 24 installed just to build, when it isn't required to run.
2017-07-18emacs: convert remaining format-versions from 3 to 4David Bremner
This is needed for consistent beheviour between notmuch built against gmime-2.6 and gmime-3.0 w.r.t. error reporting.
2017-07-18fix the generated documentation outputDaniel Kahn Gillmor
2017-07-18Fix orthographyDaniel Kahn Gillmor
2017-07-18use modern debian/copyrightDaniel Kahn Gillmor
2017-07-18avoid false lintian warning about "iff"Daniel Kahn Gillmor
2017-07-18resolve lintian tag debhelper-but-no-misc-depends notmuch-emacsDaniel Kahn Gillmor
This is likely not strictly necessary given that notmuch-emacs is a transitional package. But having a simple consistency until we eventually remove the transitional notmuch-emacs package seems ok too, and fewer arbitrary lintian warnings will make real lintian warnings more visible.
2017-07-18fix Python capitalizationDaniel Kahn Gillmor
2017-07-18explicitly mark notmuch-emacs as transitionalDaniel Kahn Gillmor
2017-07-18Bump standards version to 4.0.0 (no changes needed)Daniel Kahn Gillmor
Some things that might be interesting (and are acceptable and supported under 4.0.0, though not required) are: * supporting DEB_BUILD_OPTIONS tag nodoc wihle tagging build-deps (we could put python-sphinx into <!nodoc>, for example) * splitting out Build-Depends-Arch from Build-Depends
2017-07-18Drop duplicate Section header for notmuch-vimDaniel Kahn Gillmor
Resolves lintian binary-control-field-duplicates-source
2017-07-18NEWS: drop redundant mention of dump fixDavid Bremner
This actually happened in 0.24.x.
2017-07-17Merge tag 'debian/0.25_rc0-2'David Bremner
merge 32 bit compilation fix
2017-07-17debian: changelog stanza for 0.25~rc0-2debian/0.25_rc0-2David Bremner
2017-07-17util: make g_mime_utils_header_decode_date_unix match prototypeDavid Bremner
The problem shows up on 32 bit architectures where sizeof(time_t) != sizeof(gint64). Upcasting the 32 bit time_t to a 64 bit integer should hopefully be safe.
2017-07-16NEWS: Initial writeup for my contributions to 0.25David Bremner
2017-07-16Merge tag '0.25_rc0'David Bremner
notmuch 0.25~rc0 release
2017-07-16debian: note two closed bugs in changelogdebian/0.25_rc0-10.25_rc0David Bremner
2017-07-16debian: don't create obsolete bash completion dirDavid Bremner
2017-07-16debian: set distribution to experimental, finalize changelogDavid Bremner
2017-07-16debian: add more c++ gunk to symbols fileDavid Bremner
2017-07-16debian: bump changelog version, mention SONAME bumpDavid Bremner
2017-07-16NEWS: start entry for 0.25David Bremner
2017-07-16version: bump version to 0.25~rc0David Bremner
2017-07-15crypto: clean up unused definitions in gmime 3.0David Bremner
based on the same patch from dkg as the previous commit.
2017-07-15crypto: Avoid explicit handling of GMimeCryptoContext in gmime 3David Bremner
gmime 3.0 knows how to select the correct GMimeCryptoContext automatically, so a bunch of the code in notmuch can be dropped in that case. The #ifdef removal of the crypto stuff is better than #define aliasing in gmime-extra.h for this stuff. When built against gmime 3.0: * it reduces compiled code, and * it avoids initializing unused gpgme contexts (based on a patch from dkg)
2017-07-15cli/crypto: eliminated compiler warnings about unused argumentsDavid Bremner
These are due to (excessively?) fancy macro definitions in gmime-extra.h