From b1d2060edf6c3abd4532497c6b3a8334ce378a4e Mon Sep 17 00:00:00 2001 From: "Calvin W. Metcalf B.S." Date: Wed, 29 Jul 2026 14:21:24 -0400 Subject: [PATCH 1/3] fix validation issue --- normalize.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/normalize.js b/normalize.js index 3326bf9..4257dde 100644 --- a/normalize.js +++ b/normalize.js @@ -66,6 +66,10 @@ const parseAddressList = (input) => { // a single normalized object, so the mappers never have to re-handle shorthand. const normalizeEmail = (email) => { email = email || {}; + if (!email.from && email.from_email) { + email.from = email.from_email; + } + return { from: parseAddress(email.from), to: parseAddressList(email.to), From 51bdfa92827280f2b8eb8fdfd2fda6d6c97f371c Mon Sep 17 00:00:00 2001 From: "Calvin W. Metcalf B.S." Date: Wed, 29 Jul 2026 14:48:17 -0400 Subject: [PATCH 2/3] ability to not listen --- readme.md | 2 ++ server.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 39f9493..9a2ca57 100644 --- a/readme.md +++ b/readme.md @@ -47,6 +47,8 @@ app.get('/health', (_req, res) => { `port` is optional and defaults to `process.env.PORT`, then `3000`. +If you don't want it to automatically listen, pass false as a port. + ### As a CLI Point the `stillalive` command at a JSON config file: diff --git a/server.js b/server.js index f6b58cb..3fb0fbf 100644 --- a/server.js +++ b/server.js @@ -115,7 +115,9 @@ export default async function createServer(key, emailConfig, listenPort) { })); res.json({ active }); }); - + if (listenPort === false) { + return app; + } console.log(`app is listening on ${port}`); app.listen(port); From 0777ad6ca1ff8ed6cc26cb7f032917a5d651ee0b Mon Sep 17 00:00:00 2001 From: mgrinberg-sanborn <158095080+mgrinberg-sanborn@users.noreply.github.com> Date: Wed, 5 Aug 2026 10:38:09 -0400 Subject: [PATCH 3/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- normalize.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/normalize.js b/normalize.js index 4257dde..4c35c55 100644 --- a/normalize.js +++ b/normalize.js @@ -66,12 +66,10 @@ const parseAddressList = (input) => { // a single normalized object, so the mappers never have to re-handle shorthand. const normalizeEmail = (email) => { email = email || {}; - if (!email.from && email.from_email) { - email.from = email.from_email; - } + const from = email.from || (email.from_email ? { email: email.from_email, name: email.from_name } : undefined); return { - from: parseAddress(email.from), + from: parseAddress(from), to: parseAddressList(email.to), cc: parseAddressList(email.cc), bcc: parseAddressList(email.bcc),