vmail 0.4.3 → 0.4.4
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 +18 -0
- data/lib/vmail/imap_client.rb +3 -1
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -63,6 +63,8 @@ You can omit the password key-value pair if you'd rather not have the password
|
|
63
63
|
saved in the file. In that case, you'll prompted for the password each time you
|
64
64
|
start vmail.
|
65
65
|
|
66
|
+
|
67
|
+
|
66
68
|
## Contacts autocompletion
|
67
69
|
|
68
70
|
vmail uses Vim autocompletion to help you auto-complete email addresses.
|
@@ -398,6 +400,22 @@ vmail gem is downloaded from).
|
|
398
400
|
[github]:https://github.com/danchoi/vmail
|
399
401
|
[rubygems]:https://rubygems.org/gems/vmail
|
400
402
|
|
403
|
+
## Additional configuration options
|
404
|
+
|
405
|
+
The default IMAP server vmail uses is 'imap.gmail.com` and the default port is
|
406
|
+
`993`. If you want to change these values, e.g, because you are behind a
|
407
|
+
firewall which blocks IMAP, you can change these values by specifying new ones
|
408
|
+
in your .vmailrc, like so:
|
409
|
+
|
410
|
+
server: localhost
|
411
|
+
port: 2999
|
412
|
+
|
413
|
+
Then you can create an SSH tunnel, e.g.
|
414
|
+
|
415
|
+
ssh -f user@example.com -L 2999:imap.gmail.com:993 -N
|
416
|
+
|
417
|
+
(Thanks to Dave Bolton for this patch.)
|
418
|
+
|
401
419
|
## Bug reports, feature requests
|
402
420
|
|
403
421
|
Please file bug reports and feature requests in the [vmail github issue tracker][tracker].
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -28,10 +28,12 @@ module Vmail
|
|
28
28
|
@logger.level = Logger::DEBUG
|
29
29
|
@current_mail = nil
|
30
30
|
@current_id = nil
|
31
|
+
@imap_server = config['server'] || 'imap.gmail.com'
|
32
|
+
@imap_port = config['port'] || 993
|
31
33
|
end
|
32
34
|
|
33
35
|
def open
|
34
|
-
@imap = Net::IMAP.new(
|
36
|
+
@imap = Net::IMAP.new(@imap_server, @imap_port, true, nil, false)
|
35
37
|
@imap.login(@username, @password)
|
36
38
|
end
|
37
39
|
|
data/lib/vmail/version.rb
CHANGED