vmail 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -1
- data/TODO +5 -0
- data/lib/vmail.rb +1 -1
- data/lib/vmail.vim +1 -1
- data/lib/vmail/imap_client.rb +7 -2
- data/lib/vmail/version.rb +1 -1
- data/website/vmail-template.html +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -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.
|
data/lib/vmail.rb
CHANGED
@@ -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
|
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
|
|
data/lib/vmail.vim
CHANGED
@@ -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 "
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -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
|
-
|
79
|
-
|
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
|
data/lib/vmail/version.rb
CHANGED
data/website/vmail-template.html
CHANGED
@@ -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://
|
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
|
|