Misc. fixes (#267)

* Misc. fixes

- Do not expose 'username' to a potential recipient.
- Make 'from' mandatory, because there is no fallback anymore.
- Validate 'from' to make shure, it contains an email address.
- Avoid namespace pollution: Use let instead of var.

* Suggested changes from codereview
This commit is contained in:
Fritz Elfert
2026-03-10 10:08:10 +01:00
committed by GitHub
parent e035119249
commit 41125078ce
3 changed files with 13 additions and 14 deletions

View File

@@ -25,7 +25,7 @@ inputs:
description: Recipients mail addresses (separated with comma)
required: false
from:
description: Full name of mail sender (might be with an email address specified in <>)
description: 'Either a plain email address, or full name of the sender, followed by whitespace, followed by email address enclosed in <>'
required: true
body:
description: Body of mail message (might be a filename prefixed with file:// to read from)