vmail 0.2.3 → 0.2.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/NOTES +17 -0
- data/README.markdown +19 -5
- data/lib/vmail.rb +6 -1
- data/lib/vmail.vim +2 -1
- data/lib/vmail/version.rb +1 -1
- metadata +2 -2
data/NOTES
CHANGED
@@ -559,3 +559,20 @@ todo
|
|
559
559
|
|
560
560
|
- one particular email don't send
|
561
561
|
- from f rojas. see why it fails silently
|
562
|
+
|
563
|
+
- deal with encoding: quotable printable mail part, e.g.
|
564
|
+
inbox 85740 4 kb
|
565
|
+
- application/pgp-signature; name=signature.asc
|
566
|
+
---------------------------------------
|
567
|
+
from: asdsadsd
|
568
|
+
date: Wed, Dec 15 02:01 PM +01:00 2010
|
569
|
+
to: vim_use@googlegroups.com
|
570
|
+
subject: Re: introducing vmail
|
571
|
+
cc: Daniel Choi <dhchoi@gmail.com>
|
572
|
+
|
573
|
+
--Sig_/mr9Wc47A9zV0_9ckNR.1R8f
|
574
|
+
Content-Type: text/plain; charset=US-ASCII
|
575
|
+
Content-Transfer-Encoding: quoted-printable
|
576
|
+
|
577
|
+
- put command line parsing under a test harness
|
578
|
+
|
data/README.markdown
CHANGED
@@ -16,6 +16,10 @@ a web browser or a GUI mail program.
|
|
16
16
|
|
17
17
|
The current version of vmail assumes a Unix environment. I'll try to make later versions accommodate Windows.
|
18
18
|
|
19
|
+
Your Gmail account should be [IMAP-enabled][gmailimap].
|
20
|
+
|
21
|
+
[gmailimap]:http://mail.google.com/support/bin/answer.py?hl=en&answer=77695
|
22
|
+
|
19
23
|
## Installation
|
20
24
|
|
21
25
|
gem install vmail
|
@@ -61,7 +65,7 @@ start vmail.
|
|
61
65
|
|
62
66
|
## Contacts autocompletion
|
63
67
|
|
64
|
-
vmail uses
|
68
|
+
vmail uses Vim autocompletion to help you auto-complete email addresses.
|
65
69
|
To use this feature, generate a `vmail-contacts.txt` file in the current or
|
66
70
|
home directory. This is a simple list of your email contacts.
|
67
71
|
Invoking vmail with the `-g` option generates this file for you by
|
@@ -78,7 +82,7 @@ you can start vmail with
|
|
78
82
|
|
79
83
|
vmail
|
80
84
|
|
81
|
-
This opens the vmail/
|
85
|
+
This opens the vmail/Vim interface and shows you the last 100 messages in your
|
82
86
|
Gmail inbox.
|
83
87
|
|
84
88
|
You can have vmail show messages from any other mailbox (a.k.a. label) on
|
@@ -102,12 +106,15 @@ by moving the cursor line to it and pressing ENTER. This will split the screen
|
|
102
106
|
and show the message content in the bottom pane.
|
103
107
|
|
104
108
|
To full-screen the message, press SPACE when the cursor is in the message window.
|
109
|
+
You can also use the standard Vim key sequence `C-w C-o`.
|
105
110
|
To go back to the split view, press ENTER.
|
106
111
|
|
107
112
|
You can full-screen the list window by pressing SPACE while the cursor is in it.
|
113
|
+
You can also use the standard Vim key sequence `C-w C-o`.
|
108
114
|
|
109
115
|
In the split view, you can jump between the two panes by just pressing ENTER
|
110
116
|
from either window.
|
117
|
+
You can also use the standard Vim key sequence `C-w C-w`.
|
111
118
|
|
112
119
|
You can also use `<C-p>` and `<C-n>` from either window to show the previous or
|
113
120
|
next message.
|
@@ -154,7 +161,7 @@ watch the status line.
|
|
154
161
|
## Switching mailboxes, moving messages, copying messages to another mailbox
|
155
162
|
|
156
163
|
To switch mailboxes, type `,m`. You'll see an autocomplete window appear at the top.
|
157
|
-
The standard
|
164
|
+
The standard Vim autocomplete keystrokes apply:
|
158
165
|
|
159
166
|
* `C-p` and `C-n` move you up and down the match list
|
160
167
|
* `C-e` closes the match list and lets you continue typing
|
@@ -196,7 +203,7 @@ You're responsible for filling in the `to:` and the `subject:` fields.
|
|
196
203
|
You can add a `cc:` and `bcc:` field if you want.
|
197
204
|
|
198
205
|
|
199
|
-
When you fill in the recipient addresses, you can use
|
206
|
+
When you fill in the recipient addresses, you can use Vim autocompletion if you
|
200
207
|
generated a `vmail-contacts.txt` file. Start typing a name or email address,
|
201
208
|
then press `C-x C-u` to invoke autocompletion.
|
202
209
|
|
@@ -214,7 +221,7 @@ blank line between the headers and the body of your message.
|
|
214
221
|
When you're done writing, send the message by typing `,vs` in normal mode.
|
215
222
|
|
216
223
|
While you're composing a message in the composition window, you can save a
|
217
|
-
draft to a local file with the standard
|
224
|
+
draft to a local file with the standard Vim `:w` command:
|
218
225
|
|
219
226
|
:w my_draft_filename.txt
|
220
227
|
|
@@ -315,6 +322,13 @@ Here are some example search queries.
|
|
315
322
|
# all messages from this person
|
316
323
|
from barackobama@whitehouse.gov
|
317
324
|
|
325
|
+
# you can also omit the host part of the email address
|
326
|
+
from barackobama
|
327
|
+
|
328
|
+
# you can also search by the full name, first name, or last name associated
|
329
|
+
# with an email; use double quotes to enclose multiple words
|
330
|
+
cc "David Fisher"
|
331
|
+
|
318
332
|
# subject field search; use double quotes to enclose multiple words
|
319
333
|
subject "unix philosophy"
|
320
334
|
|
data/lib/vmail.rb
CHANGED
@@ -38,7 +38,12 @@ module Vmail
|
|
38
38
|
# TODO this is useless if we're using mvim
|
39
39
|
server.window_width = `stty size`.strip.split(' ')[1]
|
40
40
|
|
41
|
-
mailbox = ARGV
|
41
|
+
mailbox = if ARGV[0] =~ /^\d+/
|
42
|
+
"INBOX"
|
43
|
+
else
|
44
|
+
ARGV.shift || 'INBOX'
|
45
|
+
end
|
46
|
+
|
42
47
|
server.select_mailbox mailbox
|
43
48
|
|
44
49
|
query = ARGV.empty? ? [100, 'ALL'] : ARGV
|
data/lib/vmail.vim
CHANGED
@@ -689,8 +689,9 @@ func! s:message_window_mappings()
|
|
689
689
|
nnoremap <silent> <buffer> u :call <SID>focus_list_window()<cr>:call <SID>update()<CR>
|
690
690
|
nnoremap <silent> <buffer> <Leader>m :call <SID>focus_list_window()<cr>:call <SID>mailbox_window()<CR>
|
691
691
|
nnoremap <silent> <buffer> <Leader>A :call <SID>save_attachments()<cr>
|
692
|
-
" go fullscreen
|
693
692
|
nnoremap <silent> <buffer> <Space> :call <SID>maximize_window()<cr>
|
693
|
+
nnoremap <silent> <buffer> <Leader>s :call <SID>focus_list_window()<cr>:call <SID>search_query()<cr>
|
694
|
+
|
694
695
|
endfunc
|
695
696
|
|
696
697
|
func! s:message_list_window_mappings()
|
data/lib/vmail/version.rb
CHANGED