Bug 269199 - textproc/py-extract-msg: Update to 0.39.0
Summary: textproc/py-extract-msg: Update to 0.39.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Robert Clausecker
URL: https://github.com/TeamMsgExtractor/m...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-28 08:32 UTC by Jesús Daniel Colmenares Oviedo
Modified: 2023-02-19 11:16 UTC (History)
1 user (show)

See Also:


Attachments
py-extract-msg-0.39.0.patch (4.55 KB, patch)
2023-01-28 08:32 UTC, Jesús Daniel Colmenares Oviedo
DtxdF: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Daniel Colmenares Oviedo 2023-01-28 08:32:00 UTC
Created attachment 239760 [details]
py-extract-msg-0.39.0.patch

Description:

ChangeLog:
https://github.com/TeamMsgExtractor/msg-extractor/blob/v0.39.0/CHANGELOG.md

* Added code to handle a standards violation (from what I can tell, anyways)
  caused by the attachment not having an AttachMethod property. The code will
  log a warning, attempt to detect the method, and throw a
  StandardViolationError if it fails.
* Changed the way string named properties are handled to allow for the string
  stream to have some errors and still be parsed. Warnings about these errors
  will be logged.
* Fixed an issues with contact saving when a list property returns None.
* Fixed a bug that could cause some files to error when exporting.
* Fixed an issue where creation and modification times were not being copied
  to the new OLE file created by OleWriter.
* Fixed up a few docstrings.
* Fixed a few issues in MSGFile regarding the filename keyword argument.
* Added new argument rootPath to OleWriter.fromOleFile for saving a specific
  directory from an OLE file instead of just copying the entire file. That
  directory will become the root of the new one.
* Adjusted code for OleWriter to generate certain values only at save time to
  make them more dynamic. This allows for existing streams to be properly
  edited (although has issues with allowing storages to be edited).
* Added new function OleWriter.deleteEntry to remove an entry that was already
  added. If the entry is a storage, all children will be removed too.
* Added new function OleWriter.editEntry to edit an entry that was already added.
* Added new function OleWriter.addEntry to add a new entry to the writer without
  an OleFileIO instance. Properties of the entry are instead set using the same
  keyword arguments as described in OleWriter.editEntry.
* Changed _DirectoryEntry to DirectoryEntry to make the more finalized version public.
  Access to the originals that the OleWriter class creates should never happen,
  instead copies should be returned to ensure the behavior is as expected.
* Added new function OleWriter.getEntry which returns a copy of the DirectoryEntry
  instance for that stream or storage in the writer. Use this function to see the
  current internal state of an entry.
* Added new function OleWriter.renameEntry which allows the user to rename a stream or
  storage (in place). This only changes it's direct name and not it's location in the
  new OLE file.
* Added new function OleWriter.walk which is similar to os.walk but for walking the
  structure of the new OLE file.
* Added new function OleWriter.listItems which is functionally equivalent to
olefile.OleFileIO.listdir which returns a list of paths to every item.
  Optionally a user can get the paths just for streams, just for
  storages, or both. Requesting neither will simply return an
  empty list.
* Default is to just return streams.
* Added a small amount of path validation to inputToMsgPath which is used in a
  lot of places where user input for a path is accepted. It ensures illegal
  characters don't exist and that the path segments (each name for a
  storage or stream) are less than 32 characters. This will be most
  helpful for OleWriter.
* Added many internal helper functions to OleWriter to make extensions easier and
  consolidate common code. Many of these involve direct access to internal data
  which is why they are private.

QA:
* portlint:
  - WARN: Makefile: using hyphen in PORTNAME. consider using PKGNAMEPREFIX and/or PKGNAMESUFFIX.
* testport: OK (poudriere: 13.1-RELEASE, amd64)
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-02-14 17:52:30 UTC
take
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-02-19 11:03:20 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f82410463b7b82080a72f12531d2b6a3ae7eab2

commit 8f82410463b7b82080a72f12531d2b6a3ae7eab2
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-01-28 08:11:10 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-02-19 11:01:40 +0000

    textproc/py-extract-msg: Update to 0.39.0

    ChangeLog:
    https://github.com/TeamMsgExtractor/msg-extractor/blob/v0.39.0/CHANGELOG.md

    PR:             269199
    Approved by:    flo (mentor)
    Differential Revision: https://reviews.freebsd.org/D38631

 textproc/py-extract-msg/Makefile | 2 +-
 textproc/py-extract-msg/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2023-02-19 11:16:03 UTC
Thank you for your submission.