From nobody Mon Aug 14 00:26:49 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RPFZf3zSMz4qRM7 for ; Mon, 14 Aug 2023 00:26:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RPFZf04tBz4fjp for ; Mon, 14 Aug 2023 00:26:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691972810; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NAVk8i/1KI6ngAWDuXlkriJRG113RG8/y9AhleqXOrg=; b=Y09qReNqW56eW35w49WfONupEPH0rtaPg4Z5sil/KpCCPUm1RBJ6m6QGIsGc+q7iRfkzMs +LHKjM2wfT1Vum/6YWPGJk+jLukTgiR1UwELRFiAn6UE4hn4aDR+C4/SeCNo7SueXaWsK5 xSnUVTSKZ42viC8AECX4l9t31REDDwhFkUZLQwU2EZtKg5yz7NM8rsSnTFRWIWK5ibXAGX d8jmTURIFhlA3nGSahYw/rdErXzMKKuM+YEtyylIwFSlUGbB1MxwZRWYaJ/X+he7+1iD2O b2hpa9MOGtG6tg3mZecSlOR8wJLacjq71Sw7gBO7oeD2m2AaXBNRLNDpICaGCw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691972810; a=rsa-sha256; cv=none; b=X6PkCme4O6Tbvy5b1DRXGcsf905G3nEfKa11smsnIVEsJwcS6BYLnRF2VZck3ijDXsE4kg Rrowu0LMSbMvWDR66F7wkcidSZRaZqj5mqaURWJC0bREP/l3isC8PJgSj5ar9icuVaNBB7 BCuHjK6VzVc+s4B6nkvC4wOizOGXHMvCHjpaZMjvw2Uv8TpZoIzNefeDUMdA6xCd7QAqjg fl+AuobN0PlAr4x0oZbCL6P70pgC80gU6SWa1VaeQ2B/tboJ67iTeB92a9CA45cc/nioBL n7/W+bTsZpA7utXskyy+6vDJ/K5sO39ny8cJg5HCpFRjyi9ab5X+mRqFHXKZXQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RPFZd5xDMz1LnZ for ; Mon, 14 Aug 2023 00:26:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 37E0QnfG012171 for ; Mon, 14 Aug 2023 00:26:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 37E0QnbD012170 for ports-bugs@FreeBSD.org; Mon, 14 Aug 2023 00:26:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 273123] textproc/py-extract-msg: Update to 0.45.0 Date: Mon, 14 Aug 2023 00:26:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: DtxdF@disroot.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273123 Bug ID: 273123 Summary: textproc/py-extract-msg: Update to 0.45.0 Product: Ports & Packages Version: Latest Hardware: Any URL: https://github.com/TeamMsgExtractor/msg-extractor/blob /v0.45.0/CHANGELOG.md OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: DtxdF@disroot.org Attachment #244077 maintainer-approval+ Flags: Created attachment 244077 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D244077&action= =3Dedit extract-msg-0.45.0.patch Description: ChangeLog: https://github.com/TeamMsgExtractor/msg-extractor/blob/v0.45.0/CHANGELOG.md * BREAKING: Changed parsing of string multiple properties to remove the trailing null byte. This *will* cause the output of parsing them to differ. * Updated typing information for some functions and classes. * Fixed a bug with `MessageSignedBase.attachments` that would cause it to return None instead of an empty list if the number of normal attachments was 0 w= as the error behavior was set to ignore violations of the standard. * Updated `MessageSignedBase.attachments` to use `functools.cached_property` instead of `property`. * Fixed spelling errors in some exception strings. * Made `NamedPropertyBase` a subclass of `abc.ABC`. * Cleaned up some of the code for named properties to remove unused variabl= es and remove inefficient code. * Changed `PropBase` to be a subclass of `abc.ABC`. * Added detailed versioning info to the README. * Deprecated many private functions, including methods on many of the class= es. Of primary note are `_getStream` and `_getStringStream`, which have been moved to the public API as `getStream` and `getStringStream`. Any deprecated functions still exist and will forward to a public API function if they are not being removed. Additionally, all internal usage of them h= as been removed. This change is one of the big preparations that is needed f= or the `1.0.0` release. * As mentioned, a number of these deprecated functions have been moved = to the public API. It is recommended that you run tests with your code after enabling deprecation warnings to see what should be changed. * Removed items deprecated in or before `0.42.0`. * Changed the API for the private method `_genRecipient`. This is not inten= ded for use outside of the module *except* for subclasses. The change removed the allowance of ints for the second argument, requiring that it be a valid enum type. * Convert many enum types to `IntEnum`. * Extended functionality of `PropertiesStore` to allow for integer property names and getting a property based on just the ID. You can also get a list of a= ll properties that use a given ID. * Added new function `PropertiesStore.getProperties` which gets a list of a= ll properties matching the property ID. Return type is a list of `PropBase` instances. * Added new function `PropertiesStore.getValue` which looks for the first matching `FixedLengthProp` and returns the value from it. * Improved internal code related to getting a property with a potentially unknown type. * Added a number of entirely new functions to the public API on `MSGFile`, `AttachmentBase`, `PropertiesStore`, and `Recipient` objects: * `getMultipleBinary`: Gets a multiple binary property as a list of `by= tes` objects. * `getSingleOrMultipleBinary`: A combination of `getStream` and `getMultipleBinary` which prefers a single binary stream. Returns a single `bytes` objec= t or a list of `bytes` objects. * `getMultipleString`: Gets a multiple string property as a list of `st= r` objects. * `getSingleOrMultipleString`: A combination of `getStringStream` and `getMultipleString` which prefers a single string stream. Returns a single bytes objecct or a list of bytes objects. * `getPropertyVal`: Shortcut for `instance.props.getValue` that allows = new behavior to be added by overriding it. * `getNamedProp`: Shortcut for `instance.namedProperties.get((propertyN= ame, guid), default)` that allows new behavior to be added by overriding it. * Removed `Named._getStringStream` and `Named.sExists`. The named properties storage will *always* use regular streams and not string streams. * Changed all `Named` methods to no longer have a prefix argument. The pref= ix should *always* be false sense the named property mapping will only exist in the= top level directory. * Adjusted `tryGetMimeType` to allows any attachments whose `data` property would return a `bytes` instance. * Changed internal code to use public API functions wherever possible. This includes making many private API functions use calls to the public API for getting bits of dat= a. * Fixed potential issue with `AttachmentBase.clsid` which had the potential= to cause some attachments to fail to generate a CLSID. * Outright removed or changed a significant portion of the private API. I h= ave rarely, if ever, seen references to these parts, so this should cause you no issues. Some = of these have also been moved to the public API, either identically or with changes, and the mapping is as such: * `_getNamedAs` -> `getNamedAs`: Changed to *always* require a conversi= on argument. If you were previously using it to plainly get a named property or to handle= the properly being None or a real value, you should use the return value of `getNamedPro= p` instead. * `_getPropertyAs` -> `getPropertyAs`: Same as above, use `getPropertyV= al` instead for None or plain access. * `_getStreamAs` -> `getStreamAs`, `getStringStreamAs`: Once again, see above. Use `getStream` and `getStringStream`, respectively. QA: * portlint: - WARN: Makefile: using hyphen in PORTNAME. consider using PKGNAMEPREFIX and/or PKGNAMESUFFIX. * testport: OK (poudriere: 13.2-RELEASE, amd64, WKHTMLTOPDF tested) Notes: * This update breaks textproc/py-textract when parsing a .msg file. If the following message is displayed, ``` The filename extension .msg is not yet supported by textract. Please suggest this filename extension here: https://github.com/deanmalmgren/textract/issues Available extensions include: .csv, .doc, .docx, .eml, .epub, .gif, .htm, .html, .jpeg, .jpg, .json, .log, .mp3, .msg, .odt, .ogg, .pdf, .png, .pptx, .ps, .psv, .rtf, .tab, .tff, .tif, .tiff, .tsv, .txt, .wav, .xls, .xlsx ``` it is a hidden exception: ``` Traceback (most recent call last): File "/usr/local/bin/textract", line 33, in main() File "/usr/local/bin/textract", line 25, in main output =3D process(**vars(args)) File "/usr/local/lib/python3.9/site-packages/textract/parsers/__init__.py= ", line 70, in process filetype_module =3D importlib.import_module( File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 850, in exec_module File "", line 228, in _call_with_frames_remo= ved File "/usr/local/lib/python3.9/site-packages/textract/parsers/msg_parser.= py", line 3, in import extract_msg File "/usr/local/lib/python3.9/site-packages/extract_msg/__init__.py", li= ne 65, in from .ole_writer import OleWriter File "/usr/local/lib/python3.9/site-packages/extract_msg/ole_writer.py", = line 19, in from red_black_dict_mod import RedBlackTree ModuleNotFoundError: No module named 'red_black_dict_mod' ``` --=20 You are receiving this mail because: You are the assignee for the bug.=