vmail 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,10 @@ Your Gmail account should be [IMAP-enabled][gmailimap].
21
21
 
22
22
  [gmailimap]:http://mail.google.com/support/bin/answer.py?hl=en&answer=77695
23
23
 
24
+ If you want to use `elinks` to display HTML parts, [here are instructions][elinks-tip].
25
+
26
+ [elinks-tip]:https://github.com/danchoi/vmail/wiki/How-to-use-elinks-to-display-html-parts-of-emails
27
+
24
28
  ## Installation
25
29
 
26
30
  gem install vmail
@@ -167,7 +171,9 @@ To save you keystrokes, vmail provides alternative key mappings for
167
171
  * trash/delete: `,#` → `,3`
168
172
  * mark spam: `,!` → `,1`
169
173
 
170
- These save you from having to press the SHIFT key in each case.
174
+ These save you from having to press the SHIFT key in each case. But note that
175
+ these shortcuts do not work with range selections (I don't know why yet). So
176
+ please use the SHIFT-keyed versions of these commands if you're using a range.
171
177
 
172
178
  ## Checking for new messages
173
179
 
@@ -263,7 +269,8 @@ you've composed with correct headers and saved to a file, like so:
263
269
 
264
270
  vmailsend < my_message.txt
265
271
 
266
- vmailsend uses your `.vmailrc` configuration.
272
+ vmailsend uses your `.vmailrc` configuration and assumes that you saved your
273
+ password in it.
267
274
 
268
275
  ## Attachments
269
276
 
@@ -302,10 +309,10 @@ composition window:
302
309
  I think you'll find this stuff interesting.
303
310
 
304
311
 
305
- The `attach:` block is a YAML list. The items are paths (either relative or
306
- absolute) to the files you want to attach to your message. Note that you can
307
- also specify a directory, in which case vmail attaches every file it finds in
308
- that directory.
312
+ The `attach:` block is a YAML list. The items are paths (either relative to the
313
+ current directory or absolute) to the files you want to attach to your message.
314
+ Note that you can also specify a directory, in which case vmail attaches every
315
+ file it finds in that directory.
309
316
 
310
317
  One thing vmail doesn't do yet is let you forward a message with all its
311
318
  attachments intact. This feature will be implemented in the near future.
@@ -315,7 +322,7 @@ attachments intact. This feature will be implemented in the near future.
315
322
  `,vp` from the message list prints (appends) the text content of all the selected
316
323
  messages to a file.
317
324
 
318
- ## Invoking your web browser
325
+ ## Opening hyperlinks and HTML parts in your web browser
319
326
 
320
327
  When you're reading a message, `,o` opens the first hyperlink in the email
321
328
  message on or after the cursor in your web browser. `,O` opens all the
@@ -412,8 +419,6 @@ vmail generates a few files in the current directory when it is running:
412
419
 
413
420
  * `current_message.txt` holds the current message being shown. Not deleted on quit.
414
421
 
415
- * `compose_message.txt` is created if you save the buffer for a new message. Not deleted on quit.
416
-
417
422
  * `part.html` is created if you open an HTML mail part from vmail.
418
423
 
419
424
  Finally, vmail logs output to a `vmail.log` file which it creates in the
@@ -437,6 +442,11 @@ vmail gem is downloaded from).
437
442
  [github]:https://github.com/danchoi/vmail
438
443
  [rubygems]:https://rubygems.org/gems/vmail
439
444
 
445
+ ## Redrawing the screen
446
+
447
+ If you run commands in very fast succession, the screen may get a little messed
448
+ up. In that case, just force a redraw of the Vim screen with `C-l`.
449
+
440
450
  ## Customizing colors
441
451
 
442
452
  By default, vmail highlights starred messages in bold green against a black
@@ -466,5 +476,7 @@ vmail users, please add them to the [vmail wiki][wiki].
466
476
  ## How to contact the developer
467
477
 
468
478
  My name is Daniel Choi. I am based in Cambridge, MA, and you can email me at dhchoi@gmail.com.
479
+ You can [follow me on Twitter][twitter] too.
469
480
 
481
+ [twitter]:http://twitter.com/#!/danchoi
470
482
 
@@ -30,7 +30,6 @@ let s:open_html_part_command = s:client_script . "open_html_part "
30
30
  let s:show_help_command = s:client_script . "show_help"
31
31
 
32
32
  let s:message_bufname = "current_message.txt"
33
- let s:compose_message_bufname = "compose_message.txt"
34
33
 
35
34
  function! VmailStatusLine()
36
35
  return "%<%f\ " . s:mailbox . " " . s:query . "%r%=%-14.(%l,%c%V%)\ %P"
@@ -574,7 +573,7 @@ func! s:open_compose_window(command)
574
573
  redraw
575
574
  echo a:command
576
575
  let res = system(a:command)
577
- split s:compose_message_bufname
576
+ new
578
577
  setlocal modifiable
579
578
  wincmd p
580
579
  close!
@@ -661,7 +660,8 @@ func! s:maximize_window()
661
660
  endif
662
661
  endfunc
663
662
 
664
- " not DRY enough, but fix that later
663
+ " maybe not DRY enough, but fix that later
664
+ " also, come up with a more precise regex pattern for matching hyperlinks
665
665
  func! s:open_href(all) range
666
666
  let n = 0
667
667
  " range version
@@ -42,7 +42,7 @@ module Vmail
42
42
  def close
43
43
  log "closing connection"
44
44
  @imap.close rescue Net::IMAP::BadResponseError
45
- @imap.disconnect
45
+ @imap.disconnect rescue IOError
46
46
  end
47
47
 
48
48
  def select_mailbox(mailbox, force=false)
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 2
9
- version: 0.8.2
8
+ - 3
9
+ version: 0.8.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi