vmail 0.9.8 → 0.9.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/README.markdown +9 -8
- data/lib/vmail.vim +6 -3
- data/lib/vmail/imap_client.rb +6 -1
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -116,12 +116,15 @@ and show the message content in the bottom pane. Pressing ENTER will also move
|
|
116
116
|
the cursor to the message window. If you want to look at a message but keep the
|
117
117
|
cursor in the list window, type `l` (as in `l`ook) instead of ENTER.
|
118
118
|
|
119
|
-
To full-screen the message, press SPACE when the cursor is in the message
|
120
|
-
You can also use the standard Vim key sequence `C-w C-o`.
|
121
|
-
|
119
|
+
To full-screen the message, press SPACE when the cursor is in the message
|
120
|
+
window. You can also use the standard Vim key sequence `C-w C-o`. To go back
|
121
|
+
to the split view, press SPACE or ENTER. (ENTER moves the cursor to the list
|
122
|
+
window.)
|
122
123
|
|
123
|
-
You can full-screen the list window by pressing SPACE while the cursor is in
|
124
|
-
You can also use the standard Vim key sequence `C-w C-o`.
|
124
|
+
You can full-screen the list window by pressing SPACE while the cursor is in
|
125
|
+
it. You can also use the standard Vim key sequence `C-w C-o`. To go back to
|
126
|
+
the split view, press SPACE or ENTER. (ENTER opens a message and moves the
|
127
|
+
cursor to the message window.)
|
125
128
|
|
126
129
|
In the split view, you can jump between the two panes by just pressing ENTER
|
127
130
|
from either window.
|
@@ -173,9 +176,7 @@ To save you keystrokes, vmail provides alternative key mappings for
|
|
173
176
|
* trash/delete: `,#` → `,3`
|
174
177
|
* mark spam: `,!` → `,1`
|
175
178
|
|
176
|
-
These save you from having to press the SHIFT key in each case.
|
177
|
-
these shortcuts do not work with range selections (I don't know why yet). So
|
178
|
-
please use the SHIFT-keyed versions of these commands if you're using a range.
|
179
|
+
These save you from having to press the SHIFT key in each case.
|
179
180
|
|
180
181
|
## Checking for new messages
|
181
182
|
|
data/lib/vmail.vim
CHANGED
@@ -801,9 +801,12 @@ func! s:message_list_window_mappings()
|
|
801
801
|
noremap <silent> <buffer> <leader>! :call <SID>delete_messages("[Gmail]/Spam")<CR>
|
802
802
|
noremap <silent> <buffer> <leader>e :call <SID>archive_messages()<CR>
|
803
803
|
" alt mappings for lazy hands
|
804
|
-
|
805
|
-
|
806
|
-
|
804
|
+
noremap <silent> <buffer> <leader>8 :call <SID>toggle_star()<CR>
|
805
|
+
noremap <silent> <buffer> <leader>3 :call <SID>delete_messages("Deleted")<CR>
|
806
|
+
noremap <silent> <buffer> <leader>1 :call <SID>delete_messages("[Gmail]/Spam")<CR>
|
807
|
+
" nmap <silent> <buffer> <leader>8 <leader>*
|
808
|
+
" nmap <silent> <buffer> <leader>3 <leader>#
|
809
|
+
" nmap <silent> <buffer> <leader>1 <leader>!
|
807
810
|
|
808
811
|
"open a link browser (os x)
|
809
812
|
"autocmd CursorMoved <buffer> call <SID>show_message(0)
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -452,7 +452,12 @@ module Vmail
|
|
452
452
|
return if message_cache[[@mailbox, uid]]
|
453
453
|
fetch_data = reconnect_if_necessary do
|
454
454
|
# log "@imap.uid_fetch #{uid}"
|
455
|
-
@imap.uid_fetch(uid, ["FLAGS", "RFC822", "RFC822.SIZE"])
|
455
|
+
res = @imap.uid_fetch(uid, ["FLAGS", "RFC822", "RFC822.SIZE"])
|
456
|
+
if res.nil?
|
457
|
+
# retry one more time ( find a more elegant way to do this )
|
458
|
+
res = @imap.uid_fetch(uid, ["FLAGS", "RFC822", "RFC822.SIZE"])
|
459
|
+
end
|
460
|
+
res[0]
|
456
461
|
end
|
457
462
|
size = fetch_data.attr["RFC822.SIZE"]
|
458
463
|
mail = Mail.new(fetch_data.attr['RFC822'])
|
data/lib/vmail/version.rb
CHANGED