For some emails, notmuch-vim crashes. I can't figure out the reason for
this. The stack trace is:
Error detected while processing function
13_search_show_thread[10]..13_show:
line 39:
NoMethodError: undefined method `mime_type' for nil:NilClass
eval:22:in `block (2 levels) in '
eval:8:in `each'
---
vim/notmuch.txt | 1 +
vim/notmuch.vim | 15 +++
2 files changed, 16 insertions(+)
diff --git a/vim/notmuch.txt b/vim/notmuch.txt
index 43741022..5c5d758e 100644
--- a/vim/notmuch.txt
+++ b/vim/notmuch.txt
@@ -77,6 +77,7 @@ p Save patches
r Reply
? Show thread
---
vim/notmuch.vim | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index ad8b7c80..2c6b471f 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -60,6 +60,7 @@ let s:notmuch_reader_default = 'mutt -f %s'
let
---
vim/notmuch.vim | 20 +---
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index ad8b7c80..299405f4 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -237,7 +237,11 @@ function! s:search_tag(intags)
else
---
vim/notmuch.vim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index ad8b7c80..541698cd 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -666,7 +666,7 @@ ruby << EOF
date =