vmail 0.9.2 → 0.9.3
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 +2 -2
- data/lib/vmail/imap_client.rb +2 -2
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/lib/vmail.vim
CHANGED
@@ -492,8 +492,8 @@ function! s:select_mailbox()
|
|
492
492
|
let s:mailbox = mailbox
|
493
493
|
let s:query = "100 all"
|
494
494
|
let command = s:select_mailbox_command . shellescape(s:mailbox)
|
495
|
-
|
496
|
-
|
495
|
+
redraw
|
496
|
+
echom "selecting mailbox ". s:mailbox ". please wait..."
|
497
497
|
call system(command)
|
498
498
|
redraw
|
499
499
|
" now get latest 100 messages
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -245,7 +245,7 @@ module Vmail
|
|
245
245
|
].join(' | ')
|
246
246
|
{:uid => uid, :seqno => seqno, :row_text => row_text}
|
247
247
|
rescue
|
248
|
-
log "error extracting header for uid #{uid} seqno #{seqno}:
|
248
|
+
log "error extracting header for uid #{uid} seqno #{seqno}: #$!\n#{$!.backtrace}"
|
249
249
|
row_text = "#{seqno.to_s} : error extracting this header"
|
250
250
|
{:uid => uid, :seqno => seqno, :row_text => row_text}
|
251
251
|
end
|
@@ -255,7 +255,7 @@ module Vmail
|
|
255
255
|
# borrowed from ActionView/Helpers
|
256
256
|
def number_to_human_size(number)
|
257
257
|
if number.to_i < 1024
|
258
|
-
|
258
|
+
"<1kb" # round up to 1kh
|
259
259
|
else
|
260
260
|
max_exp = UNITS.size - 1
|
261
261
|
exponent = (Math.log(number) / Math.log(1024)).to_i # Convert to base 1024
|
data/lib/vmail/version.rb
CHANGED