Skip to content

Dev1#11

Merged
canaria-computer merged 41 commits into
mainfrom
dev1
Jan 11, 2026
Merged

Dev1#11
canaria-computer merged 41 commits into
mainfrom
dev1

Conversation

@canaria-computer
Copy link
Copy Markdown
Owner

No description provided.

- Add IgnoreTLSErrors option for insecure TLS connections
- Add AllowUnsafeHTML option for unsafe HTML embedding in Markdown
- Support configuration via config.yaml, environment variables, and CLI flags
- Include validation for security-sensitive options
- Document security implications in defaults and comments
- Document ignore_tls_errors option with security warnings
- Document allow_unsafe_html option with security implications
- Add environment variable examples for security options
- Include usage guidelines for development vs production
…safe HTML

- Add --ignore-tls-errors flag to disable TLS certificate verification
- Add --allow-unsafe-html flag to permit unsafe HTML embedding in emails
- Integrate with appconfig security settings (config file, env vars, CLI flags)
- Add comprehensive help text with security warnings
- Display security configuration on startup
- Support configuration precedence: CLI flag > env var > config file > default

These options are intended for development/testing with self-signed certificates
and trusted HTML sources only. Production use should keep defaults.
- BuildEmailMessage: creates email.Message from evidence report
- Reads Report.md and converts to HTML via goldmark (GFM + CJK)
- Supports both HTML and plain-text content
- Generates Message-ID in format: <username#reportid%random@domain>
- Attaches first matching screenshot based on evidence.yaml user_agents
- Reads From/Reply-To from appconfig
- Leaves To/CC/BCC empty for later specification
- Validates configuration and report data
- Uses github.com/xhit/go-simple-mail/v2 for email transport
- Logs warnings when expected files/screenshots are missing
…al/email

- Update runEmailDraft to use BuildEmailMessage for message generation
- Support HTML and plain-text formats based on configuration
- Implement preview display with message details
- Prepare for IMAP upload and .eml export (placeholders)
- Log security configuration status
- Display generated email details including recipients, subject, attachments
- Handle includeHTML parameter from --plain-text-only flag
- Changed from email.Email to *smtp.Email for correct type
- Fixed type safety for return value
- Corrected package reference
- Changed email.Email to *simplemail.Email
- Updated displayEmailPreview function signature
- Fixed method calls for retrieving email properties
- Added simplemail import
…luding markdown to HTML conversion and screenshot attachments.
…ts, supporting HTML/plain-text content and attachments, and add new gitignore entries.
- Integrate go-imap/v2 library
- Support SSL/STARTTLS/None connection modes
- Auto-detect \Drafts mailbox using RFC 6154 SPECIAL-USE
- Add --imap-timeout flag with 30s default
- Change default behavior to export .eml + upload to IMAP
- Add comprehensive documentation
- Add DebugWriter utility for log-level controlled output
- Enable IMAP protocol logging in debug mode
- Support --verbose alias for --debug
…addresses

- Implemented placeholder context for email address expansion based on report ID.
- Enhanced email configuration to support placeholders in From and Reply-To fields.
- Added validation for email addresses to ensure proper formatting after placeholder expansion.
- Updated documentation to reflect changes in email configuration and usage of placeholders.
- Updated consent settings in app-behavior-config.md for clarity.
- Added dependency on btcsuite/btcutil in go.mod.
- Enhanced report content structure to include report directory.
- Modified report generation to use report directory instead of report ID.
- Simplified email address placeholder context to only include report ID.
- Updated tests to reflect changes in report directory handling and placeholder expansion.
- Removed unused timestamp, date, and time fields from placeholder context and tests.
@canaria-computer canaria-computer merged commit ff9454d into main Jan 11, 2026
2 checks passed
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