[PATCH 3/5] /usr/sbin/sendmail as a default g:notmuch_rb_sendmail

Kirill A. Shutemov kirill at shutemov.name
Mon Jan 28 07:52:18 PST 2013


From: "Kirill A. Shutemov" <kirill at shutemov.name>

It's confusing that we don't have a default sendmail program. Let's use
/usr/sbin/sendmail as reasonable default.

Signed-off-by: Kirill A. Shutemov <kirill at shutemov.name>
---
 notmuch-ruby.vim |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/notmuch-ruby.vim b/notmuch-ruby.vim
index 624987e..81da9b3 100644
--- a/notmuch-ruby.vim
+++ b/notmuch-ruby.vim
@@ -52,6 +52,7 @@ let s:notmuch_rb_folders_default = [
 let s:notmuch_rb_date_format_default = '%d.%m.%y'
 let s:notmuch_rb_datetime_format_default = '%d.%m.%y %H:%M:%S'
 let s:notmuch_rb_reader_default = 'terminal -e "mutt -f %s"'
+let s:notmuch_rb_sendmail_default = '/usr/sbin/sendmail'
 
 if !exists('g:notmuch_rb_date_format')
 	let g:notmuch_rb_date_format = s:notmuch_rb_date_format_default
@@ -65,6 +66,10 @@ if !exists('g:notmuch_rb_reader')
 	let g:notmuch_rb_reader = s:notmuch_rb_reader_default
 endif
 
+if !exists('g:notmuch_rb_sendmail')
+	let g:notmuch_rb_sendmail = s:notmuch_rb_sendmail_default
+endif
+
 function! s:new_file_buffer(type, fname)
 	exec printf('edit %s', a:fname)
 	execute printf('set filetype=notmuch-%s', a:type)
-- 
1.7.10.4



More information about the notmuch mailing list