mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-12-30 00:38:10 +00:00
**Summary** Fix type errors and generally prepare `partition_msg()` and its tests for refactoring to use `python-oxmsg` library instead of the problematic `msg_parser` library for partitioning Outlook MSG files.
17 lines
356 B
Python
17 lines
356 B
Python
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
class MsOxMessage:
|
|
attachments: list[Attachment]
|
|
body: str | None
|
|
header_dict: dict[str, Any]
|
|
|
|
def __init__(self, msg_file_path: str) -> None: ...
|
|
|
|
class Attachment:
|
|
AttachExtension: str | None
|
|
AttachLongFilename: str | None
|
|
AttachmentSize: int | None
|
|
data: bytes
|