vmail 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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].
@@ -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('imap.gmail.com', 993, true, nil, false)
36
+ @imap = Net::IMAP.new(@imap_server, @imap_port, true, nil, false)
35
37
  @imap.login(@username, @password)
36
38
  end
37
39
 
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 3
9
- version: 0.4.3
8
+ - 4
9
+ version: 0.4.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi