vmail 0.0.9 → 0.1.1
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 +12 -8
- data/lib/vmail.vim +10 -4
- data/lib/vmail/version.rb +1 -1
- data/website/vmail.html +16 -12
- metadata +3 -3
data/README.markdown
CHANGED
|
@@ -125,6 +125,11 @@ You can use range selections in the message list when you star, delete, mark as
|
|
|
125
125
|
spam, or archive. Use `<C-v>` to start marking a range of lines (the vertical
|
|
126
126
|
position of the cursor doesn't matter). Then type any of the above commands to
|
|
127
127
|
perform an action on all the messages you selected.
|
|
128
|
+
|
|
129
|
+
## Checking for new messages
|
|
130
|
+
|
|
131
|
+
To check for new messages in the current mailbox, press `u` in normal mode and
|
|
132
|
+
watch the status line.
|
|
128
133
|
|
|
129
134
|
## Switching mailboxes, moving messages, copying messages to another mailbox
|
|
130
135
|
|
|
@@ -187,22 +192,21 @@ blank line between the headers and the body of your message.
|
|
|
187
192
|
|
|
188
193
|
When you're done writing, send the message by typing `,vs` in normal mode.
|
|
189
194
|
|
|
190
|
-
In this early version of vmail, saving and resuming draft emails is a bit
|
|
191
|
-
clunky. But it works.
|
|
192
|
-
|
|
193
195
|
While you're composing a message in the composition window, you can save a
|
|
194
|
-
draft to a local file the standard vim
|
|
196
|
+
draft to a local file with the standard vim `:w` command:
|
|
195
197
|
|
|
196
198
|
:w my_draft_filename.txt
|
|
197
199
|
|
|
200
|
+
Make sure you append *.txt to the filename, or else vmail won't recognize it as
|
|
201
|
+
a potential email when you reload it.
|
|
202
|
+
|
|
198
203
|
Make sure you don't use `:wq` unless you mean to quit vmail immediately. After
|
|
199
204
|
you save the draft to a file, you can go back to the message list by typing `q`
|
|
200
205
|
in normal mode.
|
|
201
206
|
|
|
202
|
-
To resume writing the draft later, type
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
are created above the header. Resume editing. Send by typing `,vs`.
|
|
207
|
+
To resume writing the draft later, just type `:e my_draft_filename.txt` to load
|
|
208
|
+
the draft email into a buffer. (Use `:e!` if you're already in the message
|
|
209
|
+
composition window.) Resume editing. Send by typing `,vs`.
|
|
206
210
|
|
|
207
211
|
At any point, you can quit the composition window by typing `q` in normal mode.
|
|
208
212
|
|
data/lib/vmail.vim
CHANGED
|
@@ -335,7 +335,7 @@ function! s:move_to_mailbox(copy) range
|
|
|
335
335
|
normal $
|
|
336
336
|
inoremap <silent> <buffer> <cr> <Esc>:call <SID>complete_move_to_mailbox()<CR>
|
|
337
337
|
inoremap <silent> <buffer> <esc> <Esc>:q<cr>
|
|
338
|
-
|
|
338
|
+
setlocal completefunc=CompleteMoveMailbox
|
|
339
339
|
" c-p clears the line
|
|
340
340
|
let s:firstline = a:firstline
|
|
341
341
|
let s:lastline = a:lastline
|
|
@@ -412,7 +412,7 @@ function! s:mailbox_window()
|
|
|
412
412
|
resize 1
|
|
413
413
|
inoremap <silent> <buffer> <cr> <Esc>:call <SID>select_mailbox()<CR>
|
|
414
414
|
inoremap <silent> <buffer> <esc> <Esc>:q<cr>
|
|
415
|
-
|
|
415
|
+
setlocal completefunc=CompleteMailbox
|
|
416
416
|
" c-p clears the line
|
|
417
417
|
call setline(1, "select mailbox to switch to: ")
|
|
418
418
|
normal $
|
|
@@ -560,7 +560,6 @@ func! s:open_compose_window(command)
|
|
|
560
560
|
echo a:command
|
|
561
561
|
let res = system(a:command)
|
|
562
562
|
split compose-message
|
|
563
|
-
setlocal buftype=nofile
|
|
564
563
|
setlocal noswapfile
|
|
565
564
|
setlocal modifiable
|
|
566
565
|
wincmd p
|
|
@@ -570,7 +569,12 @@ func! s:open_compose_window(command)
|
|
|
570
569
|
call feedkeys("\<cr>")
|
|
571
570
|
normal 1G
|
|
572
571
|
call s:compose_window_mappings()
|
|
573
|
-
|
|
572
|
+
setlocal completefunc=CompleteContact
|
|
573
|
+
endfunc
|
|
574
|
+
|
|
575
|
+
func! s:turn_into_compose_window()
|
|
576
|
+
call s:compose_window_mappings()
|
|
577
|
+
setlocal completefunc=CompleteContact
|
|
574
578
|
endfunc
|
|
575
579
|
|
|
576
580
|
" contacts.txt file should be generated.
|
|
@@ -749,6 +753,8 @@ call system(s:set_window_width_command . winwidth(1))
|
|
|
749
753
|
|
|
750
754
|
autocmd VimResized <buffer> call system(s:set_window_width_command . winwidth(1))
|
|
751
755
|
|
|
756
|
+
autocmd bufreadpost *.txt call <SID>turn_into_compose_window()
|
|
757
|
+
|
|
752
758
|
call system(s:select_mailbox_command . shellescape(s:mailbox))
|
|
753
759
|
call s:do_search()
|
|
754
760
|
|
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?1292353326" media="screen" rel="stylesheet" type="text/css" />
|
|
7
|
+
<link href="stylesheets-vmail/960.css?1292353326" media="screen" rel="stylesheet" type="text/css" />
|
|
8
|
+
<link href="stylesheets-vmail/text.css?1292353326" media="screen" rel="stylesheet" type="text/css" />
|
|
9
|
+
<link href="stylesheets-vmail/site.css?1292353326" 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>
|
|
@@ -158,6 +158,11 @@ spam, or archive. Use <code><C-v></code> to start marking a range of lines
|
|
|
158
158
|
position of the cursor doesn't matter). Then type any of the above commands to
|
|
159
159
|
perform an action on all the messages you selected.</p>
|
|
160
160
|
|
|
161
|
+
<h2>Checking for new messages</h2>
|
|
162
|
+
|
|
163
|
+
<p>To check for new messages in the current mailbox, press <code>u</code> in normal mode and
|
|
164
|
+
watch the status line.</p>
|
|
165
|
+
|
|
161
166
|
<h2>Switching mailboxes, moving messages, copying messages to another mailbox</h2>
|
|
162
167
|
|
|
163
168
|
<p>To switch mailboxes, type <code>,m</code>. You'll see an autocomplete window appear at the top.
|
|
@@ -222,23 +227,22 @@ blank line between the headers and the body of your message.</p>
|
|
|
222
227
|
|
|
223
228
|
<p>When you're done writing, send the message by typing <code>,vs</code> in normal mode.</p>
|
|
224
229
|
|
|
225
|
-
<p>In this early version of vmail, saving and resuming draft emails is a bit
|
|
226
|
-
clunky. But it works.</p>
|
|
227
|
-
|
|
228
230
|
<p>While you're composing a message in the composition window, you can save a
|
|
229
|
-
draft to a local file the standard vim <code
|
|
231
|
+
draft to a local file with the standard vim <code>:w</code> command:</p>
|
|
230
232
|
|
|
231
233
|
<pre><code>:w my_draft_filename.txt
|
|
232
234
|
</code></pre>
|
|
233
235
|
|
|
236
|
+
<p>Make sure you append *.txt to the filename, or else vmail won't recognize it as
|
|
237
|
+
a potential email when you reload it.</p>
|
|
238
|
+
|
|
234
239
|
<p>Make sure you don't use <code>:wq</code> unless you mean to quit vmail immediately. After
|
|
235
240
|
you save the draft to a file, you can go back to the message list by typing <code>q</code>
|
|
236
241
|
in normal mode.</p>
|
|
237
242
|
|
|
238
|
-
<p>To resume writing the draft later, type <code
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
are created above the header. Resume editing. Send by typing <code>,vs</code>.</p>
|
|
243
|
+
<p>To resume writing the draft later, just type <code>:e my_draft_filename.txt</code> to load
|
|
244
|
+
the draft email into a buffer. (Use <code>:e!</code> if you're already in the message
|
|
245
|
+
composition window.) Resume editing. Send by typing <code>,vs</code>.</p>
|
|
242
246
|
|
|
243
247
|
<p>At any point, you can quit the composition window by typing <code>q</code> in normal mode.</p>
|
|
244
248
|
|