[PATCH v5 1/2] lib: drop support for single-message mbox files

Tomi Ollila tomi.ollila at iki.fi
Sat Apr 5 10:42:49 PDT 2014


On Sat, Apr 05 2014, David Bremner <david at tethera.net> wrote:

> Jani Nikula <jani at nikula.org> writes:
>
>> We've supported mbox files containing a single message for historical
>> reasons, but the support has been deprecated, with a warning message
>> while indexing, since Notmuch 0.15. Finally drop the support, and
>> consider all mbox files non-email.
>
> series pushed.


For now, anyone who wants to check their mail storage whether this have
any effect:

$ find . -type f | xargs head -1 | grep -B1 '^From '

(I got zero results :D on this machine; have to test on another...)

----

Quickly crafted other test: regexp (and head -1) may be incomplete...

$ find . -type f | xargs head -1 | grep -B1 -v -e '^[a-zA-Z_-]*:' -e '==.*==' -e '^$'

The first one will find any emails that were found last time but would
not be found (as emails) after e.g. dump-restore-reindex. Second one
would find (some/most?) emails that weren't indexed in the first place...


> d


Tomi


More information about the notmuch mailing list