Skip to content

Feat#1

Merged
spoj merged 4 commits intomainfrom
feat
Jun 30, 2025
Merged

Feat#1
spoj merged 4 commits intomainfrom
feat

Conversation

@spoj
Copy link
Copy Markdown
Owner

@spoj spoj commented Jun 30, 2025

This pull request introduces a new example CLI application for extracting attachments from .msg files, along with some supporting changes to the library. The most important changes include adding a CLI example using clap, modifying the Attachment struct to make its fields public, and improving the filtering logic for attachment paths.

New CLI Example:

  • Added an example CLI application in examples/extractor.rs that uses clap to parse arguments and demonstrates how to extract attachments and embedded messages from .msg files. This includes creating output directories, avoiding file overwrites, and recursively handling embedded messages.

Library Enhancements:

  • Made the name and data fields of the Attachment struct public in src/lib.rs to allow external access, which is necessary for the CLI example to function.
  • Improved the filtering logic for attachment paths in src/lib.rs by separating the map and filter operations, which simplifies the code and makes it more readable.

Dependency Updates:

  • Added clap as a development dependency in Cargo.toml to support the new CLI example.

@spoj spoj merged commit 4367bc5 into main Jun 30, 2025
1 check passed
@spoj spoj deleted the feat branch June 30, 2025 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant