vmail 0.1.3 → 0.1.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 +14 -13
- data/lib/vmail.rb +1 -1
- data/lib/vmail/imap_client.rb +9 -0
- data/lib/vmail/version.rb +1 -1
- data/website/vmail.html +13 -12
- metadata +2 -2
data/README.markdown
CHANGED
@@ -33,7 +33,7 @@ The `.vmailrc` file should look something like this. Substitute your own values.
|
|
33
33
|
name: Daniel Choi
|
34
34
|
signature: |
|
35
35
|
--
|
36
|
-
Sent
|
36
|
+
Sent from vmail. http://danielchoi.com/software/vmail.html
|
37
37
|
|
38
38
|
This file should be formatted in [YAML syntax][1].
|
39
39
|
|
@@ -85,7 +85,7 @@ The first screen vmail shows you is a list of messages. You can view a message
|
|
85
85
|
by moving the cursor line to it and pressing ENTER. This will split the screen
|
86
86
|
and show the message content in the bottom pane.
|
87
87
|
|
88
|
-
To full-screen the message, press SPACE when the cursor is the message window.
|
88
|
+
To full-screen the message, press SPACE when the cursor is in the message window.
|
89
89
|
To go back to the split view, press ENTER.
|
90
90
|
|
91
91
|
You can full-screen the list window by pressing SPACE while the cursor is in it.
|
@@ -304,9 +304,10 @@ Here are some example search queries.
|
|
304
304
|
|
305
305
|
Tip: When you're entering your search query, `<C-u>` clears the query line.
|
306
306
|
|
307
|
-
Power-Tip: `<C-f>` opens a mini-editor
|
308
|
-
|
309
|
-
|
307
|
+
Power-Tip: When you're at the search query prompt, `<C-f>` opens a mini-editor
|
308
|
+
that contains the current query plus a history of previous vmail search
|
309
|
+
queries. You can edit any line in this mini-editor and press ENTER to perform
|
310
|
+
the query on that line.
|
310
311
|
|
311
312
|
## Using vmail with MacVim
|
312
313
|
|
@@ -326,7 +327,7 @@ process in after quitting the MacVim app.
|
|
326
327
|
## vmail file byproducts
|
327
328
|
|
328
329
|
vmail generates a few file byproducts when it is running. It generates a
|
329
|
-
temporary `vmailbuffer
|
330
|
+
temporary `vmailbuffer` file in the current directory to hold the message
|
330
331
|
list. This should get deleted automatically when vmail quits.
|
331
332
|
|
332
333
|
vmail also creates a `vmail-htmlpart.html` file in the current directory if you
|
@@ -338,26 +339,26 @@ what's going on behind the scenes as you use vmail.
|
|
338
339
|
|
339
340
|
## Is my gmail password secure?
|
340
341
|
|
341
|
-
In short, yes. vmail uses TLS ([Transport Layer Security][
|
342
|
+
In short, yes. vmail uses TLS ([Transport Layer Security][tls]) to perform IMAP
|
342
343
|
and SMTP authentication. So vmail transmits your password securely over the
|
343
344
|
network.
|
344
345
|
|
345
|
-
[
|
346
|
+
[tls]:http://en.wikipedia.org/wiki/Transport_Layer_Security
|
346
347
|
|
347
348
|
You can also be sure that the vmail code doesn't do anything nefarious with
|
348
349
|
your Gmail password because vmail is open source. Anyone can inspect the source
|
349
350
|
code of the copy of vmail that runs on your computer and inspect the latest
|
350
|
-
vmail code at the [github repository][
|
351
|
+
vmail code at the [github repository][github] and at [rubygems.org][rubygems] (where the
|
351
352
|
vmail gem is downloaded from).
|
352
353
|
|
353
|
-
[
|
354
|
-
[
|
354
|
+
[github]:https://github.com/danchoi/vmail
|
355
|
+
[rubygems]:https://rubygems.org/gems/vmail
|
355
356
|
|
356
357
|
## Bug reports, feature requests
|
357
358
|
|
358
|
-
Please file bug reports and
|
359
|
+
Please file bug reports and feature requests in the [vmail github issue tracker][tracker].
|
359
360
|
|
360
|
-
[
|
361
|
+
[tracker]:https://github.com/danchoi/vmail/issues
|
361
362
|
|
362
363
|
## How to contact the developer
|
363
364
|
|
data/lib/vmail.rb
CHANGED
@@ -45,7 +45,7 @@ module Vmail
|
|
45
45
|
puts "mailbox: #{mailbox}"
|
46
46
|
puts "query: #{query.inspect}"
|
47
47
|
|
48
|
-
buffer_file = "vmailbuffer
|
48
|
+
buffer_file = "vmailbuffer"
|
49
49
|
puts "using buffer file: #{buffer_file}"
|
50
50
|
File.open(buffer_file, "w") do |file|
|
51
51
|
file.puts "fetching messages. please wait..."
|
data/lib/vmail/imap_client.rb
CHANGED
@@ -412,6 +412,15 @@ EOF
|
|
412
412
|
def deliver(text)
|
413
413
|
# parse the text. The headers are yaml. The rest is text body.
|
414
414
|
require 'net/smtp'
|
415
|
+
reconnect_if_necessary(4) do
|
416
|
+
# this is just to prime the IMAP connection
|
417
|
+
# It's necessary for some reason.
|
418
|
+
log "priming connection for delivering"
|
419
|
+
res = @imap.uid_fetch(@all_uids[-1], ["ENVELOPE"])
|
420
|
+
if res.nil?
|
421
|
+
raise IOError, "IMAP connection seems broken"
|
422
|
+
end
|
423
|
+
end
|
415
424
|
mail = new_mail_from_input(text)
|
416
425
|
mail.delivery_method(*smtp_settings)
|
417
426
|
mail.deliver!
|
data/lib/vmail/version.rb
CHANGED
data/website/vmail.html
CHANGED
@@ -3,10 +3,10 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
5
5
|
<title>Vmail</title>
|
6
|
-
<link href="stylesheets-vmail/reset.css?
|
7
|
-
<link href="stylesheets-vmail/960.css?
|
8
|
-
<link href="stylesheets-vmail/text.css?
|
9
|
-
<link href="stylesheets-vmail/site.css?
|
6
|
+
<link href="stylesheets-vmail/reset.css?1292359285" media="screen" rel="stylesheet" type="text/css" />
|
7
|
+
<link href="stylesheets-vmail/960.css?1292359285" media="screen" rel="stylesheet" type="text/css" />
|
8
|
+
<link href="stylesheets-vmail/text.css?1292359285" media="screen" rel="stylesheet" type="text/css" />
|
9
|
+
<link href="stylesheets-vmail/site.css?1292359285" media="screen" rel="stylesheet" type="text/css" />
|
10
10
|
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script><script type="text/javascript">stLight.options({publisher:'8579b5f8-0860-4ea6-9ef1-6f0f58359a99'});</script>
|
11
11
|
<script type="text/javascript" src="lightbox2/js/prototype.js"></script>
|
12
12
|
<script type="text/javascript" src="lightbox2/js/scriptaculous.js?load=effects,builder"></script>
|
@@ -60,10 +60,10 @@ password: password
|
|
60
60
|
name: Daniel Choi
|
61
61
|
signature: |
|
62
62
|
--
|
63
|
-
Sent
|
63
|
+
Sent from vmail. http://danielchoi.com/software/vmail.html
|
64
64
|
</code></pre>
|
65
65
|
|
66
|
-
<p>This file should be formatted in <a href="
|
66
|
+
<p>This file should be formatted in <a href="http://www.yaml.org/spec/1.2/spec.html">YAML syntax</a>.</p>
|
67
67
|
|
68
68
|
<p>You can omit the password key-value pair if you'd rather not have the password
|
69
69
|
saved in the file. In that case, you'll prompted for the password each time you
|
@@ -115,7 +115,7 @@ this number by passing in a number after the mailbox name:</p>
|
|
115
115
|
by moving the cursor line to it and pressing ENTER. This will split the screen
|
116
116
|
and show the message content in the bottom pane.</p>
|
117
117
|
|
118
|
-
<p>To full-screen the message, press SPACE when the cursor is the message window.
|
118
|
+
<p>To full-screen the message, press SPACE when the cursor is in the message window.
|
119
119
|
To go back to the split view, press ENTER.</p>
|
120
120
|
|
121
121
|
<p>You can full-screen the list window by pressing SPACE while the cursor is in it.</p>
|
@@ -342,9 +342,10 @@ before 30-Nov-2010 since 1-Nov-2010 from prx.org
|
|
342
342
|
|
343
343
|
<p>Tip: When you're entering your search query, <code><C-u></code> clears the query line.</p>
|
344
344
|
|
345
|
-
<p>Power-Tip: <code><C-f></code> opens a mini-editor
|
346
|
-
|
347
|
-
|
345
|
+
<p>Power-Tip: When you're at the search query prompt, <code><C-f></code> opens a mini-editor
|
346
|
+
that contains the current query plus a history of previous vmail search
|
347
|
+
queries. You can edit any line in this mini-editor and press ENTER to perform
|
348
|
+
the query on that line.</p>
|
348
349
|
|
349
350
|
<h2>Using vmail with MacVim</h2>
|
350
351
|
|
@@ -376,7 +377,7 @@ what's going on behind the scenes as you use vmail.</p>
|
|
376
377
|
|
377
378
|
<h2>Is my gmail password secure?</h2>
|
378
379
|
|
379
|
-
<p>In short, yes. vmail uses TLS (<a href="
|
380
|
+
<p>In short, yes. vmail uses TLS (<a href="http://en.wikipedia.org/wiki/Transport_Layer_Security">Transport Layer Security</a>) to perform IMAP
|
380
381
|
and SMTP authentication. So vmail transmits your password securely over the
|
381
382
|
network.</p>
|
382
383
|
|
@@ -388,7 +389,7 @@ vmail gem is downloaded from).</p>
|
|
388
389
|
|
389
390
|
<h2>Bug reports, feature requests</h2>
|
390
391
|
|
391
|
-
<p>Please file bug reports and
|
392
|
+
<p>Please file bug reports and feature requests in the <a href="https://github.com/danchoi/vmail/issues">vmail github issue tracker</a>.</p>
|
392
393
|
|
393
394
|
<h2>How to contact the developer</h2>
|
394
395
|
|