[PATCH] vim: fix regex after "notmuch show" output change

Tomi Ollila tomi.ollila at iki.fi
Thu Mar 29 22:51:09 PDT 2012


On Fri, Mar 30 2012, Jakob <jakob at pipefour.org> wrote:

> The new field "excluded" was added to the output and made this regex fail.
> ---

LGTM.

Tomi


>  vim/plugin/notmuch.vim |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
> index 21985c7..8f27fb9 100644
> --- a/vim/plugin/notmuch.vim
> +++ b/vim/plugin/notmuch.vim
> @@ -48,7 +48,7 @@ let s:notmuch_defaults = {
>          \ 'g:notmuch_show_part_end_regexp':          'part}'                   ,
>          \ 'g:notmuch_show_marker_regexp':            '\\(message\\|header\\|body\\|attachment\\|part\\)[{}].*$',
>          \
> -        \ 'g:notmuch_show_message_parse_regexp':     '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) filename:\(.*\)$',
> +        \ 'g:notmuch_show_message_parse_regexp':     '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) excluded:\([0-9]*\) filename:\(.*\)$',
>          \ 'g:notmuch_show_tags_regexp':              '(\([^)]*\))$'               ,
>          \
>          \ 'g:notmuch_show_signature_regexp':         '^\(-- \?\|_\+\)$'           ,
> @@ -870,7 +870,8 @@ function! s:NM_cmd_show_parse(inlines)
>                                          let msg['id'] = m[1]
>                                          let msg['depth'] = m[2]
>                                          let msg['match'] = m[3]
> -                                        let msg['filename'] = m[4]
> +                                        let msg['excluded'] = m[4]
> +                                        let msg['filename'] = m[5]
>                                  endif
>  
>                                  let in_message = 1
> -- 
> 1.7.9.1
>
> _______________________________________________
> notmuch mailing list
> notmuch at notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch


More information about the notmuch mailing list