vmail 2.9.1 → 2.9.2

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.
Files changed (3) hide show
  1. data/lib/vmail.rb +12 -2
  2. data/lib/vmail/version.rb +1 -1
  3. metadata +2 -2
@@ -88,7 +88,17 @@ module Vmail
88
88
  vimopts = config['vim_opts']
89
89
  $drb_uri = drb_uri
90
90
  server_name = "VMAIL:#{ config['username'] }"
91
- vim_command = "DRB_URI=#{drb_uri} VMAIL_CONTACTS_FILE=#{contacts_file} VMAIL_MAILBOX=#{String.shellescape(mailbox)} VMAIL_QUERY=\"#{query_string}\" #{vim} --servername #{ server_name } -S #{vimscript} -c '#{vimopts}' #{buffer_file}"
91
+
92
+ vim_options = {
93
+ 'DRB_URI' => drb_uri,
94
+ 'VMAIL_CONTACTS_FILE' => contacts_file,
95
+ 'VMAIL_MAILBOX' => String.shellescape(mailbox),
96
+ 'VMAIL_QUERY' => %("#{ query_string }")
97
+ }
98
+
99
+ vim_command = "#{vim} --servername #{ server_name } -S #{vimscript} -c '#{vimopts}' #{buffer_file}"
100
+
101
+ STDERR.puts vim_options
92
102
  STDERR.puts vim_command
93
103
  STDERR.puts "Using buffer file: #{buffer_file}"
94
104
  File.open(buffer_file, "w") do |file|
@@ -96,7 +106,7 @@ module Vmail
96
106
  file.puts "Please wait while I fetch your messages.\n\n\n"
97
107
  end
98
108
 
99
- system(vim_command)
109
+ system(vim_options, vim_command)
100
110
 
101
111
  if vim == 'mvim' || vim == 'gvim'
102
112
  DRb.thread.join
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.9.1'
2
+ VERSION = '2.9.2'
3
3
  end
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.9.1
4
+ version: 2.9.2
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: 2014-07-17 00:00:00.000000000 Z
12
+ date: 2014-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail