vmail 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,9 +2,11 @@
2
2
 
3
3
  vmail is a Vim interface to Gmail.
4
4
 
5
- Why vmail? Because some people are 1000 times more efficient and happy in Vim
5
+ Why vmail? Because some people are 1000 times more efficient and happy in [Vim][vim]
6
6
  than in any web browser or GUI program.
7
7
 
8
+ [vim]:http://www.vim.org/
9
+
8
10
  ## Prerequisites
9
11
 
10
12
  * a Gmail account
data/TODO CHANGED
@@ -8,3 +8,8 @@ Thu Dec 16 20:33:46 EST 2010
8
8
 
9
9
  - let vmailsend take an ARGV of filenames, so use can use globs, etc.
10
10
  and send a bunch of emails at once.
11
+ ------------------------------------------------------------------------
12
+ Fri Dec 17 11:24:05 EST 2010
13
+
14
+ - when showing seqno in message window, get it from the fetched
15
+ envelope of the message instead of from the message_list item.
@@ -63,7 +63,7 @@ module Vmail
63
63
 
64
64
  # invoke vim
65
65
  vimscript = File.expand_path("../vmail.vim", __FILE__)
66
- vim_command = "DRB_URI='#{drb_uri}' VMAIL_CONTACTS_FILE=#{contacts_file} VMAIL_MAILBOX=#{String.shellescape(mailbox)} VMAIL_QUERY=#{String.shellescape(query.join(' '))} #{vim} -S #{vimscript} #{buffer_file}"
66
+ vim_command = "DRB_URI=#{drb_uri} VMAIL_CONTACTS_FILE=#{contacts_file} VMAIL_MAILBOX=#{String.shellescape(mailbox)} VMAIL_QUERY=#{String.shellescape(query.join(' '))} #{vim} -S #{vimscript} #{buffer_file}"
67
67
  puts vim_command
68
68
  system(vim_command)
69
69
 
@@ -8,7 +8,7 @@ let s:append_file = ''
8
8
 
9
9
  let s:drb_uri = $DRB_URI
10
10
 
11
- let s:client_script = "vmail_client " . s:drb_uri . " "
11
+ let s:client_script = "vmail_client " . shellescape(s:drb_uri) . " "
12
12
  let s:set_window_width_command = s:client_script . "window_width= "
13
13
  let s:list_mailboxes_command = s:client_script . "list_mailboxes "
14
14
  let s:show_message_command = s:client_script . "show_message "
@@ -75,8 +75,13 @@ module Vmail
75
75
  def get_highest_message_id
76
76
  # get highest message ID
77
77
  res = @imap.fetch([1,"*"], ["ENVELOPE"])
78
- @num_messages = res[-1].seqno
79
- log "HIGHEST ID: #@num_messages"
78
+ if res
79
+ @num_messages = res[-1].seqno
80
+ log "HIGHEST ID: #@num_messages"
81
+ else
82
+ @num_messages = 1
83
+ log "NO HIGHEST ID: setting @num_messages to 1"
84
+ end
80
85
  end
81
86
 
82
87
  def get_mailbox_status
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.7.6"
2
+ VERSION = "0.7.7"
3
3
  end
@@ -38,7 +38,7 @@
38
38
  <li><a href="https://github.com/danchoi/vmail/issues">issue tracker</a></li>
39
39
  <li><a href="https://github.com/danchoi/vmail/commits/master">commit history</a></li>
40
40
  <li><a href="https://github.com/danchoi/vmail/wiki">wiki</a></li>
41
- <li><a href="http://www.google.com/search?ie=UTF-8&q=vmail+vim#sclient=psy&hl=en&tbo=1&tbs=mbl:1%2Cmbl_sv%3A0&q=vmail+vim&aq=f&aqi=&aql=&oq=&gs_rfai=&pbx=1&fp=9ea8abb9b99e5b2d">web reactions</a></li>
41
+ <li><a href="http://twitter.com/#!/search/vmail%20vim">tweets about</a></li>
42
42
  </ul>
43
43
  <h4>share this</h4>
44
44
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 6
9
- version: 0.7.6
8
+ - 7
9
+ version: 0.7.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi