vmail 1.8.9 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -0
- data/lib/vmail/imap_client.rb +7 -3
- data/lib/vmail/version.rb +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -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].
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -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 =>
|
436
|
-
:port =>
|
437
|
-
:domain =>
|
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',
|
data/lib/vmail/version.rb
CHANGED