lib/vmail.vim in vmail-0.5.7 vs lib/vmail.vim in vmail-0.5.8
- old
+ new
@@ -1,7 +1,7 @@
if !exists("g:vmail_flagged_color")
- let g:vmail_flagged_color = "ctermfg=green ctermbg=black"
+ let g:vmail_flagged_color = "ctermfg=green ctermbg=black guifg=green guibg=grey"
endif
let s:mailbox = $VMAIL_MAILBOX
let s:query = $VMAIL_QUERY
let s:browser_command = $VMAIL_BROWSER
let s:append_file = ''
@@ -23,11 +23,10 @@
let s:copy_to_command = s:client_script . "copy_to "
let s:new_message_template_command = s:client_script . "new_message_template "
let s:reply_template_command = s:client_script . "reply_template "
let s:forward_template_command = s:client_script . "forward_template "
let s:deliver_command = s:client_script . "deliver "
-let s:save_draft_command = s:client_script . "save_draft "
let s:save_attachments_command = s:client_script . "save_attachments "
let s:open_html_part_command = s:client_script . "open_html_part "
let s:show_help_command = s:client_script . "show_help"
let s:message_bufname = "MessageWindow"
@@ -604,21 +603,10 @@
redraw
echo "sent! press q to go back to message list"
redraw
endfunction
-func! s:save_draft()
- let mail = join(getline(1,'$'), "\n")
- echo "saving draft"
- call system(s:save_draft_command, mail)
- redraw
- call s:focus_list_window()
- wincmd p
- close!
- echo "draft saved"
-endfunc
-
" --------------------------------------------------------------------------------
" call from inside message window with <Leader>h
func! s:open_html_part()
let command = s:open_html_part_command
@@ -735,10 +723,9 @@
func! s:global_mappings()
" NOTE send_message is a global mapping, so user can load a saved
" message from a file and send it
nnoremap <silent> <leader>vs :call <SID>send_message()<CR>
- nnoremap <silent> <leader>vd :call <SID>save_draft()<CR>
noremap <silent> <leader>o :call <SID>open_href()<cr>
noremap <silent> <leader>? :call <SID>show_help()<cr>
endfunc
"TODO see if using LocalLeader and maplocalleader makes more sense