vmail 0.8.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,6 @@ installation command again.
40
40
 
41
41
  gem install vmail
42
42
 
43
-
44
43
  ## Configuration file
45
44
 
46
45
  To run vmail, create a yaml file called `.vmailrc` and save it either in the
@@ -64,8 +63,10 @@ You can omit the password key-value pair if you'd rather not have the password
64
63
  saved in the file. In that case, you'll prompted for the password each time you
65
64
  start vmail.
66
65
 
67
- If you are behind a firewall that blocks IMAP, there are additional
68
- configuration options that you can use. See below.
66
+ If you are behind a firewall that blocks IMAP, see these [additional
67
+ configuration options][firewall] that you can use.
68
+
69
+ [firewall]:https://github.com/danchoi/vmail/wiki/How-to-use-vmail-behind-a-firewall-that-blocks-IMAP
69
70
 
70
71
  ## Contacts autocompletion
71
72
 
@@ -316,11 +317,15 @@ messages to a file.
316
317
 
317
318
  ## Invoking your web browser
318
319
 
319
- When you're reading a message, `,o` opens the first hyperlink in the document
320
- on or after the cursor in your web browser.
320
+ When you're reading a message, `,o` opens the first hyperlink in the email
321
+ message on or after the cursor in your web browser. `,O` opens all the
322
+ hyperlinks in the message (probably in multiple browser tabs, depending on how
323
+ you set up your web browser). If you first select a range of text with
324
+ hyperlinks in it, both `,o` and `,O` will open all the hyperlinks in those
325
+ selected lines in your browser.
321
326
 
322
327
  When you're reading a message with an html mail part, `,h` saves that part to a
323
- local file (`vmail-htmlpart.html`) and opens it in your normal web browser.
328
+ local file (`part.html`) and opens it in your web browser.
324
329
 
325
330
  By default, the vmail uses the command `open` to launch your web browser. In OS X,
326
331
  this opens URLs and HTML files in the default web browser. You can change the
@@ -432,25 +437,6 @@ vmail gem is downloaded from).
432
437
  [github]:https://github.com/danchoi/vmail
433
438
  [rubygems]:https://rubygems.org/gems/vmail
434
439
 
435
- ## Additional configuration options
436
-
437
- The default IMAP server vmail uses is `imap.gmail.com` and the default port is
438
- `993`. If you want to change these values, e.g, because you are behind a
439
- firewall which blocks IMAP, you can change these values by adding two lines in
440
- your .vmailrc, like so:
441
-
442
- server: localhost
443
- port: 2999
444
-
445
- Then you can create an SSH tunnel, e.g.
446
-
447
- ssh -f user@example.com -L 2999:imap.gmail.com:993 -N
448
-
449
- (Thanks to [Dave Bolton][davebolton] for this patch.)
450
-
451
- [davebolton]:https://github.com/lightningdb
452
-
453
-
454
440
  ## Customizing colors
455
441
 
456
442
  By default, vmail highlights starred messages in bold green against a black
@@ -465,6 +451,8 @@ Type `:help highlight-args` in Vim for more details.
465
451
 
466
452
  Please file bug reports and feature requests in the [vmail github issue tracker][tracker].
467
453
 
454
+ You can also vote up existing feature requests on the issue tracker.
455
+
468
456
  vmail is very young and in beta, so there are bound to be bugs and issues.
469
457
  But in a few weeks, with your help, vmail will become stable.
470
458
 
data/TODO CHANGED
@@ -13,3 +13,10 @@ Fri Dec 17 11:24:05 EST 2010
13
13
 
14
14
  - when showing seqno in message window, get it from the fetched
15
15
  envelope of the message instead of from the message_list item.
16
+
17
+ ------------------------------------------------------------------------
18
+ Sat Dec 18 09:08:47 EST 2010
19
+
20
+ - use IMAP EXISTS command to check for updates.
21
+
22
+
@@ -661,11 +661,40 @@ func! s:maximize_window()
661
661
  endif
662
662
  endfunc
663
663
 
664
- func! s:open_href()
665
- call search('https\?:', 'c')
666
- let href = matchstr(getline(line('.')), 'https\?:\S\+')
667
- let command = s:browser_command . " '" . href . "'"
668
- call system(command)
664
+ " not DRY enough, but fix that later
665
+ func! s:open_href(all) range
666
+ let n = 0
667
+ " range version
668
+ if a:firstline < a:lastline
669
+ let lnum = a:firstline
670
+ while lnum <= a:lastline
671
+ let href = matchstr(getline(lnum), 'https\?:\S\+')
672
+ if href != ""
673
+ let command = s:browser_command . " '" . href . "' &"
674
+ call system(command)
675
+ let n += 1
676
+ endif
677
+ let lnum += 1
678
+ endwhile
679
+ echom 'opened '.n.' links'
680
+ return
681
+ end
682
+ let line = search('https\?:', 'cw')
683
+ if line && a:all
684
+ while line
685
+ let href = matchstr(getline(line('.')), 'https\?:\S\+')
686
+ let command = s:browser_command . " '" . href . "' &"
687
+ call system(command)
688
+ let n += 1
689
+ let line = search('https\?:', 'W')
690
+ endwhile
691
+ echom 'opened '.n.' links'
692
+ else
693
+ let href = matchstr(getline(line('.')), 'https\?:\S\+')
694
+ let command = s:browser_command . " '" . href . "' &"
695
+ call system(command)
696
+ echom 'opened '.href
697
+ endif
669
698
  endfunc
670
699
 
671
700
  " --------------------------------------------------------------------------------
@@ -759,7 +788,8 @@ func! s:global_mappings()
759
788
  " NOTE send_message is a global mapping, so user can load a saved
760
789
  " message from a file and send it
761
790
  nnoremap <silent> <leader>vs :call <SID>send_message()<CR>
762
- noremap <silent> <leader>o :call <SID>open_href()<cr>
791
+ noremap <silent> <leader>o :call <SID>open_href(0)<cr>
792
+ noremap <silent> <leader>O :call <SID>open_href(1)<cr>
763
793
  noremap <silent> <leader>? :call <SID>show_help()<cr>
764
794
  endfunc
765
795
 
@@ -309,7 +309,7 @@ module Vmail
309
309
  }
310
310
  # TODO change this. will throw error now
311
311
  max_seqno = @message_list[-1][:seqno]
312
- log "lookind for seqnos > #{max_seqno}"
312
+ log "looking for seqnos > #{max_seqno}"
313
313
  new_ids = ids.select {|seqno| seqno > max_seqno}
314
314
  @ids = @ids + new_ids
315
315
  log "update: new uids: #{new_ids.inspect}"
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 0
9
- version: 0.8.0
8
+ - 1
9
+ version: 0.8.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi