Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable logging of mail contents via CLI option #4

Merged
merged 1 commit into from
Mar 16, 2022
Merged

feat: enable logging of mail contents via CLI option #4

merged 1 commit into from
Mar 16, 2022

Conversation

LoneRifle
Copy link

  • Declare a new CLI option, --log-mail-contents; when specified,
    maildev will log the JSON representation of each incoming mail,
    equivalent to the payloads emitted for 'new' events
  • Implement the logging of mail contents by adding a listener for
    'new' events emitted by mailserver, and logging the events
  • Add relevant documentation in README

Port of opengovsg/maildev@c483402

- Declare a new CLI option, `--log-mail-contents`; when specified,
  maildev will log the JSON representation of each incoming mail,
  equivalent to the payloads emitted for 'new' events
- Implement the logging of mail contents by adding a listener for
  'new' events emitted by mailserver, and logging the events
- Add relevant documentation in README

Port of opengovsg/maildev@c483402
@soulteary soulteary merged commit 3a54c8d into soulteary:master Mar 16, 2022
@soulteary
Copy link
Owner

@LoneRifle thanks, i'll push a new docker image later.

And I'll tell you when I'm done.

@soulteary
Copy link
Owner

@LoneRifle I've push a new version: 1.1.1 and updated docker image latest

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.

None yet

2 participants