Hi. I've been playing with notmuch + the vim plugin and been getting "ERROR PARSING" displayed. Turns out this is due to lines like: thread:55334d46382493cd49226a1a20ad335f 2000-11-20 [1/1] ; New Enquiry (inbox unread) where the author of the mail is empty. The simple patch below seems to make things happier for me. Signed-Off-By: Jonathan McDowell <noodles@earth.li> ----- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index b415f50..728adaa 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -249,7 +249,7 @@ function! s:NM_cmd_search(words) setlocal nowrap endfunction function! s:NM_cmd_search_fmtline(line) - let m = matchlist(a:line, '^\(thread:\S\+\)\s\([^]]\+\]\) \([^;]\+\); \(.*\) (\([^(]*\))$') + let m = matchlist(a:line, '^\(thread:\S\+\)\s\([^]]\+\]\) \([^;]*\); \(.*\) (\([^(]*\))$') if !len(m) return 'ERROR PARSING: ' . a:line endif ----- J. -- ] http://www.earth.li/~noodles/ [] "Why 'maybe' for everything?" "I'm [ ] PGP/GPG Key @ the.earth.li [] using fluffy logic." [ ] via keyserver, web or email. [] [ ] RSA: 4096/2DA8B985 [] [