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

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

Date: Sat, 05 Apr 2014 20:42:49 +0300

To: notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


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

> Jani Nikula <jani@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

Thread: