Up to [cvs.NetBSD.org] / pkgsrc / net / ruby-net-imap
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
net/ruby-net-imap: downgrade to 0.5.13
This package is for ruby-redmine{60,61} package and they require
net-imap 0.5.x on ruby32. So downgrade now.
Changes from previous 0.5.11:
0.5.12 (2025-10-06)
What's Changed
TruffleRuby is not (yet) "officially supported" but it seems to work (with a
few small caveats). Several tests are still marked as pending, but the rest
all pass. #528 protects us from merging PRs that break TruffleRuby and (in
some cases) JRuby.
Fixed
* Fix loading of net/imap for JRuby/TruffleRuby by @nevans in #530
Miscellaneous
* Test overriding inherited ::Data methods by @nevans in #531
* Add TruffleRuby to CI by @nevans in #528
0.5.13 (2025-12-18)
What's Changed
Fixed
* Fix SequenceSet#delete?(num..num) to return set (backport to 0.5) by
@nevans in #585
* Fix SequenceSet#max(n) when cardinality < n <= size (backport to 0.5) by
@nevans in #586
* Fix config.responses_without_block = :frozen_dup (backport to 0.5) by
@nevans in #588, reported by @yurikoval in #581
Documentation
* Improve rdoc example for #uid_fetch with partial by @nevans in #532
Other Changes
* Refactor Config.versioned_defaults to reduce merge conflicts (backport to
0.5) by @nevans in #584
Miscellaneous
* Drop digest from Gemfile (workaround for #576, backport to 0.5) by @nevans
in #591
net/ruby-net-imap: update to 0.6.2
0.6.0 (2025-12-15)
Breaking Changes
* Update default config for v0.6 by @nevans in #539
- responses_without_block changed from :warn to :frozen_dup
- parser_use_deprecated_uidplus_data changed from :up_to_max_size to
false (and is deprecated)
- parser_max_deprecated_uidplus_data_size changed from 100 to 0 (and
is deprecated)
* Use psych (>= 5.2.5) for encoding Data objects by @nevans in #543
This changes the YAML tag for Data subclasses from
ruby/object:Net::IMAP::DataSubclass to ruby/data:Net::IMAP::DataSubclass.
YAML dumped by earlier net-imap versions may not load correctly. Psych >=
5.2.5 is required to dump these objects correctly.
* Require ruby >= 3.2 (drop support for 3.1) by @nevans in #538
* Change SequenceSet#size to count * and repeated numbers by @nevans in #564
SequenceSet is used to represent both sorted sets and ordered lists (which
may contain duplicates). Members are non-zero UInt32 numbers, but "*" has
special meaning as "the number corresponding to the last mailbox entry".
So there are four different ways to count the members of a SequenceSet.
Previously, #size was an alias for #count. Now it differs in both relevant
aspects.
| * is a unique member | * is treated like 2^32 - 1
distinct set members | #cardinality | #count
ordered list, including duplicates | #size | #count_with_duplicates
* Remove deprecated UIDPlusData class by @nevans in #540
UIDPlusData was deprecated by v0.5.6. AppendUIDData or CopyUIDData will
always be returned instead.
* Delete deprecated MessageSet by @nevans in #573
MessageSet was deprecated by v0.5.0. Use SequenceSet instead.
* Do not include OpenSSL and OpenSSL::SSL modules into Net::IMAP by @nevans
in #533
This only affects the ability to use OpenSSL constants from the Net::IMAP
namespace.
* Don't set verify_callback to VerifyCallbackProc by @nevans in #534
This functionality was never documented and is redundant with the
verify_callback option.
Deprecated
* Deprecated config options for UIDPlusData in #540
The parser_use_deprecated_uidplus_data and
parser_max_deprecated_uidplus_data_size config options will be removed in
v0.7.0. They are kept for backward compatibility, but they do not affect
response parser results. When parser_use_deprecated_uidplus_data is
changed from the default value (false), deprecation warnings are printed
when parsing APPENDUID or COPYUID response codes.
Added
* Add when_capabilities_cached option for Config#sasl_ir by @nevans in #561
* Net::IMAP::Config improvements
- Improve Config#inspect output by @nevans in #546
- Improve Config#pretty_print (for Kernel::pp) by @nevans in #547
- Update Config#inherited? for any number of args by @nevans in #552
* Net::IMAP::SequenceSet improvements
- Add SequenceSet#intersect! for in-place set AND by @nevans in #549
- Add SequenceSet#xor! for in-place set XOR by @nevans in #550
- Coalesce entries in SequenceSet#append by @nevans in #553
- Add SequenceSet#normalized? by @nevans in #558
- Add SequenceSet#cardinality method by @nevans in #563
- Change SequenceSet#size to count * and repeated numbers by @nevans
in #564
* Net::IMAP::NumValidator improvements
- Support mod-sequence-valzer (RFC4551) in NumValidator by @nevans
in #570
- Add NumValidator.coerce_{type} methods by @nevans in #571
Documentation
* mprove rdoc example for #uid_fetch with partial by @nevans in #532
* ocument SearchResult/ESearchResult compatibility by @nevans in #559
* inor rdoc formatting fixes by @nevans in #560
Other Changes
* Drop Data polyfill by @nevans in #541
This was only used for ruby 3.1, which is no longer supported. So this is
not considered a breaking change.
* Refactor Config.versioned_defaults to reduce merge conflcts by @nevans in
#544
* Improved Net::IMAP::SequenceSet performance
- Don't memoize SequenceSet#string on normalized sets by @nevans in
#554
- aster SequenceSet#normalize when frozen by @nevans in #556
- Faster SequenceSet#full? by @nevans in #565
- Slightly faster SequenceSet#xor by @nevans in #567
- Avoid allocating arrays for SequenceSet bsearch (extract abstract
strategy methods) by @nevans in #569
- Rename SequenceSet internals by @nevans in #562
- Reorganize SequenceSet internals by @nevans in #568
Miscellaneous (omitted)
0.6.1 (2025-12-17)
Fixed
* Fix SequenceSet#max(n) when cardinality < n <= size by @nevans in #580
Miscellaneous
* Bump step-security/harden-runner from 2.13.3 to 2.14.0 by @dependabot[bot]
in #579
0.6.2 (2025-12-17)
Fixed
* Fix SequenceSet#delete?(num..num) to return set by @nevans in #583
* Fix #responses() freezing internal arrays by @nevans in #587, reported by
@yurikoval in #581
net/ruby-net-imap: update to 0.5.8 0.5.7 (2025-04-22) What's Changed Security This release adds two features to prevent unbounded memory use: the response_handlers keyword argument to Net::IMAP.new (#419) so response handlers can be added before the server can send any responses, and the max_response_size config attribute (#444, GHSA-j3g3-5qv5-52mj, CVE-2025-43857, reported by @Masamuneee). Note The default max_response_size is extremely high, to avoid issues with secure connections to trusted servers that are well-behaved. It can be configured more conservatively to guard against untrusted servers (for example, connecting to user-provided hostnames). It is the responsibility of net-imap users to configure their client appropriately for the server they are connecting to. Added * Track IMAP connection state by @nevans in #416 * Add response_handlers kwarg to Net::IMAP.new by @nevans in #419 * Customize SequenceSet YAML serialization by @nevans in #432 * Limit max_response_size by @nevans in #444 Documentation * Improve docs for unbounded memory use and thread safety by @nevans in #418 * Impove SequenceSet docs by @nevans in #420 * Doc improvements for open_timeout, etc by @nevans in #424 Other Changes * Reorganize Config.version_defaults creation by @nevans in #412 * Refactor Config attr type coercion by @nevans in #417 * Refactor Net::IMAP#get_response (internal) by @nevans in #422 * Rational config versions by @nevans in #429 * Extract ResponseReader from get_response by @nevans in #433 * Refactor ResponseReader by @nevans in #435 Miscellaneous * Bump step-security/harden-runner from 2.10.4 to 2.11.0 by @dependabot in #409 * Make FakeServer more robust against disconnect by @nevans in #414 * Improvements to FakeServer (tests only) by @nevans in #415 * Ignore more IO errors in some FakeServer tests by @nevans in #421 * Bump step-security/harden-runner from 2.11.0 to 2.11.1 by @dependabot in #423 0.5.8 (2025-04-29) What's Changed Added * Add SequenceSet#min(count) and #max(count) by @nevans in #460 * Add SequenceSet#above and SequenceSet#below by @nevans in #462 Fixed * Check for Ractor (for JRuby, TruffleRuby) by @nevans in #453, reported by @rammpeter in #452 * Fix SequenceSet#slice with range (start...0) by @nevans in #456 * Fix inconsistently frozen SequenceSet#[] result by @nevans in #458 * Fix SequenceSet#xor crash when set is frozen by @nevans in #457 * Fix SequenceSet#slice when length > result size by @nevans in #459 Documentation * Various SequenceSet rdoc improvements by @nevans in #465 Miscellaneous * Bump step-security/harden-runner from 2.11.1 to 2.12.0 by @dependabot in #455 * Test SequenceSet#xor and fuzz test all set operations by @nevans in #464
Pullup ticket #6945 - requested by taca
net/ruby-net-imap: Security fix
Revisions pulled up:
- net/ruby-net-imap/Makefile 1.8-1.10
- net/ruby-net-imap/PLIST 1.6-1.7
- net/ruby-net-imap/distinfo 1.5-1.7
---
Module Name: pkgsrc
Committed By: taca
Date: Thu Jan 2 05:41:25 UTC 2025
Modified Files:
pkgsrc/net/ruby-net-imap: Makefile PLIST distinfo
Log Message:
net/ruby-net-imap: update to 0.5.4
pkgsrc change: restrict Ruby's version (not for Ruby 3.4).
0.5.4 (2024-12-23)
What's Changed
Added
* Add support for PARTIAL extension (RFC9394) by @nevans in #367
Fixed
* Fix partial-range encoding of exclusive ranges by @nevans in #370
Documentation
* Fix documentation for #fetch by @nevans in #369
0.5.3 (2024-12-22)
What's Changed
Added
* Add support for VANISHED responses by @nevans in #329
Documentation
* Fix rdoc issues by @nevans in #365
0.5.2 (2024-12-17)
What's Changed
Added
* Raise ArgumentError on multiple search charset args by @nevans in #363
* Add keyword argument for search charset by @nevans in #364
* Add basic ESEARCH support (RFC4466, RFC4731) by @nevans in #333
Fixed
* Return empty SearchResult for no search result by @nevans in #362
Documentation
* Fix README example by @nevans in #354
* Add release.yml for better release note generation by @nevans in #355
* Fix rdoc 6.8 CSS styles by @nevans in #356
* Update IMAP#search docs (again) by @nevans in #360
* Consistent heading levels inside method rdoc by @nevans in #361
Other Changes
* Add Data polyfill for ruby 3.1 by @nevans in #352
* Refactor internal command data classes by @nevans in #358
Miscellaneous
* Drop YAML.unsafe_load_file refinement (tests only) by @nevans in #353
* Bump step-security/harden-runner from 2.10.1 to 2.10.2 by @dependabot in
#357
* Enabled windows-latest on GHA by @hsbt in #359
---
Module Name: pkgsrc
Committed By: taca
Date: Sun Jan 19 16:28:20 UTC 2025
Modified Files:
pkgsrc/net/ruby-net-imap: Makefile distinfo
Log Message:
net/ruby-net-imap: update to 0.5.5
0.5.5 (2025-01-04)
What's Changed
Breaking Changes
* Remove accidental Data#attributes method by @nevans in #371
* For ruby 3.2 and above, this PR is not a breaking change, and it fixes a
YAML serialization bug.
* Net::IMAP::Data#attributes was only available in ruby 3.1, with net-imap
v0.5.2 - v0.5.4. It can be replaced by #to_h.
Added
* RFC9586 UIDONLY support by @avdi in #366
Documentation
* Fix rdoc issues by @nevans in #372
* Use standard www.rfc-editor.org links for RFCs by @nevans in #374
* Documentation updates by @nevans in #373
New Contributors
* @avdi made their first contribution in #366
---
Module Name: pkgsrc
Committed By: taca
Date: Sun Feb 9 14:40:07 UTC 2025
Modified Files:
pkgsrc/net/ruby-net-imap: Makefile distinfo
Log Message:
net/ruby-net-imap: update to 0.5.6
0.5.6 (2025-02-08)
Security Fix
Fixes CVE-2025-25186 (GHSA-7fc5-f82f-cx69): A malicious server can exhaust
client memory by sending APPENDUID or COPYUID responses with very large
uid-set ranges. Net::IMAP::UIDPlusData expands these ranges into arrays of
integers.
Fix with minor API changes
Set config.parser_use_deprecated_uidplus_data to false to replace
UIDPlusData with AppendUIDData and CopyUIDData. These classes store their
UIDs as Net::IMAP::SequenceSet objects (not expanded into arrays of
integers). Code that does not handle APPENDUID or COPYUID responses should
not see any difference. Code that does handle these responses may need to
be updated.
For v0.3.8, this option is not available
For v0.4.19, the default value is true.
For v0.5.6, the default value is :up_to_max_size.
For v0.6.0, the only allowed value will be false (UIDPlusData will be
removed from v0.6).
Mitigate with backward compatible API
Adjust config.parser_max_deprecated_uidplus_data_size to limit the maximum
UIDPlusData UID set size.
When config.parser_use_deprecated_uidplus_data == true, larger sets will
crash.
When config.parser_use_deprecated_uidplus_data == :up_to_max_size, larger
sets will use AppendUIDData or CopyUIDData.
For v0.3,8, this limit is hard-coded to 10,000.
For v0.4.19, this limit defaults to 1000.
For v0.5.6, this limit defaults to 100.
For v0.6.0, the only allowed value will be 0 (UIDPlusData will be removed
from v0.6).
Please Note: unhandled responses
If the client does not add response handlers to prune unhandled responses, a
malicious server can still eventually exhaust all client memory, by
repeatedly sending malicious responses. However, net-imap has always
retained unhandled responses, and it has always been necessary for
long-lived connections to prune these responses. This is not significantly
different from connecting to a trusted server with a long-lived connection.
To limit the maximum number of retained responses, a simple handler might
look something like the following:
limit = 1000
imap.add_response_handler do |resp|
next unless resp.respond_to?(:name) && resp.respond_to?(:data)
name = resp.name
code = resp.data.code&.name if resp.data.in?(Net::IMAP::ResponseText)
imap.responses(name) { _1.slice!(0...-limit) }
imap.responses(code) { _1.slice!(0...-limit) }
end
Added
* Ensure ResponseParser config is mutable and non-global by @nevans in #381
* Add SequenceSet methods for querying about duplicates by @nevans in #384
* Add SequenceSet#each_ordered_number by @nevans in #386
* Add SequenceSet#find_ordered_index by @nevans in #396
* Add SequenceSet#ordered_at by @nevans in #397
* Add AppendUIDData and CopyUIDData classes by @nevans in #400
* Add parser config for APPENDUID/COPYUID, Deprecate UIDPlusData by @nevans
in #401
Fixed
* Fix SequenceSet#append when its @string is nil by @nevans in #376
* Fix SequenceSet merging in another SequenceSet by @nevans in #377
* Fix SequenceSet count dups with multiple "*" by @nevans in #387
* Re-raise #starttls error from receiver thread by @nevans in #395
Documentation
* Fix SequenceSet#cover? documentation by @nevans in #379
* Document COPYUID in tagged vs untagged responses by @nevans in #398
Other Changes
* Move UIDPlusData to its own file by @nevans in #391
* Parse uid-set as sequence-set without * by @nevans in #393
Miscellaneous
* Bump step-security/harden-runner from 2.10.2 to 2.10.3 by @dependabot in #375
* Bump step-security/harden-runner from 2.10.3 to 2.10.4 by @dependabot in #380
* Improve test coverage for SequenceSet enums by @nevans in #383
* Refactor SequenceSet enumerator tests by @nevans in #385
* Add "irb" to Gemfile to silence warning by @nevans in #388
* Omit flaky test with macOS platform by @hsbt in #389
* Improve UIDPlusData test coverage by @nevans in #392
* Rename UIDPLUS test file for consistency by @nevans in #399
---
Module Name: pkgsrc
Committed By: taca
Date: Tue Feb 11 16:15:39 UTC 2025
Modified Files:
pkgsrc/net/ruby-net-imap: PLIST
Log Message:
net/ruby-net-imap: update PLIST
Forgot to commit with previous update.
net/ruby-net-imap: update PLIST Forgot to commit with previous update.
net/ruby-net-imap: update to 0.5.4 pkgsrc change: restrict Ruby's version (not for Ruby 3.4). 0.5.4 (2024-12-23) What's Changed Added * Add support for PARTIAL extension (RFC9394) by @nevans in #367 Fixed * Fix partial-range encoding of exclusive ranges by @nevans in #370 Documentation * Fix documentation for #fetch by @nevans in #369 0.5.3 (2024-12-22) What's Changed Added * Add support for VANISHED responses by @nevans in #329 Documentation * Fix rdoc issues by @nevans in #365 0.5.2 (2024-12-17) What's Changed Added * Raise ArgumentError on multiple search charset args by @nevans in #363 * Add keyword argument for search charset by @nevans in #364 * Add basic ESEARCH support (RFC4466, RFC4731) by @nevans in #333 Fixed * Return empty SearchResult for no search result by @nevans in #362 Documentation * Fix README example by @nevans in #354 * Add release.yml for better release note generation by @nevans in #355 * Fix rdoc 6.8 CSS styles by @nevans in #356 * Update IMAP#search docs (again) by @nevans in #360 * Consistent heading levels inside method rdoc by @nevans in #361 Other Changes * Add Data polyfill for ruby 3.1 by @nevans in #352 * Refactor internal command data classes by @nevans in #358 Miscellaneous * Drop YAML.unsafe_load_file refinement (tests only) by @nevans in #353 * Bump step-security/harden-runner from 2.10.1 to 2.10.2 by @dependabot in #357 * Enabled windows-latest on GHA by @hsbt in #359
net/ruby-net-imap: update to 0.5.1 pkgsrc change: do not restrict Ruby's version. Changes from 0.3.7 are too many to write here, please refer: <https://github.com/ruby/net-imap/releases>.
net/ruby-net-imap: add version 0.3.7 devel/ruby-redmine51 require net-imap gem version 0.3.4 but ruby31 bundles 0.2.3. So, it add latest version of net-imap gem 0.3.x as ruby-net-imap. Ruby client api for Internet Message Access Protocol. Changes from 0.2.3: 0.3.0 (2022-11-17) What's Changed * Added dependabot.yml for actions by @hsbt in #59 * Bump actions/checkout from 2 to 3 by @dependabot in #60 * Adding RFC licenses by @nevans in #57 * Warn when using deprecated SASL mechanisms by @nevans in #62 New Contributors * @dependabot made their first contribution in #60 0.3.1 (2022-11-17) What's Changed * Add XOAUTH2 authenticator by @ssunday in #63 New Contributors * @ssunday made their first contribution in #63 0.3.2 (2022-12-09) What's Changed * Support UIDPLUS extension by @hoffi in #65 * Fixes "bundle exec rake" clash with test/unit by @nevans in #67 * Fix some UIDPLUS issues by @nevans in #69 * Fixes date-time format, and adds decode_datetime by @nevans in #66 * Add SASLprep. Code generated & tested with RFC3454 by @nevans in #64 * Add the UNSELECT command by @nevans in #72 * Fix mailbox attrs by @nevans in #73 * RFCs and references by @nevans in #71 * Nodocs and remove warning by @nevans in #70 * ResponseParser docs by @nevans in #76 * Response Data docs by @nevans in #75 New Contributors * @hoffi made their first contribution in #65 0.3.3 (2022-12-21) What's Changed * Revert "Fixes "bundle exec rake", clash with test/unit" by @znz in #88 New Contributors * @znz made their first contribution in #88 0.3.4 (2023-01-18) What's Changed * Net::IMAP Client docs by @nevans in #74 0.3.5 (2023-06-12) * Fix #response documentation error, by @nevans in 87ba74e * Add RFC3454 data, to support offline testing, by @nevans in #137 * Adds Ruby 3.2 to the CI matrix, by @petergoldstein in #99 * Use reusing workflow, by @hsbt in #151 * Decode UTF-7 more strictly, by @nobu in #152 * ️Continue testing 0.3.x branch against ruby 2.6, by @nevans in 115d190 * Fix decode utf-7 test for ruby 2.6, by @nevans in 7a60c8f * Fix XOAUTH2 authenticator for ruby 2.6, by @nevans in bd4faa0 0.3.6 (2023-06-12) * Fixes file permissions regression in v0.3.5 release, reported by @aaronjensen in #154 0.3.7 (2023-07-26) What's Changed * Backport: Fix for Digest MD5 bad challenges by @nobu in #160 PR for backport is #161
net/ruby-net-imap: remove package * This package was kept only for devel/ruby-remdine50 on Ruby 3.0. * Ruby 3.1 and 3.2 contains ruby-net-imap as default gem.
net/ruby-net-imap: add dependencies * This package is mainly for redmine50 on Ruby 2.7. * This package require ruby-net-protocol and ruby-digest on Ruby 2.7. * Remove a duplicate entry from PLIST. Bump PKGREVISION.
net/ruby-net-imap: add package versio 0.2.3 It is required for forthcoming redmine50 package on Ruby 2.7 or 3.0. Ruby client api for Internet Message Access Protocol.