Skip to content

kentatogashi/search_mbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SearchMbox

You can easily search mail to satisfy conditions.

Installation

Add this line to your application's Gemfile:

gem 'search_mbox'

And then execute:

$ bundle

Or install it yourself as:

$ gem install search_mbox

Usage

Default
host="example.com"
account="hoge@example.com"
passwd="hoge1234"
SearchMbox.login(host, account, passwd)
mails = SearchMbox.search()
puts mails
Conditional search
host="example.com"
account="hoge@example.com"
passwd="hoge1234"
SearchMbox.login(host, account, passwd)
mails = SearchMbox.search(["From", "hoge@example.com"])
puts mails

Contributing

  1. Fork it ( https://github.com/[my-github-username]/search_mbox/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages