vmail 1.8.9 → 1.9.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.
@@ -14,6 +14,7 @@ than in any web browser or GUI program.
14
14
  * a Gmail account
15
15
  * a relatively recent version of Vim (Vmail is developed against Vim 7.3)
16
16
  * Ruby 1.9.0 or higher with SSL support compiled in (Vmail is developed using Ruby 1.9.2)
17
+ * `libsqlite3-dev` and `sqlite3` (try installing with `apt-get`, `brew`, `yum`, `emerge`, etc.)
17
18
  * the `lynx` text-only-mode web browser is required to view HTML mail parts in Vmail
18
19
 
19
20
  To install Ruby 1.9.2, I recommend using the [RVM Version Manager][rvm].
@@ -39,6 +39,10 @@ module Vmail
39
39
  $logger = @logger
40
40
  @imap_server = config['server'] || 'imap.gmail.com'
41
41
  @imap_port = config['port'] || 993
42
+ # generic smtp settings
43
+ @smtp_server = config['smtp_server'] || 'smtp.gmail.com'
44
+ @smtp_port = config['smtp_port'] || 587
45
+ @smtp_domain = config['smtp_domain'] || 'gmail.com'
42
46
  current_message = nil
43
47
  end
44
48
 
@@ -432,9 +436,9 @@ EOF
432
436
  end
433
437
 
434
438
  def smtp_settings
435
- [:smtp, {:address => "smtp.gmail.com",
436
- :port => 587,
437
- :domain => 'gmail.com',
439
+ [:smtp, {:address => @smtp_server,
440
+ :port => @smtp_port,
441
+ :domain => @smtp_domain,
438
442
  :user_name => @username,
439
443
  :password => @password,
440
444
  :authentication => 'plain',
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '1.8.9'
2
+ VERSION = '1.9.0'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.8.9
5
+ version: 1.9.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi