Better something than nothing.

Signed-off-by: Felipe Contreras <felipe.contre...@gmail.com>
---
 vim/notmuch.vim | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vim/notmuch.vim b/vim/notmuch.vim
index e2362a2d..dd715828 100644
--- a/vim/notmuch.vim
+++ b/vim/notmuch.vim
@@ -333,7 +333,7 @@ ruby << EOF
                        b << "Date: %s" % msg['date']
                        nm_m.body_start = b.count
                        if part
-                               b << "--- %s ---" % part.mime_type
+                               b << "--- %s ---" % [part.mime_type || 'none']
                                part.convert.each_line do |l|
                                        b << l.chomp
                                end
@@ -925,7 +925,7 @@ ruby << EOF
 
                        def find_first_text
                                return self if not multipart?
-                               return text_part || html_part
+                               return text_part || html_part || parts.first
                        end
 
                        def convert
-- 
2.31.0
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-le...@notmuchmail.org

Reply via email to