mailhandler 1.0.39 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailhandler/receiving/mail.rb +5 -2
- data/lib/mailhandler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 056b228a9163d9d2e26aa005ad101f967e2e1cc39bd8fd1b4b9dbafc4c393313
|
4
|
+
data.tar.gz: 411d6e1d41d53a14e90e4293e0092dfa0bca01511c17ef4138879a2770079aef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db5f404afdc20afd7f494f4128ed2992bbcdb1586d6db9ec225682daedf48ff27b98a95588e608b131cc87321877794cfd69d819c2a6087cbede64331670cc9e
|
7
|
+
data.tar.gz: 4c0d31bcdb4edb78198c85c2ca3d60f6562b0694ec7c79e156c5a4137a32e86af1b0a97cd38212f26e5f7946c8b5f9ad70131c0587b8221a69a79424ff79b805
|
@@ -3,6 +3,9 @@ module Mail
|
|
3
3
|
class IMAP
|
4
4
|
attr_accessor :imap_connection
|
5
5
|
|
6
|
+
# fetch emails with different flag, to make it work with icloud
|
7
|
+
FETCH_EMAIL_FLAG = "BODY[]" #"RFC822"
|
8
|
+
|
6
9
|
def find_emails(options = {}, &block) # rubocop:disable all
|
7
10
|
options = validate_options(options)
|
8
11
|
options[:read_only] ? imap_connection.examine(options[:mailbox]) : imap_connection.select(options[:mailbox])
|
@@ -36,8 +39,8 @@ module Mail
|
|
36
39
|
|
37
40
|
uids.each do |uid|
|
38
41
|
uid = options[:uid].to_i unless options[:uid].nil?
|
39
|
-
fetchdata = imap_connection.uid_fetch(uid, [
|
40
|
-
emails << Mail.new(fetchdata.attr[
|
42
|
+
fetchdata = imap_connection.uid_fetch(uid, [FETCH_EMAIL_FLAG])[0]
|
43
|
+
emails << Mail.new(fetchdata.attr[FETCH_EMAIL_FLAG])
|
41
44
|
imap_connection.uid_store(uid, '+FLAGS', [Net::IMAP::DELETED]) if options[:delete_after_find]
|
42
45
|
break unless options[:uid].nil?
|
43
46
|
end
|
data/lib/mailhandler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mailhandler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.40
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Balos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: 1.9.3
|
116
116
|
requirements: []
|
117
|
-
rubygems_version: 3.0.
|
117
|
+
rubygems_version: 3.0.6
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: Postmark email receiving and sending handler.
|