imap-backup 8.0.1 → 8.0.2
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/README.md +26 -11
- data/imap-backup.gemspec +2 -2
- data/lib/imap/backup/account/folder.rb +3 -2
- data/lib/imap/backup/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31b3a3ccf051c6496e8b4fde5eb0b062927fc8a0cb0c605dd597bc1289dd77e1
|
4
|
+
data.tar.gz: f7a7a88cb51f2ebe01e5debd4a25df4df8adf4ee1a5fd2480532c948d51e382b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47377d324d8a4f4bf0853ac12f6e972107bbb2d215f4916bd5a6ec301870ef6fad2eb646325dba127dd7bb8ca02f6abe72d2bfeccc139bac87c9df38a55d498a
|
7
|
+
data.tar.gz: 2a07b644b145263f41394f2f96590a0003381911389238f242f973236828ded448c169ed043ec7453d8bd0acc942ecb3d210e298b46d975c08b015794b7f4445
|
data/README.md
CHANGED
@@ -7,18 +7,20 @@
|
|
7
7
|
|
8
8
|
Backup, restore and migrate email accounts.
|
9
9
|
|
10
|
-
|
11
|
-
inspected or exported.
|
10
|
+
# Modes
|
12
11
|
|
13
|
-
|
14
|
-
* [Code Documentation]
|
15
|
-
* [Rubygem]
|
16
|
-
* [CI Status]
|
12
|
+
There are two types of backups:
|
17
13
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
14
|
+
* Keep all (the default) - progressively saves a local copy of all emails,
|
15
|
+
* Mirror - adds and deletes emails from the local copy to keep it up to date with the account.
|
16
|
+
|
17
|
+
# What You Can Do with a Backup
|
18
|
+
|
19
|
+
* Migrate - use the local copy to populate emails on another account. This is a once-only action that deletes any existing emails on the destination account.
|
20
|
+
* Mirror - make a destination account match the local copy. This action can be repeated.
|
21
|
+
* Restore - push the local copy back to the original account.
|
22
|
+
|
23
|
+
See below for a [full list of commands](#Commands).
|
22
24
|
|
23
25
|
# Installation
|
24
26
|
|
@@ -67,6 +69,9 @@ imap-backup
|
|
67
69
|
|
68
70
|
Alternatively, add it to your crontab.
|
69
71
|
|
72
|
+
Backups can also be inspected, for example via [local show](docs/commands/local-show.md)
|
73
|
+
and exported via [utils export-to-thunderbird](docs/commands/utils-export-to-thunderbird.md).
|
74
|
+
|
70
75
|
# Commands
|
71
76
|
|
72
77
|
* [backup](docs/commands/backup.md)
|
@@ -99,7 +104,7 @@ imap-backup help COMMAND
|
|
99
104
|
If you have problems:
|
100
105
|
|
101
106
|
1. ensure that you have the latest release,
|
102
|
-
2.
|
107
|
+
2. run `imap-backup` with the `-v` or `--verbose` parameter.
|
103
108
|
|
104
109
|
# Development
|
105
110
|
|
@@ -108,3 +113,13 @@ on development and testing.
|
|
108
113
|
|
109
114
|
See [the CHANGELOG](./CHANGELOG.md) to a list of changes that have been
|
110
115
|
made in each release.
|
116
|
+
|
117
|
+
* [Source Code]
|
118
|
+
* [Code Documentation]
|
119
|
+
* [Rubygem]
|
120
|
+
* [CI Status]
|
121
|
+
|
122
|
+
[Source Code]: https://github.com/joeyates/imap-backup "Source code at GitHub"
|
123
|
+
[Code Documentation]: https://rubydoc.info/gems/imap-backup/frames "Code Documentation at Rubydoc.info"
|
124
|
+
[Rubygem]: https://rubygems.org/gems/imap-backup "Ruby gem at rubygems.org"
|
125
|
+
[CI Status]: https://github.com/joeyates/imap-backup/actions/workflows/main.yml
|
data/imap-backup.gemspec
CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.required_ruby_version = ">= 2.6"
|
23
23
|
|
24
24
|
gem.add_runtime_dependency "highline"
|
25
|
-
gem.add_runtime_dependency "mail"
|
26
|
-
gem.add_runtime_dependency "net-imap"
|
25
|
+
gem.add_runtime_dependency "mail", "2.7.1"
|
26
|
+
gem.add_runtime_dependency "net-imap", ">= 0.3.2"
|
27
27
|
gem.add_runtime_dependency "net-smtp"
|
28
28
|
gem.add_runtime_dependency "os"
|
29
29
|
gem.add_runtime_dependency "rake"
|
@@ -154,8 +154,9 @@ module Imap::Backup
|
|
154
154
|
end
|
155
155
|
|
156
156
|
def extract_uid(response)
|
157
|
-
|
158
|
-
|
157
|
+
uid_data = response.data.code.data
|
158
|
+
@uid_validity = uid_data.uidvalidity
|
159
|
+
uid_data.assigned_uids.first
|
159
160
|
end
|
160
161
|
|
161
162
|
def utf7_encoded_name
|
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: 8.0.
|
4
|
+
version: 8.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: mail
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.7.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.7.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: net-imap
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.3.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.3.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: net-smtp
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|