vmail 0.7.9 → 0.8.0
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/README.markdown +17 -9
- data/lib/vmail.vim +6 -7
- data/lib/vmail/imap_client.rb +1 -1
- data/lib/vmail/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -317,7 +317,7 @@ messages to a file.
|
|
317
317
|
## Invoking your web browser
|
318
318
|
|
319
319
|
When you're reading a message, `,o` opens the first hyperlink in the document
|
320
|
-
on or after the cursor in your
|
320
|
+
on or after the cursor in your web browser.
|
321
321
|
|
322
322
|
When you're reading a message with an html mail part, `,h` saves that part to a
|
323
323
|
local file (`vmail-htmlpart.html`) and opens it in your normal web browser.
|
@@ -329,6 +329,12 @@ before you start vmail, e.g.:
|
|
329
329
|
|
330
330
|
export VMAIL_BROWSER='elinks'
|
331
331
|
|
332
|
+
Also, if your Vim has `netrw` (`:help netrw`), you can open a hyperlink
|
333
|
+
directly in same Vim window by putting the cursor at the beginning of a
|
334
|
+
hyperlink and typing `gf`, or `C-w f` if you want to open the webpage in a
|
335
|
+
split window.
|
336
|
+
|
337
|
+
|
332
338
|
## Search queries
|
333
339
|
|
334
340
|
vmail can generate a message list by performing an IMAP search on the current mailbox.
|
@@ -395,13 +401,15 @@ process after quitting the MacVim app.
|
|
395
401
|
|
396
402
|
## vmail file byproducts
|
397
403
|
|
398
|
-
vmail generates a few
|
399
|
-
|
400
|
-
list. This should get deleted automatically when vmail quits.
|
404
|
+
vmail generates a few files in the current directory when it is running:
|
405
|
+
|
406
|
+
* `vmailbuffer` holds the message list. This file should get deleted automatically when vmail quits.
|
407
|
+
|
408
|
+
* `current_message.txt` holds the current message being shown. Not deleted on quit.
|
409
|
+
|
410
|
+
* `compose_message.txt` is created if you save the buffer for a new message. Not deleted on quit.
|
401
411
|
|
402
|
-
|
403
|
-
new message. vmail creates a `vmail-htmlpart.html` file in the current
|
404
|
-
directory if you open an HTML mail part from vmail.
|
412
|
+
* `part.html` is created if you open an HTML mail part from vmail.
|
405
413
|
|
406
414
|
Finally, vmail logs output to a `vmail.log` file which it creates in the
|
407
415
|
current directory. You can tail this file in a separate terminal window to see
|
@@ -446,8 +454,8 @@ Then you can create an SSH tunnel, e.g.
|
|
446
454
|
## Customizing colors
|
447
455
|
|
448
456
|
By default, vmail highlights starred messages in bold green against a black
|
449
|
-
background. You can customize this setting by adding a line to your
|
450
|
-
file like so:
|
457
|
+
background. You can customize this setting by adding a line to your `~/.vimrc`
|
458
|
+
(not `.vmailrc`) file like so:
|
451
459
|
|
452
460
|
let g:vmail_flagged_color = "ctermfg=yellow ctermbg=black cterm=bold"
|
453
461
|
|
data/lib/vmail.vim
CHANGED
@@ -29,7 +29,8 @@ let s:save_attachments_command = s:client_script . "save_attachments "
|
|
29
29
|
let s:open_html_part_command = s:client_script . "open_html_part "
|
30
30
|
let s:show_help_command = s:client_script . "show_help"
|
31
31
|
|
32
|
-
let s:message_bufname = "
|
32
|
+
let s:message_bufname = "current_message.txt"
|
33
|
+
let s:compose_message_bufname = "compose_message.txt"
|
33
34
|
|
34
35
|
function! VmailStatusLine()
|
35
36
|
return "%<%f\ " . s:mailbox . " " . s:query . "%r%=%-14.(%l,%c%V%)\ %P"
|
@@ -59,11 +60,10 @@ endfunction
|
|
59
60
|
" the message display buffer window
|
60
61
|
function! s:create_message_window()
|
61
62
|
exec "split " . s:message_bufname
|
62
|
-
setlocal
|
63
|
-
" setlocal noswapfile
|
64
|
-
" setlocal nobuflisted
|
63
|
+
setlocal modifiable
|
65
64
|
let s:message_window_bufnr = bufnr('%')
|
66
65
|
call s:message_window_mappings()
|
66
|
+
write
|
67
67
|
close
|
68
68
|
endfunction
|
69
69
|
|
@@ -96,13 +96,12 @@ function! s:show_message(stay_in_message_list)
|
|
96
96
|
redrawstatus
|
97
97
|
let res = system(command)
|
98
98
|
call s:focus_message_window()
|
99
|
-
setlocal modifiable
|
100
99
|
1,$delete
|
101
100
|
put =res
|
102
101
|
" critical: don't call execute 'normal \<cr>'
|
103
102
|
" call feedkeys("<cr>")
|
104
103
|
1delete
|
105
|
-
|
104
|
+
write
|
106
105
|
normal 1Gjk
|
107
106
|
if a:stay_in_message_list
|
108
107
|
call s:focus_list_window()
|
@@ -575,7 +574,7 @@ func! s:open_compose_window(command)
|
|
575
574
|
redraw
|
576
575
|
echo a:command
|
577
576
|
let res = system(a:command)
|
578
|
-
split
|
577
|
+
split s:compose_message_bufname
|
579
578
|
setlocal modifiable
|
580
579
|
wincmd p
|
581
580
|
close!
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -680,7 +680,7 @@ EOF
|
|
680
680
|
@current_mail.body
|
681
681
|
end
|
682
682
|
return if html_part.nil?
|
683
|
-
outfile = '
|
683
|
+
outfile = 'part.html'
|
684
684
|
File.open(outfile, 'w') {|f| f.puts(html_part.decoded)}
|
685
685
|
# client should handle opening the html file
|
686
686
|
return outfile
|
data/lib/vmail/version.rb
CHANGED