From f88511dad2c0c4b22828e33fa946c98f9622286ed9f3ee01e5b4bde09444ff9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 6 Feb 2025 18:11:47 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main rubygem-mail revision 3a1d0e336b9a777f5df434a6dae85768 --- .gitattributes | 23 ++++ gem2rpm.yml | 70 +++++++++++ mail-2.8.1.gem | 3 + rubygem-mail.changes | 274 +++++++++++++++++++++++++++++++++++++++++++ rubygem-mail.spec | 55 +++++++++ 5 files changed, 425 insertions(+) create mode 100644 .gitattributes create mode 100644 gem2rpm.yml create mode 100644 mail-2.8.1.gem create mode 100644 rubygem-mail.changes create mode 100644 rubygem-mail.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gem2rpm.yml b/gem2rpm.yml new file mode 100644 index 0000000..01b0245 --- /dev/null +++ b/gem2rpm.yml @@ -0,0 +1,70 @@ +# --- +# ## used by gem2rpm +# :summary: this is a custom summary +# ## used by gem2rpm +# :description: |- +# this is a custom description +# +# it can be multiline +# ## used by gem2rpm +# :license: MIT or Ruby +# ## used by gem2rpm and gem_packages +# :version_suffix: -x_y +# ## used by gem2rpm and gem_packages +# :disable_docs: true +# ## used by gem2rpm +# :disable_automatic_rdoc_dep: true +# ## used by gem2rpm +# :preamble: |- +# BuildRequires: foobar +# Requires: foobar +# ## used by gem2rpm +# :patches: +# foo.patch: -p1 +# bar.patch: +# ## used by gem2rpm +:sources: +# - foo.desktop +# - bar.desktop +# :gem_install_args: '....' +# ## used by gem2rpm +# :pre_install: |- +# %if 0%{?use_system_libev} +# export USE_VENDORED_LIBEV="no" +# %endif +# ## used by gem2rpm +# :post_install: |- +# # delete custom files here or do other fancy stuff +# install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse +# ## used by gem2rpm +# :testsuite_command: |- +# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test) +# ## used by gem2rpm +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem2rpm +# :scripts: +# :post: |- +# /bin/echo foo +# ## used by gem_packages +# :main: +# :preamble: |- +# Requires: util-linux +# Recommends: pwgen +# :filelist: |- +# /usr/bin/gem2rpm-opensuse +# ## used by gem_packages +# :custom: +# apache: +# :preamble: |- +# Requires: ..... +# :filelist: |- +# /etc/apache2/conf.d/passenger.conf +# :summary: Custom summary is optional +# :description: |- +# Custom description is optional +# +# bar +# :post: |- +# /bin/echo foo +# diff --git a/mail-2.8.1.gem b/mail-2.8.1.gem new file mode 100644 index 0000000..8ed9dff --- /dev/null +++ b/mail-2.8.1.gem @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec3b9fadcf2b3755c78785cb17bc9a0ca9ee9857108a64b6f5cfc9c0b5bfc9ad +size 396800 diff --git a/rubygem-mail.changes b/rubygem-mail.changes new file mode 100644 index 0000000..46a32ff --- /dev/null +++ b/rubygem-mail.changes @@ -0,0 +1,274 @@ +------------------------------------------------------------------- +Tue Nov 14 15:13:46 UTC 2023 - Dan Čermák + +- New upstream release 2.8.1, no changelog found + +------------------------------------------------------------------- +Wed Dec 7 11:24:51 UTC 2022 - Stephan Kulow + +updated to version 2.8.0 + no changelog found + +------------------------------------------------------------------- +Mon Oct 29 06:30:58 UTC 2018 - mschnitzer@suse.com + +- updated to version 2.7.1 + + Compatibility: + * Restore LF=>CRLF conversions for properly encoded non-binary emails. (rubys) + * Gracefully parse certain invalid Content-Type headers. (rafbm) + * Support `x-uue` transfer encoding as uuencoding. (jkraemer) + + Features: + * Expose Mail::Field#unparsed_value to read the raw field value, before parsing. (Tensho) + + Performance: + * Speed up message encoding, especially with large attachments. (dalibor) + + Bugs: + * Fix transfer encoding when message encoding is blank. (jakubonty, saks) + * Fix 7bit/base64 content transfer encoding mismatch. (ahorek) + * Fix UTF-8 attachment filename quoting. (ahorek) + * Fix `delete_all` using a readonly IMAP connection. (kimromi) + +------------------------------------------------------------------- +Sun Dec 3 19:24:41 UTC 2017 - coolo@suse.com + +- updated to version 2.7.0 + CHANGELOG.rdoc removed upstream + +------------------------------------------------------------------- +Tue Jun 13 20:50:12 UTC 2017 - coolo@suse.com + +- updated to version 2.6.6 + see installed CHANGELOG.rdoc + + == Version 2.6.6 - 2017-06-09 Jeremy Daer + + Security: + * #1097 – SMTP security: prevent command injection via To/From addresses. (jeremy) + + Bugs: + * #689 - Fix Exim delivery method broken by #477 in 2.5.4. (jethrogb) + +------------------------------------------------------------------- +Tue May 23 10:02:59 UTC 2017 - coolo@suse.com + +- updated to version 2.6.5 + see installed CHANGELOG.rdoc + +------------------------------------------------------------------- +Wed Apr 6 06:25:06 UTC 2016 - coolo@suse.com + +- updated to version 2.6.4 + see installed CHANGELOG.rdoc + + == Version 2.6.4 - Wed Mar 23 08:16 -0700 2016 Jeremy Daer + + Features: + * #772 - Normalize encoding matchers (grosser) + * #775 - Avoid failed encodings / stop bad charsets early (grosser) + * #782 – Make the gem compatible with Rubinius (robin850) + * #865 - Allow a body with an invalid encoding to be round tripped (kjg) + * #866 - Support decoding message bodies with non-Ruby-standard charsets (jeremy) + * #868 - Use the Ruby19.charset_encoder when decoding message bodies (kjg) + * #872 - Low-level option to include BCC field in the encoded message (grossadamm) + * #901 - Allow mail.text_part = '…' and mail.html_part = '

' (taavo) + * #924 - Matcher for having attachments (schepedw) + + Performance: + * #956 - Use native String#encode for CR/LF conversion (carsonreinke) + * #970 - Support Ruby 2.3+ frozen string literals (twalpole) + + Bugs: + * #719 - Fix to not extract header content that looks like its field name (kjg) + * #789 - Fix encoding collapsing not dealing with multiple encodings in 1 line (grosser) + * #808 - Mail::Field correctly responds_to? the methods of its instantiated field (thegcat) + * #849 - Handle calling Part#inline? when the Content-Disposition field couldn't be parsed (kjg) + * #874 – Stay under 1000-char SMTP line length limits (pushrax) + * #877 - Make Mail::Field == other take the field value into account (kjg) + * #907 - Mail::ContentDispositionField should work with nil value (kjg) + * #910 - Mail::Address should handle b_value_encoded local and domain parts (kjg) + * #918 - Account for possibility of absent delivery-status headers (kjg) + +------------------------------------------------------------------- +Sun Feb 8 21:24:23 UTC 2015 - coolo@suse.com + +- updated to version 2.6.3 + * #796 support uu encoding (grosser) + Performance: + * #681 - fewer hotspot object allocations (srawlins) + * #815 - autoload parsers for load-time speed and memory usage (grosser) + +------------------------------------------------------------------- +Sun Oct 12 16:13:34 UTC 2014 - coolo@suse.com + +- updated to version 2.6.1 + Features: + * Silence warnings on loading ragel-generated parsers (bf4) + * Allow interceptors and observers to be unregistered (zuhao) + * Added feature to find the mail in uid (taketin) + + Performance: + * Migrate to RAGEL based parser, awesome work by (bpot) + * Performance improvements for people parsing email headers (ConradIrwin) + +------------------------------------------------------------------- +Sun Oct 12 11:31:29 UTC 2014 - adrian@suse.de + +- adapt to new rubygem packaging style + +------------------------------------------------------------------- +Wed May 15 04:02:20 UTC 2013 - coolo@suse.com + +- updated to version 2.5.4 + Features: + * Save settings passed to TestMailer#new (svanderbleek) + * Allow the setting of envelope from directly (jeremy) + * Accept other IETF/IANA-registered Content-Types and Content-Transfer-Encodings (jeremy) + * Alias shift-jis charset to Shift_JIS Ruby encoding (jeremy) + * Add support for ks_c_5601-1987 charset, aliased to CP949 Ruby encoding (jeremy) + * Don't allow colons in header names (jeremy) + * Can assign arrays of Message-IDs to References and In-Reply-To (jeremy) + * Setting the html_ or text_part sets a default text/html or text/plain content type (jeremy) + * Setting the html_ or text_part to nil removes it (jeremy) + * Addresses without a parsable email or display name still format as their raw text (jeremy) + * Close pull request 504 - Alias GB2312 charset to GB18030 Ruby encoding (bpot) + * Close pull request 399 - Accept :ca_path and :ca_file options for SMTP delivery (ndbroadbent) + * Close pull request 389 - Don't add superfluous message headers to MIME parts (djmaze, jeremy) + + Performance: + * Close pull request 488 - Speed up field construction & comparison (bpot) + + Bugs: + * Don't include separating semicolon in paramter value when sanitizing (bpot) + * Fix fencepost encoding problem with binhex strings and only one token (drasch) + * Fix sendmail delivery to addresses with a leading hyphen (lifo, jeremy) + * Correctly format mbox From headers per RFC4155 (bpot, jeremy) + * Fix bogus '=' at the end of some quoted-printable messages (jeremy) + * Shouldn't be fooled into encoding strings on 1.8 by unrelated Encoding constant (emiellohr, jeremy) + * Header encoding should be US-ASCII, not the default external encoding (jeremy) + * Address elements should return decoded display names by default (jeremy) + * Fix up tests that depend on utf-8 external encoding; read fixtures as binary (jeremy) + * Capture stderr from Sendmail and Exim deliveries (jeremy) + * RFC2822 quoted_string content may be empty (jeremy) + * Calling #to_s on a field with a nil value returns an empty string instead of nil (jeremy) + * The Received header may contain zero name/value pairs, qmail-style (jeremy) + * Fix that setting an attachment with a :mime_type and :encoding would override the :encoding (jeremy) + * Fix that declaring an html_part but no text_part would use multipart/alternative anyway (jeremy) + * Close pull request 508 - Don't add an extra CRLF to MIME parts; split MIME parts on correct CRLF boundaries (Aalanar) + * Close pull request 506 - Escape backslashes in quoted strings (ConradIrwin) + * Close pull request 496 - Correctly handle quoted-printable line breaks (jeremy) + * Close pull request 493 - Repair misencoded quoted-printable line breaks (jeremy) + * Close pull request 487 - Extract comments from group email addresses (bpot) + * Close pull request 481 - Correctly quote filename attributes (bpot) + * Close pull request 480 - Support mixed encodings in a single header body (adamvaughan) + * Close pull request 471 - Fix Ruby 1.8 build when UTF16/32 default to little-endian (kennyj) + + Coping with third-party bugs: + * Parse multipart boundary from Content-Type headers containing extra semicolons (jeremy) + * Close pull request 389 - Only add Content-ID to inline attachments to appease Outlook (djmaze, jeremy) + + Housekeeping: + * Add development gem dependency on rdoc (jeremy) + +------------------------------------------------------------------- +Fri Dec 7 09:05:39 UTC 2012 - coolo@suse.com + +- updated to version 2.5.3 + * Close pull request 468 - Remove debug output to STDOUT (tadman) + * Fix up spec warnings + * Remove un needed require + * Ensure spec_helper constants only defined once + * Use stub against time instead of DateTime to avoid double redefinition error + +------------------------------------------------------------------- +Mon Nov 26 17:42:39 UTC 2012 - coolo@suse.com + +- updated to version 2.5.2 + * Removing double loading of treetop parsers to remove warnings + * Making parsers auto compile on spec suite and load in production code to avoid error that caused yank of 2.5.0 + * Reapply pull request 443 - CC fields with semicolon are now parsed right (paulwittmann) + + Features: + * Close pull request 406 - Add Mail#eager_autoload! to load all autoloaded files on demand (bpot) + * Close pull request 461 - Allow string as delivery_method (skyeagle, radar) + * Close pull request 407 - Do not require Net::IMAP or Net::POP if they're already loaded (bpot) + * Close pull request 400 - Raise exception if delivery values or from values are missing completely from an email that is getting delivered (dmathieu) + * Close pull request 397 - Support dots in local part of the addresses (eac) + * Close pull request 477 - Fixed handling content_type with superfluous spaces (ledermann) + * Close pull request 451 - Ignore nil in addresses so things do not blow up when e.g. a user had no email (grosser) + * Close pull request 362 - Enable TLS in Ruby 1.8 (kingargyle) + * Close pull request 358 - Fix Mail::CommonAddress#value=, Mail::CommonAddress#<< and Mail::Encodings.encode_non_usascii (mrkn) + * Close pull request 350 - Makes mail Header object ennumerable (ged) + + Performance: + * Close pull request 369 - Mail::Header#charset is called pretty often during header parser work (bogdan) + * Close pull request 368 - Improve existing code by moving some objects to contstant instead of constructing them over and over again. (bogdan) + * Close pull request 366 - Headers parsing performance optimization (bogdan) + * Close pull request 365 - Add maximum_amount of parsed headers configuration parameter (bogdan) + + Bugs: + * Close pull request 444 - Fix typo in spec (cczona) + * Close pull request 439 - Fix Ruby 1.9 behaviour to match 1.8.7 behaviour on ignoring invalid or undefined characters (ochko) + * Close pull request 430 - Unstructured field converts to string before calling encoding on it (brupm mikel) + * Close pull request 424 - Use String#to_crlf instead of String#gsub (okkez) + * Close pull request 429 - Fix an obvious bug in exim delivery_method (dskim) + * Close pull request 425 - Remove Gemfile.lock from generated gem (kbackowski) + * Close pull request 414 - Fix typo on "ignoring" (derwiki) + * Close pull request 405 - Fix stack overflow (RegexpError) triggered by large emails with an envelope (bpot) + * Close pull request 402 - Prevent InReplyTo, Keyword, References or ResentMessageId fields from generating lines longer than 998 chars (pplr) + * Close pull request 391 - Fixed failed attachment parsing when file name in headers contains spaces and is not wrapped in quotes (danieltreacy) + * Close pull request 385 - Fix Multibyte::Chars#upcase/downcase (technoweenie) + * Close pull request 384 - copy dat unicode over from active support (technoweenie) + * Close pull request 380 - Split strictly on MIME boundary lines (ConradIrwin) + * Close pull request 277 - Fix specific email decoding failure example (yalab) + * Close pull request 361 - Support 8bit encoding for ruby 1.9 (bogdan) + * Close pull request 346 - Fix two bugs of TestRetriever (ermaker) + * Close pull request 337 - Make the behavior of value_decode the same between Ruby 1.8 and Ruby 1.9. (kennyj) + * Close pull request 336 - Fix more warning: possibly useless use of == in void context (kennyj) + * Close pull request 293 - make charset and mime type more resliant to bad header values (kmeehl) + * Fix failing spec Issue 453 on Ruby 1.9.3 + * Fix mail reading: don't raise invalid byte sequence in UTF-8 when reading non-UTF-8 emails (mreinsch) + * Close pull request 353 - define NilClass#blank? only if not defined yet (amatsuda) + * Close pull request 357 - Fixes #349 an inverted condition on imap open read_only (felixroeser) + * Remove duplicated line feed from regexp + * Remove unused variable + * Updated IMAP documentation + * Tweak publisher + +------------------------------------------------------------------- +Sat Aug 4 11:30:16 UTC 2012 - coolo@suse.com + +- rename useless suffix + +------------------------------------------------------------------- +Sat Aug 4 11:27:39 UTC 2012 - coolo@suse.com + +- updated to version 2.4.4 + +------------------------------------------------------------------- +Mon Apr 23 08:57:30 UTC 2012 - saschpe@suse.de + +- Also require rubygem-i18n-0_6 instead of rubygem-i18n + +------------------------------------------------------------------- +Tue Apr 3 07:59:12 UTC 2012 - coolo@suse.com + +- update to 2.4.4 + * Fix security vulnerability allowing command line exploit when using file delivery method + * Fix security vulnerability allowing command line exploit when using exim or sendmail from the command line + * Change Mail#deliver! to also inform the interceptors + * Encodings.value_decode(str): Treat lines with mixed encoding correctly when the line ends with a plain text part. + +------------------------------------------------------------------- +Fri Mar 23 11:06:14 UTC 2012 - saschpe@suse.de + +- Spec file cleanup: + * Factory preparation + +------------------------------------------------------------------- +Thu Jan 26 16:04:36 UTC 2012 - mrueckert@suse.de + +- initial package 2.4 branch + diff --git a/rubygem-mail.spec b/rubygem-mail.spec new file mode 100644 index 0000000..e6499c7 --- /dev/null +++ b/rubygem-mail.spec @@ -0,0 +1,55 @@ +# +# spec file for package rubygem-mail +# +# Copyright (c) 2023 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + +Name: rubygem-mail +Version: 2.8.1 +Release: 0 +%define mod_name mail +%define mod_full_name %{mod_name}-%{version} +BuildRequires: %{ruby >= 2.5} +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{rubygem rdoc > 3.10} +BuildRequires: ruby-macros >= 5 +URL: https://github.com/mikel/mail +Source: https://rubygems.org/gems/%{mod_full_name}.gem +Source1: gem2rpm.yml +Summary: Mail provides a nice Ruby DSL for making, sending and reading emails +License: MIT + +%description +A really Ruby Mail handler. + +%prep + +%build + +%install +%gem_install \ + --doc-files="MIT-LICENSE README.md" \ + -f + +%gem_packages + +%changelog