Re: [PATCH v2 01/11] lib: message: index message file sizes

2017-06-08 Thread David Bremner
As a preliminary note, I think this series will most likely need to adapt to the reindexing series id:20170604123235.24466-2-da...@tethera.net as I think they are touching the same parts of the code. You might want to wait for that to go in (or for it to be cancelled) before reworking your

Re: [PATCH v2 01/11] lib: message: index message file sizes

2017-06-06 Thread David Bremner
Ioan-Adrian Ratiu writes: > notmuch_status_t status; > +unsigned long filesize; > +char *filesize_str; > > status = _notmuch_message_file_get_mime_message (message_file, >_message); > @@ -464,6 +466,14 @@

[PATCH v2 01/11] lib: message: index message file sizes

2017-05-18 Thread Ioan-Adrian Ratiu
Parse & store the file sizes inside notmuch_message_t objects while indexing. This is a useful foundation to build upon to provide per message and per thread size statistics, sorting and filtering mesages based on their sizes, etc. Signed-off-by: Ioan-Adrian Ratiu ---