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 +4 -4
- data/lib/mailhandler/receiving/imap.rb +6 -1
- data/lib/mailhandler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7d5da2d84a112a75963921878106d433e7692f45
|
|
4
|
+
data.tar.gz: 6d52c2232c683d02a2cfb6d27da46e5d399cc6c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/mailhandler/version.rb
CHANGED