net-imap 0.4.11 → 0.4.12
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.
Potentially problematic release.
This version of net-imap might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.github/workflows/{release-gem.yml → push_gem.yml} +20 -10
- data/BSDL +22 -0
- data/COPYING +56 -0
- data/LICENSE.txt +3 -22
- data/lib/net/imap/data_encoding.rb +1 -1
- data/lib/net/imap/deprecated_client_options.rb +1 -1
- data/lib/net/imap/errors.rb +1 -1
- data/lib/net/imap/flags.rb +1 -1
- data/lib/net/imap/response_data.rb +5 -5
- data/lib/net/imap/sasl/external_authenticator.rb +1 -1
- data/lib/net/imap/sasl.rb +1 -1
- data/lib/net/imap/sequence_set.rb +2 -2
- data/lib/net/imap.rb +3 -3
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5147af8d1017e772136634ea2144c33a1666a00a25d03de20a6d89f9b026ecc
|
4
|
+
data.tar.gz: 66a41c1fcfc932da451f65074ae6659d872b85aeeef831208cf47178f944cd08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67a5545d46acd17051097ad3e10304817980fad7621ca0225c614f8bd49d62365d9b9d3305fa1ac3fbebd63bd1ba2155cb5a94d448ca6a6763655dd31cdb22a2
|
7
|
+
data.tar.gz: dbc107f94925486cbc3eb28a26c45560fce568f3836d65127628599fd7a117046d5cc0225f1999b387802316b781bce367da5b660da79200c7e576515669ca70
|
@@ -3,32 +3,42 @@ name: Publish gem to rubygems.org
|
|
3
3
|
on:
|
4
4
|
push:
|
5
5
|
tags:
|
6
|
-
- v*
|
6
|
+
- 'v*'
|
7
|
+
|
8
|
+
permissions:
|
9
|
+
contents: read
|
7
10
|
|
8
11
|
jobs:
|
9
12
|
push:
|
10
13
|
if: github.repository == 'ruby/net-imap'
|
11
14
|
runs-on: ubuntu-latest
|
12
15
|
|
13
|
-
permissions:
|
14
|
-
id-token: write # mandatory for trusted publishing
|
15
|
-
contents: write # required for `rake release` to push the release tag
|
16
|
-
|
17
16
|
environment:
|
18
|
-
name:
|
17
|
+
name: rubygems.org
|
19
18
|
url: https://rubygems.org/gems/net-imap
|
20
19
|
|
20
|
+
permissions:
|
21
|
+
contents: write
|
22
|
+
id-token: write
|
23
|
+
|
21
24
|
steps:
|
22
|
-
|
25
|
+
# Set up
|
26
|
+
- name: Harden Runner
|
27
|
+
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
|
28
|
+
with:
|
29
|
+
egress-policy: audit
|
30
|
+
|
31
|
+
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
23
32
|
|
24
33
|
- name: Set up Ruby
|
25
|
-
uses: ruby/setup-ruby@v1
|
34
|
+
uses: ruby/setup-ruby@cacc9f1c0b3f4eb8a16a6bb0ed10897b43b9de49 # v1.176.0
|
26
35
|
with:
|
27
36
|
bundler-cache: true
|
28
|
-
ruby-version:
|
37
|
+
ruby-version: ruby
|
29
38
|
|
39
|
+
# Release
|
30
40
|
- name: Publish to RubyGems
|
31
|
-
uses: rubygems/release-gem@v1
|
41
|
+
uses: rubygems/release-gem@612653d273a73bdae1df8453e090060bb4db5f31 # v1
|
32
42
|
|
33
43
|
- name: Create GitHub release
|
34
44
|
run: |
|
data/BSDL
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
|
2
|
+
|
3
|
+
Redistribution and use in source and binary forms, with or without
|
4
|
+
modification, are permitted provided that the following conditions
|
5
|
+
are met:
|
6
|
+
1. Redistributions of source code must retain the above copyright
|
7
|
+
notice, this list of conditions and the following disclaimer.
|
8
|
+
2. Redistributions in binary form must reproduce the above copyright
|
9
|
+
notice, this list of conditions and the following disclaimer in the
|
10
|
+
documentation and/or other materials provided with the distribution.
|
11
|
+
|
12
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
13
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
16
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
17
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
18
|
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
19
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
20
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
21
|
+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
22
|
+
SUCH DAMAGE.
|
data/COPYING
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
|
2
|
+
You can redistribute it and/or modify it under either the terms of the
|
3
|
+
2-clause BSDL (see the file BSDL), or the conditions below:
|
4
|
+
|
5
|
+
1. You may make and give away verbatim copies of the source form of the
|
6
|
+
software without restriction, provided that you duplicate all of the
|
7
|
+
original copyright notices and associated disclaimers.
|
8
|
+
|
9
|
+
2. You may modify your copy of the software in any way, provided that
|
10
|
+
you do at least ONE of the following:
|
11
|
+
|
12
|
+
a. place your modifications in the Public Domain or otherwise
|
13
|
+
make them Freely Available, such as by posting said
|
14
|
+
modifications to Usenet or an equivalent medium, or by allowing
|
15
|
+
the author to include your modifications in the software.
|
16
|
+
|
17
|
+
b. use the modified software only within your corporation or
|
18
|
+
organization.
|
19
|
+
|
20
|
+
c. give non-standard binaries non-standard names, with
|
21
|
+
instructions on where to get the original software distribution.
|
22
|
+
|
23
|
+
d. make other distribution arrangements with the author.
|
24
|
+
|
25
|
+
3. You may distribute the software in object code or binary form,
|
26
|
+
provided that you do at least ONE of the following:
|
27
|
+
|
28
|
+
a. distribute the binaries and library files of the software,
|
29
|
+
together with instructions (in the manual page or equivalent)
|
30
|
+
on where to get the original distribution.
|
31
|
+
|
32
|
+
b. accompany the distribution with the machine-readable source of
|
33
|
+
the software.
|
34
|
+
|
35
|
+
c. give non-standard binaries non-standard names, with
|
36
|
+
instructions on where to get the original software distribution.
|
37
|
+
|
38
|
+
d. make other distribution arrangements with the author.
|
39
|
+
|
40
|
+
4. You may modify and include the part of the software into any other
|
41
|
+
software (possibly commercial). But some files in the distribution
|
42
|
+
are not written by the author, so that they are not under these terms.
|
43
|
+
|
44
|
+
For the list of those files and their copying conditions, see the
|
45
|
+
file LEGAL.
|
46
|
+
|
47
|
+
5. The scripts and library files supplied as input to or produced as
|
48
|
+
output from the software do not automatically fall under the
|
49
|
+
copyright of the software, but belong to whomever generated them,
|
50
|
+
and may be sold commercially, and may be aggregated with this
|
51
|
+
software.
|
52
|
+
|
53
|
+
6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
|
54
|
+
IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
55
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
56
|
+
PURPOSE.
|
data/LICENSE.txt
CHANGED
@@ -1,25 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
modification, are permitted provided that the following conditions
|
5
|
-
are met:
|
6
|
-
1. Redistributions of source code must retain the above copyright
|
7
|
-
notice, this list of conditions and the following disclaimer.
|
8
|
-
2. Redistributions in binary form must reproduce the above copyright
|
9
|
-
notice, this list of conditions and the following disclaimer in the
|
10
|
-
documentation and/or other materials provided with the distribution.
|
11
|
-
|
12
|
-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
13
|
-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
16
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
17
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
18
|
-
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
19
|
-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
20
|
-
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
21
|
-
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
22
|
-
SUCH DAMAGE.
|
1
|
+
All the files in this distribution are covered under either the Ruby license or
|
2
|
+
the BSD-2-Clause license (see the file COPYING) except some documentation mentioned
|
3
|
+
below.
|
23
4
|
|
24
5
|
-------------------------------------------------------------------------
|
25
6
|
|
@@ -136,7 +136,7 @@ module Net
|
|
136
136
|
alias parse_datetime decode_datetime
|
137
137
|
alias parse_time decode_time
|
138
138
|
|
139
|
-
# alias format_datetime encode_datetime # n.b
|
139
|
+
# alias format_datetime encode_datetime # n.b: this is overridden below...
|
140
140
|
end
|
141
141
|
|
142
142
|
# DEPRECATED:: The original version returned incorrectly formatted strings.
|
@@ -20,7 +20,7 @@ module Net
|
|
20
20
|
# deprecated by a future release.
|
21
21
|
#
|
22
22
|
# If a second positional argument is given and it is a hash (or is
|
23
|
-
#
|
23
|
+
# convertible via +#to_hash+), it is converted to keyword arguments.
|
24
24
|
#
|
25
25
|
# # Obsolete:
|
26
26
|
# Net::IMAP.new("imap.example.com", options_hash)
|
data/lib/net/imap/errors.rb
CHANGED
data/lib/net/imap/flags.rb
CHANGED
@@ -71,7 +71,7 @@ module Net
|
|
71
71
|
# Mailbox name attributes are not case-sensitive. <em>The current
|
72
72
|
# implementation</em> normalizes mailbox attribute case using
|
73
73
|
# String#capitalize, such as +:Noselect+ (not +:NoSelect+). The constants
|
74
|
-
# (such as NO_SELECT) can also be used for comparison. The
|
74
|
+
# (such as NO_SELECT) can also be used for comparison. The constants have
|
75
75
|
# been defined both with and without underscores between words.
|
76
76
|
#
|
77
77
|
# <em>The descriptions here were copied from</em> {[RFC-9051 §
|
@@ -58,7 +58,7 @@ module Net
|
|
58
58
|
|
59
59
|
# Net::IMAP::IgnoredResponse represents intentionally ignored responses.
|
60
60
|
#
|
61
|
-
# This includes untagged response "NOOP" sent by
|
61
|
+
# This includes untagged response "NOOP" sent by e.g. Zimbra to avoid
|
62
62
|
# some clients to close the connection.
|
63
63
|
#
|
64
64
|
# It matches no IMAP standard.
|
@@ -280,7 +280,7 @@ module Net
|
|
280
280
|
# ==== +QRESYNC+ extension
|
281
281
|
# See {[RFC7162]}[https://www.rfc-editor.org/rfc/rfc7162.html].
|
282
282
|
# * +CLOSED+, returned when the currently selected mailbox is closed
|
283
|
-
#
|
283
|
+
# implicitly by selecting or examining another mailbox. #data is +nil+.
|
284
284
|
#
|
285
285
|
# ==== +IMAP4rev2+ Response Codes
|
286
286
|
# See {[RFC9051]}[https://www.rfc-editor.org/rfc/rfc9051] {§7.1, "Server
|
@@ -1045,7 +1045,7 @@ module Net
|
|
1045
1045
|
# === Bug Analysis
|
1046
1046
|
#
|
1047
1047
|
# \IMAP body structures are parenthesized lists and assign their fields
|
1048
|
-
# positionally, so missing fields change the
|
1048
|
+
# positionally, so missing fields change the interpretation of all
|
1049
1049
|
# following fields. Additionally, different body types have a different
|
1050
1050
|
# number of required fields, followed by optional "extension" fields.
|
1051
1051
|
#
|
@@ -1060,7 +1060,7 @@ module Net
|
|
1060
1060
|
# Normally, +envelope+ and +md5+ are incompatible, but Net::IMAP leniently
|
1061
1061
|
# allowed buggy servers to send +NIL+ for +envelope+. As a result, when a
|
1062
1062
|
# server sent a <tt>message/rfc822</tt> part with +NIL+ for +md5+ and a
|
1063
|
-
# non-<tt>NIL</tt> +dsp+, Net::IMAP
|
1063
|
+
# non-<tt>NIL</tt> +dsp+, Net::IMAP misinterpreted the
|
1064
1064
|
# <tt>Content-Disposition</tt> as if it were a strange body type. In all
|
1065
1065
|
# reported cases, the <tt>Content-Disposition</tt> was "attachment", so
|
1066
1066
|
# BodyTypeAttachment was created as the workaround.
|
@@ -1068,7 +1068,7 @@ module Net
|
|
1068
1068
|
# === Current behavior
|
1069
1069
|
#
|
1070
1070
|
# When interpreted strictly, +envelope+ and +md5+ are incompatible. So the
|
1071
|
-
# current parsing algorithm peeks ahead after it has
|
1071
|
+
# current parsing algorithm peeks ahead after it has received the seventh
|
1072
1072
|
# body field. If the next token is not the start of an +envelope+, we assume
|
1073
1073
|
# the server has incorrectly sent us a <tt>body-type-basic</tt> and return
|
1074
1074
|
# BodyTypeBasic. As a result, what was previously BodyTypeMessage#body =>
|
@@ -9,7 +9,7 @@ module Net
|
|
9
9
|
# Net::IMAP#authenticate.
|
10
10
|
#
|
11
11
|
# The EXTERNAL mechanism requests that the server use client credentials
|
12
|
-
# established external to SASL, for example by TLS certificate or
|
12
|
+
# established external to SASL, for example by TLS certificate or IPSec.
|
13
13
|
class ExternalAuthenticator
|
14
14
|
|
15
15
|
# Authorization identity: an identity to act as or on behalf of. The
|
data/lib/net/imap/sasl.rb
CHANGED
@@ -902,8 +902,8 @@ module Net
|
|
902
902
|
# Yields each number or range in #string to the block and returns +self+.
|
903
903
|
# Returns an enumerator when called without a block.
|
904
904
|
#
|
905
|
-
# The entries are yielded in the same order they appear in #
|
906
|
-
# sorting, deduplication, or coalescing. When #string is in its
|
905
|
+
# The entries are yielded in the same order they appear in #string, with
|
906
|
+
# no sorting, deduplication, or coalescing. When #string is in its
|
907
907
|
# normalized form, this will yield the same values as #each_element.
|
908
908
|
#
|
909
909
|
# Related: #entries, #each_element
|
data/lib/net/imap.rb
CHANGED
@@ -717,7 +717,7 @@ module Net
|
|
717
717
|
# * {IMAP URLAUTH Authorization Mechanism Registry}[https://www.iana.org/assignments/urlauth-authorization-mechanism-registry/urlauth-authorization-mechanism-registry.xhtml]
|
718
718
|
#
|
719
719
|
class IMAP < Protocol
|
720
|
-
VERSION = "0.4.
|
720
|
+
VERSION = "0.4.12"
|
721
721
|
|
722
722
|
# Aliases for supported capabilities, to be used with the #enable command.
|
723
723
|
ENABLE_ALIASES = {
|
@@ -820,7 +820,7 @@ module Net
|
|
820
820
|
#
|
821
821
|
# ==== Examples
|
822
822
|
#
|
823
|
-
# Connect to cleartext port 143 at mail.example.com and
|
823
|
+
# Connect to cleartext port 143 at mail.example.com and receive the server greeting:
|
824
824
|
# imap = Net::IMAP.new('mail.example.com', ssl: false) # => #<Net::IMAP:0x00007f79b0872bd0>
|
825
825
|
# imap.port => 143
|
826
826
|
# imap.tls_verified? => false
|
@@ -888,7 +888,7 @@ module Net
|
|
888
888
|
@greeting = nil
|
889
889
|
@capabilities = nil
|
890
890
|
|
891
|
-
# Client Protocol
|
891
|
+
# Client Protocol Receiver
|
892
892
|
@parser = ResponseParser.new
|
893
893
|
@responses = Hash.new {|h, k| h[k] = [] }
|
894
894
|
@response_handlers = []
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-imap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shugo Maeda
|
8
8
|
- nicholas a. evans
|
9
|
-
autorequire:
|
10
9
|
bindir: exe
|
11
10
|
cert_chain: []
|
12
|
-
date: 2024-
|
11
|
+
date: 2024-06-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: net-protocol
|
@@ -49,10 +48,12 @@ extra_rdoc_files: []
|
|
49
48
|
files:
|
50
49
|
- ".github/dependabot.yml"
|
51
50
|
- ".github/workflows/pages.yml"
|
52
|
-
- ".github/workflows/
|
51
|
+
- ".github/workflows/push_gem.yml"
|
53
52
|
- ".github/workflows/test.yml"
|
54
53
|
- ".gitignore"
|
55
54
|
- ".mailmap"
|
55
|
+
- BSDL
|
56
|
+
- COPYING
|
56
57
|
- Gemfile
|
57
58
|
- LICENSE.txt
|
58
59
|
- README.md
|
@@ -110,7 +111,6 @@ metadata:
|
|
110
111
|
homepage_uri: https://github.com/ruby/net-imap
|
111
112
|
source_code_uri: https://github.com/ruby/net-imap
|
112
113
|
changelog_uri: https://github.com/ruby/net-imap/releases
|
113
|
-
post_install_message:
|
114
114
|
rdoc_options: []
|
115
115
|
require_paths:
|
116
116
|
- lib
|
@@ -125,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
- !ruby/object:Gem::Version
|
126
126
|
version: '0'
|
127
127
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
129
|
-
signing_key:
|
128
|
+
rubygems_version: 3.6.0.dev
|
130
129
|
specification_version: 4
|
131
130
|
summary: Ruby client api for Internet Message Access Protocol
|
132
131
|
test_files: []
|