vmail 1.4.8 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vmail.vim +17 -17
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail.vim
CHANGED
@@ -223,7 +223,7 @@ endfunc
|
|
223
223
|
" gets new messages since last update
|
224
224
|
function! s:update()
|
225
225
|
let command = s:update_command
|
226
|
-
echo "
|
226
|
+
echo "Checking for new messages. please wait..."
|
227
227
|
let res = system(command)
|
228
228
|
if len(split(res, "\n", '')) > 0
|
229
229
|
setlocal modifiable
|
@@ -235,10 +235,10 @@ function! s:update()
|
|
235
235
|
call cursor(line + 1, 0)
|
236
236
|
normal z.
|
237
237
|
redraw
|
238
|
-
echom "
|
238
|
+
echom "You have " . num . " new message" . (num == 1 ? '' : 's') . "!"
|
239
239
|
else
|
240
240
|
redraw
|
241
|
-
echom "
|
241
|
+
echom "No new messages"
|
242
242
|
endif
|
243
243
|
endfunction
|
244
244
|
|
@@ -253,9 +253,9 @@ function! s:toggle_star() range
|
|
253
253
|
endif
|
254
254
|
let command = s:flag_command . join(uid_set, ',') . action . " Flagged"
|
255
255
|
if nummsgs == 1
|
256
|
-
echom "
|
256
|
+
echom "Toggling flag on message"
|
257
257
|
else
|
258
|
-
echom "
|
258
|
+
echom "Toggling flags on " . nummsgs . " messages"
|
259
259
|
endif
|
260
260
|
" toggle * on lines
|
261
261
|
let res = system(command)
|
@@ -277,9 +277,9 @@ function! s:toggle_star() range
|
|
277
277
|
write
|
278
278
|
redraw
|
279
279
|
if nummsgs == 1
|
280
|
-
echom "
|
280
|
+
echom "Toggled flag on message"
|
281
281
|
else
|
282
|
-
echom "
|
282
|
+
echom "Toggled flags on " . nummsgs . " messages"
|
283
283
|
endif
|
284
284
|
endfunction
|
285
285
|
|
@@ -324,12 +324,12 @@ func! s:append_messages_to_file() range
|
|
324
324
|
let nummsgs = len(uid_set)
|
325
325
|
let append_file = input("print messages to file: ", s:append_file)
|
326
326
|
if append_file == ''
|
327
|
-
echom "
|
327
|
+
echom "Canceled"
|
328
328
|
return
|
329
329
|
endif
|
330
330
|
let s:append_file = append_file
|
331
331
|
let command = s:append_to_file_command . join(uid_set, ',') . ' ' . s:append_file
|
332
|
-
echo "
|
332
|
+
echo "Appending " . nummsgs . " message" . (nummsgs == 1 ? '' : 's') . " to " . s:append_file . ". please wait..."
|
333
333
|
let res = system(command)
|
334
334
|
echo res
|
335
335
|
redraw
|
@@ -373,7 +373,7 @@ function! s:complete_move_to_mailbox()
|
|
373
373
|
let command = s:move_to_command . s:uid_set . ' ' . shellescape(mailbox)
|
374
374
|
endif
|
375
375
|
redraw
|
376
|
-
echo "
|
376
|
+
echo "Moving uids ". s:uid_set . " to mailbox " . mailbox
|
377
377
|
let res = system(command)
|
378
378
|
setlocal modifiable
|
379
379
|
if !s:copy_to_mailbox
|
@@ -477,14 +477,14 @@ function! s:select_mailbox()
|
|
477
477
|
let s:query = "100 all"
|
478
478
|
let command = s:select_mailbox_command . shellescape(s:mailbox)
|
479
479
|
redraw
|
480
|
-
echom "
|
480
|
+
echom "Selecting mailbox: ". s:mailbox . ". please wait..."
|
481
481
|
call system(command)
|
482
482
|
redraw
|
483
483
|
" now get latest 100 messages
|
484
484
|
call s:focus_list_window()
|
485
485
|
setlocal modifiable
|
486
486
|
let command = s:search_command . shellescape("100 all")
|
487
|
-
echo "
|
487
|
+
echo "Loading messages..."
|
488
488
|
let res = system(command)
|
489
489
|
silent 1,$delete
|
490
490
|
silent! put! =res
|
@@ -494,7 +494,7 @@ function! s:select_mailbox()
|
|
494
494
|
write
|
495
495
|
normal z.
|
496
496
|
redraw
|
497
|
-
echom "
|
497
|
+
echom "Current mailbox: ". s:mailbox
|
498
498
|
endfunction
|
499
499
|
|
500
500
|
func! s:search_query()
|
@@ -517,7 +517,7 @@ function! s:do_search()
|
|
517
517
|
redraw
|
518
518
|
call s:focus_list_window()
|
519
519
|
setlocal modifiable
|
520
|
-
echo "
|
520
|
+
echo "Running query on " . s:mailbox . ": " . s:query . ". please wait..."
|
521
521
|
let res = system(command)
|
522
522
|
silent! 1,$delete
|
523
523
|
silent! put! =res
|
@@ -531,7 +531,7 @@ function! s:more_messages()
|
|
531
531
|
let line = getline(line('.'))
|
532
532
|
let seqno = get(split(matchstr(line, '\d\+:\d\+$'), ':'), 0)
|
533
533
|
let command = s:more_messages_command . seqno
|
534
|
-
echo "
|
534
|
+
echo "Fetching more messages. please wait..."
|
535
535
|
let res = system(command)
|
536
536
|
setlocal modifiable
|
537
537
|
let lines = split(res, "\n")
|
@@ -628,12 +628,12 @@ endfunc
|
|
628
628
|
|
629
629
|
function! s:send_message()
|
630
630
|
let mail = join(getline(1,'$'), "\n")
|
631
|
-
echo "
|
631
|
+
echo "Sending message"
|
632
632
|
call system(s:deliver_command, mail)
|
633
633
|
redraw
|
634
634
|
call s:close_and_focus_list_window()
|
635
|
-
echom "Message sent!"
|
636
635
|
redraw
|
636
|
+
echom "Message sent!"
|
637
637
|
endfunction
|
638
638
|
|
639
639
|
" --------------------------------------------------------------------------------
|
data/lib/vmail/version.rb
CHANGED