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

In send_message/6, check for any invalid addresses, and when present, send bounce message #45

Open
Tracked by #23
pheller opened this issue Feb 9, 2023 · 0 comments

Comments

@pheller
Copy link
Member

pheller commented Feb 9, 2023

Once send_message has optional flags to set bounce, hide_sender, etc., then it should be refactored to check that all recipients are valid USER IDs (can leave nicknames / mailing lists until later, since there is no means yet to manipulate these entries).

If any recipient is invalid, the message should not be sent. Instead, a bounce message should be crafted, where the message:

  • has the original sender as the recipient
  • has a from name of "PRODIGY SERVICE"
  • has a subject of "Return to Sender"
  • has the original message body
  • has the bounce flag set
  • has the hide_sender flag set
  • has all original recipients as original_recipients
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

No branches or pull requests

1 participant