vmail 1.7.4 → 1.7.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vmail.vim +5 -4
- data/lib/vmail/imap_client.rb +1 -1
- data/lib/vmail/showing_headers.rb +2 -1
- data/lib/vmail/showing_message.rb +2 -1
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
data/lib/vmail.vim
CHANGED
@@ -224,13 +224,14 @@ function! s:update()
|
|
224
224
|
let command = s:update_command
|
225
225
|
echo "Checking for new messages. Please wait..."
|
226
226
|
let res = system(command)
|
227
|
-
|
227
|
+
let lines = split(res, '\n')
|
228
|
+
if len(lines) > 0
|
228
229
|
setlocal modifiable
|
229
|
-
|
230
|
+
normal gg
|
231
|
+
call append(0, lines)
|
230
232
|
setlocal nomodifiable
|
231
233
|
write!
|
232
|
-
let num = len(
|
233
|
-
call cursor(0, 0)
|
234
|
+
let num = len(lines)
|
234
235
|
redraw
|
235
236
|
echom "You have " . num . " new message" . (num == 1 ? '' : 's') . "!"
|
236
237
|
else
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -18,7 +18,8 @@ module Vmail
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def show_message(message_id, raw=false)
|
21
|
-
|
21
|
+
message_id = message_id.strip.gsub('\\', '')
|
22
|
+
log "Show message: #{message_id.inspect}"
|
22
23
|
return current_message.rfc822 if raw
|
23
24
|
log "Showing message message_id: #{message_id}"
|
24
25
|
res = fetch_and_cache(message_id)
|
data/lib/vmail/version.rb
CHANGED