Repository navigation
Release v0.2.1 - Nested PostaCert Detection & Security Improvements
🎉 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, andnested_postacert_attachmentsmethods - 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.examplefor secure configuration - Enhanced
.gitignoreto prevent accidental credential commits - Added security documentation in README
📦 Installation
gem install pec_ruby