vmail 2.4.9 → 2.5.0
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/README.markdown +6 -4
- data/lib/vmail.rb +2 -1
- data/lib/vmail.vim +3 -1
- data/lib/vmail/imap_client.rb +2 -2
- data/lib/vmail/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -80,12 +80,14 @@ You can omit the password key-value pair if you'd rather not have the password
|
|
80
80
|
saved in the file. In that case, you'll prompted for the password each time you
|
81
81
|
start Vmail.
|
82
82
|
|
83
|
-
You can also add an `always_cc:` key-value pair. This will pre-insert
|
84
|
-
|
85
|
-
|
83
|
+
You can also add an `always_cc:` key-value pair. This will pre-insert whatever
|
84
|
+
email address you specify in the `cc:` line of any email you start composing in
|
85
|
+
Vmail. You can also add an `always_bcc:` option that works in the same way.
|
86
86
|
|
87
|
-
|
87
|
+
You can add a `vim_opts:` key-value pair to run arbitrary Vim commands when Vmail starts up.
|
88
|
+
For example, to turn on the cursorline, add this to `.vmailrc`:
|
88
89
|
|
90
|
+
vim_opts: set cursorline
|
89
91
|
|
90
92
|
If you want to configure Vmail with multiple Gmail accounts, [here's how][multiaccount].
|
91
93
|
|
data/lib/vmail.rb
CHANGED
@@ -87,7 +87,8 @@ module Vmail
|
|
87
87
|
buffer_file = "vmailbuffer"
|
88
88
|
# invoke vim
|
89
89
|
vimscript = File.expand_path("../vmail.vim", __FILE__)
|
90
|
-
|
90
|
+
vimopts = config['vim_opts']
|
91
|
+
vim_command = "DRB_URI=#{drb_uri} VMAIL_CONTACTS_FILE=#{contacts_file} VMAIL_MAILBOX=#{String.shellescape(mailbox)} VMAIL_QUERY=\"#{query_string}\" #{vim} -S #{vimscript} -c '#{vimopts}' #{buffer_file}"
|
91
92
|
STDERR.puts vim_command
|
92
93
|
STDERR.puts "Using buffer file: #{buffer_file}"
|
93
94
|
File.open(buffer_file, "w") do |file|
|
data/lib/vmail.vim
CHANGED
@@ -49,7 +49,9 @@ function! s:create_list_window()
|
|
49
49
|
setlocal textwidth=0
|
50
50
|
setlocal noreadonly
|
51
51
|
" hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
|
52
|
-
|
52
|
+
|
53
|
+
" let user set this
|
54
|
+
" setlocal cursorline
|
53
55
|
" we need the bufnr to find the window later
|
54
56
|
let s:listbufnr = bufnr('%')
|
55
57
|
let s:listbufname = bufname('%')
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -513,10 +513,10 @@ trap("INT") {
|
|
513
513
|
require 'timeout'
|
514
514
|
puts "Closing imap connection"
|
515
515
|
begin
|
516
|
-
Timeout::timeout(2) do
|
516
|
+
#Timeout::timeout(2) do
|
517
517
|
# just try to quit
|
518
518
|
# $gmail.close
|
519
|
-
end
|
519
|
+
#end
|
520
520
|
rescue Timeout::Error
|
521
521
|
puts "Close connection attempt timed out"
|
522
522
|
end
|
data/lib/vmail/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mail
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project: vmail
|
156
|
-
rubygems_version: 1.8.
|
156
|
+
rubygems_version: 1.8.23
|
157
157
|
signing_key:
|
158
158
|
specification_version: 3
|
159
159
|
summary: A Vim interface to Gmail
|