mailhandler 1.0.12 → 1.0.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78b7d4ffbbc6c366ff66a3a05676942692fa781e
4
- data.tar.gz: ebf72708529af128d0d5fd51b3c36a7d77fd5057
3
+ metadata.gz: 7d5da2d84a112a75963921878106d433e7692f45
4
+ data.tar.gz: 6d52c2232c683d02a2cfb6d27da46e5d399cc6c2
5
5
  SHA512:
6
- metadata.gz: 5abcd88963015fca9cde692ab4f722b0a5f3c8f62a3606ab944120bb00c3632aaed28b4340098a7272414476c01d597865a81dbdc6a604b48350c95736a5c000
7
- data.tar.gz: e438a633e4318d70f23dc8ea075b4c690d4eb8f04b72f3f21bb571f0826ab1c9ad32050cdafa9a6fa4fe22f8f2b5d9b2cd3031a35c8671283a7afbf678e5bd27
6
+ metadata.gz: 1834533b14c45829273d4c050b5f9f3cb1e0ac08e834bd9ac4d0b4e5b79250fe7e926120a36e64c844a5351d2b43df14eabbf7b3fa0220c327921e6fc74f904d
7
+ data.tar.gz: e595566eb6a85f3043bb371d48a51d38a04bc430d7b4e5fd5a3ea434af6c76126e44086b007e68db703cdc28e72cc37ed318c5f6078859c68b64710577dc02f4
@@ -17,6 +17,12 @@ module MailHandler
17
17
  :authentication,
18
18
  :use_ssl
19
19
 
20
+ # search options:
21
+ # by_subject - String, search by a whole string as part of the subject of the email
22
+ # by_content - String, search by a whole string as part of the content of the email
23
+ # count - Int, number of found emails to return
24
+ # archive - Boolean
25
+ # by_recipient - Hash, accepts a hash like: :to => 'igor@example.com'
20
26
  AVAILABLE_SEARCH_OPTIONS = [
21
27
 
22
28
  :by_subject,
@@ -36,7 +42,6 @@ module MailHandler
36
42
  def find(options)
37
43
 
38
44
  verify_and_set_search_options(options)
39
- validate_options(options)
40
45
  init_retriever
41
46
  @found_emails = find_emails(search_options)
42
47
 
@@ -1,5 +1,5 @@
1
1
  module MailHandler
2
2
 
3
- VERSION = '1.0.12'
3
+ VERSION = '1.0.13'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailhandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Balos