vmail 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- echo "selecting mailbox ". s:mailbox ". please wait..."
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
@@ -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
- number = 1024 # round up to 1kh
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
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 2
9
- version: 0.9.2
8
+ - 3
9
+ version: 0.9.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi