Skip to content

Release v0.2.1 - Nested PostaCert Detection & Security Improvements

Choose a tag to compare

@egio12 egio12 released this 13 Jul 18:30
· 2 commits to main since this release

🎉 What's New in v0.2.1

This release fixes a critical bug with forwarded postacert.eml detection and introduces significant performance and security improvements.

🐛 Fixed

  • Fixed forwarded postacert.eml detection: Now correctly detects and processes postacert.eml files that are forwarded as attachments in nested MESSAGE/RFC822 structures
  • Improved nested postacert part ID detection algorithm to handle complex IMAP message structures

✨ Added

  • Comprehensive test suite for nested postacert detection scenarios
  • Performance optimizations with memoization for attachment calculations
  • Enhanced error handling for malformed IMAP structures
  • Support for environment variable configuration (PEC_HOST, PEC_USERNAME, PEC_PASSWORD)
  • Security improvements to prevent credential leaks in test files

🔄 Changed

  • Code refactoring: Unified duplicate postacert detection methods into single parameterized method
  • Performance: Added memoization to original_attachments, nested_postacerts, and nested_postacert_attachments methods
  • Security: Test files now use environment variables instead of hardcoded credentials
  • Improved robustness of bodystructure parsing with defensive programming techniques

🔒 Security

  • Removed all hardcoded credentials from test files
  • Added .env.example for secure configuration
  • Enhanced .gitignore to prevent accidental credential commits
  • Added security documentation in README

📦 Installation

gem install pec_ruby

🔗 Links