vmail 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -4
- data/bin/vmail_client +0 -2
- data/lib/vmail/message_formatter.rb +5 -3
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/README.markdown
CHANGED
@@ -2,10 +2,9 @@
|
|
2
2
|
|
3
3
|
vmail is a Vim interface to Gmail.
|
4
4
|
|
5
|
-
Why vmail? Because some people
|
6
|
-
|
5
|
+
Why vmail? Because some people are 1000 times more efficient and happy in Vim
|
6
|
+
than in any web browser or GUI program.
|
7
7
|
|
8
|
-
|
9
8
|
## Prerequisites
|
10
9
|
|
11
10
|
* a Gmail account
|
@@ -165,7 +164,7 @@ To save you keystrokes, vmail provides alternative key mappings for
|
|
165
164
|
* trash/delete: `,#` → `,3`
|
166
165
|
* mark spam: `,!` → `,1`
|
167
166
|
|
168
|
-
These save you from having to press the SHIFT key in each
|
167
|
+
These save you from having to press the SHIFT key in each case.
|
169
168
|
|
170
169
|
## Checking for new messages
|
171
170
|
|
data/bin/vmail_client
CHANGED
@@ -92,13 +92,15 @@ module Vmail
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
# depend on lynx
|
95
|
+
# depend on lynx or whatever is set by the VMAIL_HTML_PART_READER
|
96
|
+
# variable
|
96
97
|
def format_html_body(part)
|
98
|
+
html_tool = ENV['VMAIL_HTML_PART_READER'] || 'lynx -stdin -dump'
|
97
99
|
html = part.body.decoded.gsub("\r", '')
|
98
|
-
stdin, stdout, stderr = Open3.popen3(
|
100
|
+
stdin, stdout, stderr = Open3.popen3(html_tool)
|
99
101
|
stdin.puts html
|
100
102
|
stdin.close
|
101
|
-
output = stdout.read
|
103
|
+
output = "[vmail: html part translated into plaintext by '#{html_tool}']\n\n" + stdout.read
|
102
104
|
charset = part.content_type_parameters && part.content_type_parameters['charset']
|
103
105
|
if charset && charset != 'UTF-8'
|
104
106
|
Iconv.conv('UTF-8//TRANSLIT//IGNORE', charset, output)
|
data/lib/vmail/version.rb
CHANGED