vmail 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -111,7 +111,7 @@ startup by passing in the mailbox name as an argument:
111
111
 
112
112
  vmail starred
113
113
 
114
- You can also pass in search parameters:
114
+ You can also pass in search parameters after specifying the mailbox:
115
115
 
116
116
  vmail important from barackobama@whitehouse.gov
117
117
 
@@ -365,7 +365,6 @@ directly in same Vim window by putting the cursor at the beginning of a
365
365
  hyperlink and typing `gf`, or `C-w f` if you want to open the webpage in a
366
366
  split window.
367
367
 
368
-
369
368
  ## Search queries
370
369
 
371
370
  vmail can generate a message list by performing an IMAP search on the current mailbox.
@@ -411,6 +410,36 @@ navigate the search query history. `<C-f>` opens a mini-editor that contains
411
410
  the current query plus a history of previous vmail search queries. You can edit
412
411
  any line in this mini-editor and press ENTER to perform the query on that line.
413
412
 
413
+ ## Command line mode and batch processing
414
+
415
+ You can invoke vmail in non-interactive mode to perform batch
416
+ processing.
417
+
418
+ If you redirect vmail's output from STDOUT to a file, vmail will output
419
+ the message list resulting from a search query to a file.
420
+
421
+ vmail inbox 100 from monit > monit-emails.txt
422
+
423
+ You can open this file in any text editor to make sure that the search
424
+ query produced the expected result. Then you can perform the following
425
+ batch operations on the message list:
426
+
427
+ # deletes all the messages in the message list
428
+ vmail rm < monit-emails.txt
429
+
430
+ # marks all the messages in the message list as spam
431
+ vmail spam < monit-emails.txt
432
+
433
+ # moves all the messages in the message list to the 'monit' mailbox
434
+ vmail mv monit < monit-emails.txt
435
+
436
+ # copies all the messages in the message list to the 'monit' mailbox
437
+ vmail cp monit < monit-emails.txt
438
+
439
+ # prints all the messages in the message list to 'monit.txt'
440
+ vmail print monit.txt < monit-emails.txt
441
+
442
+
414
443
  ## Getting help
415
444
 
416
445
  Typing `,?` will open this webpage in a browser.
data/lib/vmail.rb CHANGED
@@ -113,7 +113,7 @@ module Vmail
113
113
  'spam' => ["flag", "+FLAGS", "spam"],
114
114
  'mv' => ["move_to"],
115
115
  'cp' => ["copy_to"],
116
- 'cat' => ["append_to_file"]
116
+ 'print' => ["append_to_file"]
117
117
  }
118
118
  args = commands[ARGV.first]
119
119
  if args.nil?
data/lib/vmail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "1.2.4"
2
+ VERSION = "1.2.5"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 2
8
- - 4
9
- version: 1.2.4
8
+ - 5
9
+ version: 1.2.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-08 00:00:00 -05:00
17
+ date: 2011-01-09 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency