imapcli 1.0.2 → 1.0.7
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 +5 -5
- data/.gitignore +3 -0
- data/CHANGELOG.md +22 -0
- data/Dockerfile +11 -4
- data/Gemfile.lock +72 -76
- data/README.md +67 -97
- data/imapcli.gemspec +2 -3
- data/lib/imapcli/option_validator.rb +2 -2
- data/lib/imapcli/version.rb +1 -1
- metadata +8 -9
- data/NEWS +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 751085164222eaf57bb834881ed2750aef4e1bdb78b0f80721f813e88c3dcd2d
|
4
|
+
data.tar.gz: eb278a49bad1c247dfab3d17346361a681f9fde8c74f87aea288615d2cc52fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 015155ed2a70636f3d072d889408fb26d9bc6267125e432337e4050170a4839a509ab6d822c1abdce011a02c6486541e48137f3435cd70079a715ac18356ffe7
|
7
|
+
data.tar.gz: d99cfb0b39d772ab64bd3826fa72f89ff1c5230e4481b9a47a341cfa84db2039b1f6b7977261dcadab77c9589efe5fd65389ae52361a5a0685a5ff5d6d4f209f
|
data/.gitignore
CHANGED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## v1.0.7 (2022-03-02)
|
4
|
+
|
5
|
+
- Update dependencies.
|
6
|
+
|
7
|
+
## v1.0.6
|
8
|
+
|
9
|
+
- Fix Docker build.
|
10
|
+
|
11
|
+
## v1.0.5
|
12
|
+
|
13
|
+
- Update bundle to address CVE-2018-1000201.
|
14
|
+
|
15
|
+
## v1.0.4
|
16
|
+
|
17
|
+
- Update rake to address CVE-2020-8130.
|
18
|
+
|
19
|
+
## Previous changes
|
20
|
+
|
21
|
+
- Fix: Docker image.
|
22
|
+
- Fix: Options error message.
|
data/Dockerfile
CHANGED
@@ -1,8 +1,15 @@
|
|
1
1
|
FROM ruby:alpine
|
2
2
|
LABEL maintainer=bovender@bovender.de
|
3
3
|
LABEL description="Command-line tool to query IMAP servers."
|
4
|
-
RUN apk add --no-cache build-base && \
|
5
|
-
gem install --no-rdoc --no-ri imapcli && \
|
6
|
-
apk del build-base
|
7
4
|
|
8
|
-
|
5
|
+
WORKDIR /
|
6
|
+
RUN apk add --no-cache git build-base && \
|
7
|
+
git clone --depth 1 https://github.com/bovender/imapcli && \
|
8
|
+
cd imapcli && \
|
9
|
+
bundle update --bundler && \
|
10
|
+
bundle && \
|
11
|
+
apk del build-base && \
|
12
|
+
rm -rf /var/cache/apk/*
|
13
|
+
|
14
|
+
WORKDIR /imapcli
|
15
|
+
ENTRYPOINT ["bundle", "exec", "imapcli"]
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
imapcli (1.0.
|
4
|
+
imapcli (1.0.6)
|
5
5
|
descriptive_statistics (~> 2.5)
|
6
6
|
dotenv (~> 2.2)
|
7
7
|
filesize (~> 0.1)
|
@@ -13,22 +13,21 @@ PATH
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
coderay (1.1.
|
16
|
+
coderay (1.1.3)
|
17
17
|
descriptive_statistics (2.5.1)
|
18
|
-
diff-lcs (1.
|
19
|
-
dotenv (2.
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
guard (2.14.1)
|
18
|
+
diff-lcs (1.5.0)
|
19
|
+
dotenv (2.7.6)
|
20
|
+
ffi (1.15.5)
|
21
|
+
filesize (0.2.0)
|
22
|
+
formatador (1.1.0)
|
23
|
+
gli (2.21.0)
|
24
|
+
guard (2.18.0)
|
26
25
|
formatador (>= 0.2.4)
|
27
26
|
listen (>= 2.7, < 4.0)
|
28
|
-
lumberjack (
|
27
|
+
lumberjack (>= 1.0.12, < 2.0)
|
29
28
|
nenv (~> 0.1)
|
30
29
|
notiffany (~> 0.0)
|
31
|
-
pry (>= 0.
|
30
|
+
pry (>= 0.13.0)
|
32
31
|
shellany (~> 0.0)
|
33
32
|
thor (>= 0.18.1)
|
34
33
|
guard-compat (1.2.1)
|
@@ -36,74 +35,71 @@ GEM
|
|
36
35
|
guard (~> 2.1)
|
37
36
|
guard-compat (~> 1.1)
|
38
37
|
rspec (>= 2.99.0, < 4.0)
|
39
|
-
|
40
|
-
|
41
|
-
rb-
|
42
|
-
|
43
|
-
|
44
|
-
lumberjack (1.0.12)
|
45
|
-
method_source (0.9.0)
|
46
|
-
necromancer (0.4.0)
|
38
|
+
listen (3.7.1)
|
39
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
40
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
41
|
+
lumberjack (1.2.8)
|
42
|
+
method_source (1.0.0)
|
47
43
|
nenv (0.3.0)
|
48
|
-
notiffany (0.1.
|
44
|
+
notiffany (0.1.3)
|
49
45
|
nenv (~> 0.1)
|
50
46
|
shellany (~> 0.0)
|
51
|
-
pastel (0.
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
rb-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
rspec-
|
66
|
-
|
67
|
-
rspec-
|
68
|
-
rspec-
|
47
|
+
pastel (0.8.0)
|
48
|
+
tty-color (~> 0.5)
|
49
|
+
pry (0.14.1)
|
50
|
+
coderay (~> 1.1)
|
51
|
+
method_source (~> 1.0)
|
52
|
+
psych (4.0.3)
|
53
|
+
stringio
|
54
|
+
rake (12.3.3)
|
55
|
+
rb-fsevent (0.11.1)
|
56
|
+
rb-inotify (0.10.1)
|
57
|
+
ffi (~> 1.0)
|
58
|
+
rdoc (6.4.0)
|
59
|
+
psych (>= 4.0.0)
|
60
|
+
rspec (3.11.0)
|
61
|
+
rspec-core (~> 3.11.0)
|
62
|
+
rspec-expectations (~> 3.11.0)
|
63
|
+
rspec-mocks (~> 3.11.0)
|
64
|
+
rspec-core (3.11.0)
|
65
|
+
rspec-support (~> 3.11.0)
|
66
|
+
rspec-expectations (3.11.0)
|
69
67
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-mocks (3.
|
68
|
+
rspec-support (~> 3.11.0)
|
69
|
+
rspec-mocks (3.11.0)
|
72
70
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
-
rspec-support (~> 3.
|
74
|
-
rspec-support (3.
|
75
|
-
ruby_dep (1.5.0)
|
71
|
+
rspec-support (~> 3.11.0)
|
72
|
+
rspec-support (3.11.0)
|
76
73
|
shellany (0.0.1)
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
tty-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
tty-
|
90
|
-
|
91
|
-
tty-
|
92
|
-
|
93
|
-
|
94
|
-
tty-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
74
|
+
stringio (3.0.1)
|
75
|
+
strings (0.2.1)
|
76
|
+
strings-ansi (~> 0.2)
|
77
|
+
unicode-display_width (>= 1.5, < 3.0)
|
78
|
+
unicode_utils (~> 1.4)
|
79
|
+
strings-ansi (0.2.0)
|
80
|
+
thor (1.2.1)
|
81
|
+
tty-color (0.6.0)
|
82
|
+
tty-cursor (0.7.1)
|
83
|
+
tty-progressbar (0.18.2)
|
84
|
+
strings-ansi (~> 0.2)
|
85
|
+
tty-cursor (~> 0.7)
|
86
|
+
tty-screen (~> 0.8)
|
87
|
+
unicode-display_width (>= 1.6, < 3.0)
|
88
|
+
tty-prompt (0.23.1)
|
89
|
+
pastel (~> 0.8)
|
90
|
+
tty-reader (~> 0.8)
|
91
|
+
tty-reader (0.9.0)
|
92
|
+
tty-cursor (~> 0.7)
|
93
|
+
tty-screen (~> 0.8)
|
94
|
+
wisper (~> 2.0)
|
95
|
+
tty-screen (0.8.1)
|
96
|
+
tty-table (0.12.0)
|
97
|
+
pastel (~> 0.8)
|
98
|
+
strings (~> 0.2.0)
|
99
|
+
tty-screen (~> 0.8)
|
100
|
+
unicode-display_width (2.1.0)
|
102
101
|
unicode_utils (1.4.0)
|
103
|
-
|
104
|
-
unicode-display_width (~> 1.1.0)
|
105
|
-
unicode_utils (~> 1.4.0)
|
106
|
-
wisper (2.0.0)
|
102
|
+
wisper (2.0.1)
|
107
103
|
|
108
104
|
PLATFORMS
|
109
105
|
ruby
|
@@ -112,9 +108,9 @@ DEPENDENCIES
|
|
112
108
|
guard-rspec
|
113
109
|
imapcli!
|
114
110
|
pry
|
115
|
-
rake (~> 12.
|
116
|
-
rdoc (~>
|
111
|
+
rake (~> 12.3.3)
|
112
|
+
rdoc (~> 6.3)
|
117
113
|
rspec
|
118
114
|
|
119
115
|
BUNDLED WITH
|
120
|
-
|
116
|
+
2.2.17
|
data/README.md
CHANGED
@@ -1,32 +1,25 @@
|
|
1
|
-
|
2
|
-
`develop` branch.**
|
3
|
-
|
4
|
-
imapcli
|
5
|
-
=======
|
1
|
+
# imapcli
|
6
2
|
|
7
3
|
> Command-line interface (CLI) for IMAP servers
|
4
|
+
> (<https://github.com/bovender/imapcli>)
|
8
5
|
|
9
6
|
`imapcli` is a command-line tool that offers a convenient way to query an IMAP
|
10
7
|
server for configuration details and e-mail statistics. It can be used to gather
|
11
8
|
IMAP mailbox sizes.
|
12
9
|
|
10
|
+
## Table of contents
|
13
11
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
*
|
18
|
-
*
|
19
|
-
*
|
20
|
-
*
|
21
|
-
*
|
22
|
-
*
|
23
|
-
* [State of the project](#state-of-the-project)
|
24
|
-
* [Credits](#credits)
|
25
|
-
* [License](#license)
|
12
|
+
* [Motivation](#motivation)
|
13
|
+
* [Warning](#warning)
|
14
|
+
* [Installing and executing `imapcli`](#installing-and-executing-imapcli)
|
15
|
+
* [Terminology](#terminology)
|
16
|
+
* [Usage](#usage)
|
17
|
+
* [Alternative resources](#alternative-resources)
|
18
|
+
* [State of the project](#state-of-the-project)
|
19
|
+
* [Credits](#credits)
|
20
|
+
* [License](#license)
|
26
21
|
|
27
|
-
|
28
|
-
Motivation
|
29
|
-
----------
|
22
|
+
## Motivation
|
30
23
|
|
31
24
|
When my university mail account had almost reached the quota, I needed to find
|
32
25
|
out what the largest mail folders were (in terms of megabytes, not message
|
@@ -38,9 +31,7 @@ with the server by telnet or OpenSSL.
|
|
38
31
|
|
39
32
|
`imapcli` offers a convenient way to query an IMAP server.
|
40
33
|
|
41
|
-
|
42
|
-
Warning
|
43
|
-
-------
|
34
|
+
## Warning
|
44
35
|
|
45
36
|
Some servers are configured to detect potentially malicious login attempts by
|
46
37
|
the frequency of repeat connections from a given source. **It may happen that
|
@@ -70,13 +61,7 @@ Do not forget to reload the `jail2ban` configuration afterwards:
|
|
70
61
|
|
71
62
|
Of course this only works if your IP addresses do not change too much.
|
72
63
|
|
73
|
-
|
74
|
-
applet may be useful to know your remote IP. Disclaimer: I am the author of this
|
75
|
-
tool.)
|
76
|
-
|
77
|
-
|
78
|
-
Installing and executing `imapcli`
|
79
|
-
--------------------------------
|
64
|
+
## Installing and executing `imapcli`
|
80
65
|
|
81
66
|
`imapcli` is a Ruby project and as such does not need to be compiled. To run it
|
82
67
|
on your machine, you can either pull the repository, install a Gem, or use a
|
@@ -85,8 +70,7 @@ Docker image.
|
|
85
70
|
Detailed usage instructions follow [below](#usage).
|
86
71
|
|
87
72
|
I don't currently provide a .deb package because Debian packaging done right
|
88
|
-
is kind of complicated.
|
89
|
-
|
73
|
+
is kind of complicated (for me).
|
90
74
|
|
91
75
|
### Run in the repository
|
92
76
|
|
@@ -101,7 +85,6 @@ Run:
|
|
101
85
|
cd imapcli
|
102
86
|
bundle exec bin/imapcli
|
103
87
|
|
104
|
-
|
105
88
|
### Install the gem
|
106
89
|
|
107
90
|
Requirements: a recent Ruby and RubyGems.
|
@@ -114,21 +97,29 @@ Run:
|
|
114
97
|
|
115
98
|
imapcli
|
116
99
|
|
117
|
-
|
118
100
|
### Docker image
|
119
101
|
|
120
|
-
|
102
|
+
With [Docker](https://www.docker.com), you do not have to install Ruby and the
|
103
|
+
additional dependencies. Everything is contained in the, well, container. The
|
104
|
+
Docker image is about 120 MB in size though (I did not manage to make it
|
105
|
+
smaller).
|
106
|
+
|
107
|
+
Run:
|
108
|
+
|
109
|
+
docker run -it bovender/imapcli <arguments>
|
121
110
|
|
111
|
+
Example:
|
112
|
+
|
113
|
+
docker run -it bovender/imapcli -s myserver.example.com -u user -P info
|
122
114
|
|
123
|
-
|
124
|
-
|
115
|
+
The Docker repository is at <https://hub.docker.com/r/bovender/imapcli>.
|
116
|
+
|
117
|
+
## Terminology
|
125
118
|
|
126
119
|
`imapcli` attempts to use the typical IMAP terminology. I guess most people
|
127
120
|
have their mails organized in **folders**; in IMAP speak, a folder is a **maibox**.
|
128
121
|
|
129
|
-
|
130
|
-
Usage
|
131
|
-
-----
|
122
|
+
## Usage
|
132
123
|
|
133
124
|
For basic usage instructions and possible options, run `imapcli` and examine
|
134
125
|
the output. Please note that `imapcli` distinguishes between global and
|
@@ -140,7 +131,6 @@ Note: The following examples use the command `imapcli`. Depending on how you
|
|
140
131
|
[installed](#installing-and-executing-imapcli) `imapcli`, you may need to use a
|
141
132
|
different command.
|
142
133
|
|
143
|
-
|
144
134
|
### Setting your server and account information
|
145
135
|
|
146
136
|
Server and account information are given as *global options*:
|
@@ -165,7 +155,6 @@ environment variables:
|
|
165
155
|
These variables can also be set in a `.env` file that resides in the root
|
166
156
|
directory of the repository. Never add this `.env` file to the repository!
|
167
157
|
|
168
|
-
|
169
158
|
### Obtain general information about the IMAP server
|
170
159
|
|
171
160
|
$ bundle exec bin/imapcli -s yourserver.example.com -u myusername -P info
|
@@ -177,7 +166,6 @@ directory of the repository. Never add this `.env` file to the repository!
|
|
177
166
|
hierarchy separator: /
|
178
167
|
quota: IMAP QUOTA extension not supported by this server
|
179
168
|
|
180
|
-
|
181
169
|
### List all mailboxes (folders) without size information
|
182
170
|
|
183
171
|
$ bundle exec bin/imapcli -s yourserver.example.com -u myusername -P list
|
@@ -191,7 +179,6 @@ directory of the repository. Never add this `.env` file to the repository!
|
|
191
179
|
- Sports
|
192
180
|
...
|
193
181
|
|
194
|
-
|
195
182
|
### Obtain size information about mailboxes
|
196
183
|
|
197
184
|
To obtain mailbox sizes, the server has to be queried for the message sizes for
|
@@ -200,14 +187,13 @@ of messages in them, this may take a little while.
|
|
200
187
|
|
201
188
|
`imapcli` prints the following statistics about the message sizes in a mailbox:
|
202
189
|
|
203
|
-
*
|
204
|
-
*
|
205
|
-
*
|
206
|
-
*
|
207
|
-
*
|
208
|
-
*
|
209
|
-
*
|
210
|
-
|
190
|
+
* `Count`: Number of individual messages
|
191
|
+
* `Total size`: Total size of all messages in the mailbox (in kiB)
|
192
|
+
* `Min`: Size of the smallest message in the mailbox (in kiB)
|
193
|
+
* `Q1`: First quartile of message sizes in the mailbox (in kiB)
|
194
|
+
* `Median`: Median of all message sizes in the mailbox (in kiB)
|
195
|
+
* `Q3`: First quartile of message sizes in the mailbox (in kiB)
|
196
|
+
* `Max`: Size of the largest message in the mailbox (in kiB)
|
211
197
|
|
212
198
|
#### All mailboxes
|
213
199
|
|
@@ -259,88 +245,72 @@ Use the `-r`/`--recurse` flag:
|
|
259
245
|
By default, mailboxes are sorted alphabetically. To sort by a specific statistic,
|
260
246
|
use an `-o`/`--sort` option:
|
261
247
|
|
262
|
-
*
|
263
|
-
*
|
264
|
-
*
|
265
|
-
*
|
266
|
-
*
|
267
|
-
*
|
268
|
-
*
|
248
|
+
* `-o count`
|
249
|
+
* `-o total_size`
|
250
|
+
* `-o min_size`
|
251
|
+
* `-o q1`
|
252
|
+
* `-o median_size`
|
253
|
+
* `-o q3`
|
254
|
+
* `-o max_size`
|
269
255
|
|
270
256
|
Example:
|
271
257
|
|
272
|
-
|
258
|
+
bundle exec -it bin/imapcli -s yourserver.example.com -u myusername -P stats -r -o max_size Archive
|
273
259
|
|
274
260
|
#### Obtaining comma-separated values (CSV)
|
275
261
|
|
276
262
|
Use the `--csv` flag.
|
277
263
|
|
278
|
-
|
279
|
-
Alternative resources
|
280
|
-
---------------------
|
264
|
+
## Alternative resources
|
281
265
|
|
282
266
|
While researching command-line tools for IMAP servers, I came across the
|
283
267
|
following:
|
284
268
|
|
285
|
-
|
286
269
|
### IMAP folder size script
|
287
270
|
|
288
|
-
*
|
289
|
-
|
290
|
-
Ad-hoc perl script that computes the sizes of each mailbox. `imapcli` was
|
291
|
-
inspired by this!
|
271
|
+
* <https://code.iamcal.com/pl/imap_folders>
|
292
272
|
|
273
|
+
Ad-hoc perl script that computes the sizes of each mailbox. `imapcli` was
|
274
|
+
inspired by this!
|
293
275
|
|
294
276
|
### IMAP synchronization and backup tools
|
295
277
|
|
296
|
-
*
|
278
|
+
* <https://github.com/OfflineIMAP/imapfw>
|
297
279
|
|
298
|
-
|
280
|
+
Framework to work with mails
|
299
281
|
|
300
|
-
*
|
282
|
+
* <https://github.com/polo2ro/imapbox>
|
301
283
|
|
302
|
-
|
284
|
+
Pull down e-mails from an IMAP server to your local disk
|
303
285
|
|
286
|
+
## State of the project
|
304
287
|
|
288
|
+
I have not been able to work on this project for quite some time. It still
|
289
|
+
serves me well when I occasionally need it. Pull requests are of course welcome.
|
305
290
|
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
State of the project
|
310
|
-
--------------------
|
311
|
-
|
312
|
-
While `imapcli` does what I need it to do, there are a lot of things that could
|
313
|
-
be improved. I'll be happy to take **pull request**. Please issue those against
|
314
|
-
the **develop** branch as I like to follow *[a successful Git branching
|
315
|
-
model](http://nvie.com/git-model)*.
|
316
|
-
|
317
|
-
|
318
|
-
### Versioning
|
291
|
+
I've decided to have one `main` branch, and to get rid of the `master` and
|
292
|
+
`
|
319
293
|
|
320
294
|
This project is [semantically versioned](https://semver.org).
|
321
295
|
|
322
296
|
### To do
|
323
297
|
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
298
|
+
* More human-friendly number formatting (e.g., MiB/GiB as appropriate)
|
299
|
+
* Output to file
|
300
|
+
* Deal with server-specific mailbox separator characters (e.g. '.' vs. '/')
|
301
|
+
* Man page
|
302
|
+
* More commands?
|
330
303
|
|
331
|
-
Credits
|
332
|
-
-------
|
304
|
+
## Credits
|
333
305
|
|
334
306
|
This tool is build around the awesome [GLI](https://github.com/davetron5000/gli)
|
335
307
|
gem by [David Copeland](https://github.com/davetron5000) and makes extensive use
|
336
308
|
of [Piotr Murach's](https://github.com/piotrmurach) excellent `TTY` tools. See
|
337
309
|
the `Gemfile` for other work that this tool depends on.
|
338
310
|
|
311
|
+
## License
|
339
312
|
|
340
|
-
|
341
|
-
-------
|
342
|
-
|
343
|
-
© 2017 Daniel Kraus (bovender)
|
313
|
+
© 2017, 2022 Daniel Kraus (bovender)
|
344
314
|
|
345
315
|
Licensed under the Apache License, Version 2.0 (the "License");
|
346
316
|
you may not use this file except in compliance with the License.
|
data/imapcli.gemspec
CHANGED
@@ -11,13 +11,12 @@ spec = Gem::Specification.new do |s|
|
|
11
11
|
s.summary = 'Command-line tool to query IMAP servers'
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
13
|
s.require_paths << 'lib'
|
14
|
-
s.has_rdoc = true
|
15
14
|
s.extra_rdoc_files = ['README.md','imapcli.rdoc']
|
16
15
|
s.rdoc_options << '--title' << 'imapcli' << '--main' << 'README.md' << '-ri'
|
17
16
|
s.bindir = 'bin'
|
18
17
|
s.executables << 'imapcli'
|
19
|
-
s.add_development_dependency('rake', '~> 12.
|
20
|
-
s.add_development_dependency('rdoc', '~>
|
18
|
+
s.add_development_dependency('rake', '~> 12.3.3')
|
19
|
+
s.add_development_dependency('rdoc', '~> 6.3')
|
21
20
|
s.add_runtime_dependency('descriptive_statistics', '~> 2.5')
|
22
21
|
s.add_runtime_dependency('dotenv', '~> 2.2')
|
23
22
|
s.add_runtime_dependency('filesize', '~> 0.1')
|
@@ -14,8 +14,8 @@ module Imapcli
|
|
14
14
|
if global_options[:s].nil? || global_options[:s].empty?
|
15
15
|
@errors << 'missing server name (use -s option or set IMAP_SERVER environment variable)'
|
16
16
|
end
|
17
|
-
if global_options[:
|
18
|
-
@errors << 'missing
|
17
|
+
if global_options[:u].nil? || global_options[:u].empty?
|
18
|
+
@errors << 'missing user name (use -u option or set IMAP_USER environment variable)'
|
19
19
|
end
|
20
20
|
if global_options[:P] && global_options[:p]
|
21
21
|
@errors << '-p and -P options do not agree'
|
data/lib/imapcli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imapcli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kraus (bovender)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 12.3.3
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 12.3.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6.3'
|
34
34
|
type: :development
|
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: '6.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: descriptive_statistics
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,11 +147,11 @@ extra_rdoc_files:
|
|
147
147
|
files:
|
148
148
|
- ".gitignore"
|
149
149
|
- ".rspec"
|
150
|
+
- CHANGELOG.md
|
150
151
|
- Dockerfile
|
151
152
|
- Gemfile
|
152
153
|
- Gemfile.lock
|
153
154
|
- Guardfile
|
154
|
-
- NEWS
|
155
155
|
- README.md
|
156
156
|
- Rakefile
|
157
157
|
- bin/imapcli
|
@@ -195,8 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
|
-
|
199
|
-
rubygems_version: 2.6.11
|
198
|
+
rubygems_version: 3.1.2
|
200
199
|
signing_key:
|
201
200
|
specification_version: 4
|
202
201
|
summary: Command-line tool to query IMAP servers
|
data/NEWS
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
Version 1.0.2 (2017-12-11)
|
2
|
-
------------------------------------------------------------------------
|
3
|
-
|
4
|
-
- Fix: Docker image did not build properly.
|
5
|
-
|
6
|
-
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
7
|
-
|
8
|
-
|
9
|
-
Version 1.0.1 (2017-12-11)
|
10
|
-
------------------------------------------------------------------------
|
11
|
-
|
12
|
-
- Fix: Gem package.
|
13
|
-
- Fix: Removed development warning.
|
14
|
-
- Improvement: Smaller docker image.
|
15
|
-
|
16
|
-
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
17
|
-
|
18
|
-
|
19
|
-
Version 1.0.0 (2017-12-10)
|
20
|
-
------------------------------------------------------------------------
|
21
|
-
|
22
|
-
Initial working release.
|
23
|
-
|
24
|
-
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
25
|
-
|
26
|
-
|
27
|
-
Version 0.0.1 (2017-11-16)
|
28
|
-
------------------------------------------------------------------------
|
29
|
-
|
30
|
-
Initial alpha release. Stats working only for mailboxes that are
|
31
|
-
explicitly given on the command line.
|
32
|
-
|
33
|
-
|
34
|
-
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|