imap-backup 12.1.0 → 13.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/imap-backup.gemspec +1 -8
- data/lib/cli_coverage.rb +2 -2
- data/lib/imap/backup/account/folder.rb +1 -2
- data/lib/imap/backup/serializer/folder_maker.rb +1 -1
- data/lib/imap/backup/serializer/imap.rb +1 -1
- data/lib/imap/backup/serializer/mbox.rb +1 -1
- data/lib/imap/backup/serializer.rb +1 -1
- data/lib/imap/backup/thunderbird/mailbox_exporter.rb +1 -1
- data/lib/imap/backup/version.rb +1 -1
- metadata +3 -87
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f9d6a9a1a46ac2daf9c4123f1458f7d11d859ad1ecbc996be345cccd309fecb
|
4
|
+
data.tar.gz: 34b4f2b6f7f5120ad06e53ca6b4cc89bc76da2ac722969233c06bb2c50d0b83b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ff08c97cc487ac84d76944bec04b34c6676a70b15fb5f3d69a3d9dbdd151cf8e29ea711a4f2faccba97edf4863ebc13e5168c4c1c4a8f4664e9a104c9e33554
|
7
|
+
data.tar.gz: e502b5778d2aeeb6754692a7e1f1e4d235f94715294dfd287116626e27294dfaa9a8b3a50698da51530c4097095b01173b6cc6d12cf4b63a871d28aa5e225a2e
|
data/imap-backup.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
|
|
19
19
|
|
20
20
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
21
21
|
gem.require_paths = ["lib"]
|
22
|
-
gem.required_ruby_version = ">= 2.
|
22
|
+
gem.required_ruby_version = ">= 2.7"
|
23
23
|
|
24
24
|
gem.add_runtime_dependency "highline"
|
25
25
|
gem.add_runtime_dependency "mail", "2.7.1"
|
@@ -30,13 +30,6 @@ Gem::Specification.new do |gem|
|
|
30
30
|
gem.add_runtime_dependency "thor", "~> 1.1"
|
31
31
|
gem.add_runtime_dependency "thunderbird", ">= 0.0.0"
|
32
32
|
|
33
|
-
gem.add_development_dependency "aruba", ">= 0.0.0"
|
34
|
-
gem.add_development_dependency "pry-byebug"
|
35
|
-
gem.add_development_dependency "rspec", ">= 3.0.0"
|
36
|
-
gem.add_development_dependency "rubocop-rspec"
|
37
|
-
gem.add_development_dependency "simplecov"
|
38
|
-
gem.add_development_dependency "yard"
|
39
|
-
|
40
33
|
gem.metadata = {
|
41
34
|
"rubygems_mfa_required" => "true"
|
42
35
|
}
|
data/lib/cli_coverage.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
class CliCoverage
|
2
2
|
def self.conditionally_activate
|
3
|
-
return if !ENV
|
3
|
+
return if !ENV.key?("COVERAGE")
|
4
4
|
|
5
5
|
require "simplecov"
|
6
6
|
|
7
7
|
# Collect coverage separately
|
8
|
-
SimpleCov.command_name "#{ENV
|
8
|
+
SimpleCov.command_name "#{ENV.fetch('COVERAGE')} #{ARGV.join(' ')} coverage"
|
9
9
|
|
10
10
|
# Silence output
|
11
11
|
SimpleCov.formatter = SimpleCov::Formatter::SimpleFormatter
|
@@ -99,7 +99,6 @@ module Imap::Backup
|
|
99
99
|
flags = message.flags & PERMITTED_FLAGS
|
100
100
|
retry_on_error(errors: APPEND_RETRY_CLASSES, limit: 3) do
|
101
101
|
response = client.append(utf7_encoded_name, body, flags, date)
|
102
|
-
flags = message.flags & PERMITTED_FLAGS
|
103
102
|
extract_uid(response)
|
104
103
|
end
|
105
104
|
end
|
@@ -138,7 +137,7 @@ module Imap::Backup
|
|
138
137
|
def unseen(uids)
|
139
138
|
messages = uids.map(&:to_s).join(",")
|
140
139
|
examine
|
141
|
-
client.uid_search([messages, "UNSEEN"])
|
140
|
+
client.uid_search(["UID", messages, "UNSEEN"])
|
142
141
|
rescue NoMethodError
|
143
142
|
# Apple Mail returns an empty response when searches have no results
|
144
143
|
[]
|
@@ -179,7 +179,7 @@ module Imap::Backup
|
|
179
179
|
Logger.logger.info <<~MESSAGE
|
180
180
|
Local metadata for folder '#{folder_path}' is currently stored in the version 2 format.
|
181
181
|
|
182
|
-
|
182
|
+
Migrating to the version 3 format...
|
183
183
|
MESSAGE
|
184
184
|
|
185
185
|
migrator.run
|
data/lib/imap/backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imap-backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 13.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -122,90 +122,6 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.0.0
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: aruba
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 0.0.0
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 0.0.0
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: pry-byebug
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rspec
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 3.0.0
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 3.0.0
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rubocop-rspec
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: simplecov
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: yard
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - ">="
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
209
125
|
description: Backup GMail, or any other IMAP email service, to disk.
|
210
126
|
email:
|
211
127
|
- joe.g.yates@gmail.com
|
@@ -309,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
309
225
|
requirements:
|
310
226
|
- - ">="
|
311
227
|
- !ruby/object:Gem::Version
|
312
|
-
version: '2.
|
228
|
+
version: '2.7'
|
313
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
314
230
|
requirements:
|
315
231
|
- - ">="
|