imapcli 1.0.2 → 1.0.3
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/Dockerfile +10 -4
- data/NEWS +2 -34
- data/README.md +15 -1
- data/lib/imapcli/option_validator.rb +2 -2
- data/lib/imapcli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba4f2f36ccafebb43e5975ee4bf4b0c9aff21e52
|
|
4
|
+
data.tar.gz: 74eb3e7586599a4991242beede3c2b6393403aeb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7bf576ed0d640643ed9ac61105e04544c3fedeb53af5455df17de1bb1d71c893cd799e52cd8cdb5043dbef06ae97516eb15f6aef37fa237b2ee890a59534140
|
|
7
|
+
data.tar.gz: 23189a43cf79762fed894bc6daa8be50a81ec96585a51f18c85e21f8908b1a0d5aafe8fe9a29dae4099defaa288c9684695fe06f55c6aa9ecd84b6a3d2260547
|
data/Dockerfile
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
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 && \
|
|
10
|
+
apk del build-base && \
|
|
11
|
+
rm -rf /var/cache/apk/*
|
|
12
|
+
|
|
13
|
+
WORKDIR /imapcli
|
|
14
|
+
ENTRYPOINT ["bundle", "exec", "imapcli"]
|
data/NEWS
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
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
|
-
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
1
|
+
- Fix: Docker image.
|
|
2
|
+
- Fix: Options error message.
|
data/README.md
CHANGED
|
@@ -5,6 +5,7 @@ imapcli
|
|
|
5
5
|
=======
|
|
6
6
|
|
|
7
7
|
> Command-line interface (CLI) for IMAP servers
|
|
8
|
+
> (<https://github.com/bovender/imapcli>)
|
|
8
9
|
|
|
9
10
|
`imapcli` is a command-line tool that offers a convenient way to query an IMAP
|
|
10
11
|
server for configuration details and e-mail statistics. It can be used to gather
|
|
@@ -117,7 +118,20 @@ Run:
|
|
|
117
118
|
|
|
118
119
|
### Docker image
|
|
119
120
|
|
|
120
|
-
|
|
121
|
+
With [Docker](https://www.docker.com), you do not have to install Ruby and the
|
|
122
|
+
additional dependencies. Everything is contained in the, well, container. The
|
|
123
|
+
Docker image is about 120 MB in size though (I did not manage to make it
|
|
124
|
+
smaller).
|
|
125
|
+
|
|
126
|
+
Run:
|
|
127
|
+
|
|
128
|
+
docker run bvndr/imapcli <arguments>
|
|
129
|
+
|
|
130
|
+
Example:
|
|
131
|
+
|
|
132
|
+
docker run bvndr/imapcli -s myserver.example.com -u user -P info
|
|
133
|
+
|
|
134
|
+
The Docker repository is at <https://hub.docker.com/r/bvndr/imapcli>.
|
|
121
135
|
|
|
122
136
|
|
|
123
137
|
Terminology
|
|
@@ -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.3
|
|
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: 2017-12-
|
|
11
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|