From 2feb1b0fb8c72ba33ef693bc2ec41ee203557ee9 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 30 Dec 2023 21:48:12 +0530 Subject: [PATCH] Make the name part in `from` e-mails optional. Closes #1602. --- cmd/campaigns.go | 2 +- frontend/src/views/settings/general.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/campaigns.go b/cmd/campaigns.go index 17fcaadd8..69337c488 100644 --- a/cmd/campaigns.go +++ b/cmd/campaigns.go @@ -47,7 +47,7 @@ type campaignContentReq struct { } var ( - regexFromAddress = regexp.MustCompile(`(.+?)\s<(.+?)@(.+?)>`) + regexFromAddress = regexp.MustCompile(`((.+?)\s)?<(.+?)@(.+?)>`) ) // handleGetCampaigns handles retrieval of campaigns. diff --git a/frontend/src/views/settings/general.vue b/frontend/src/views/settings/general.vue index 8b0a6d427..df8d78fd7 100644 --- a/frontend/src/views/settings/general.vue +++ b/frontend/src/views/settings/general.vue @@ -32,7 +32,7 @@ + placeholder="Listmonk " pattern="((.+?)\s)?<(.+?)@(.+?)>" :maxlength="300" />