Skip to content

Commit

Permalink
Make the name part in from e-mails optional. Closes #1602.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Dec 30, 2023
1 parent b2a5e37 commit 2feb1b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/campaigns.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type campaignContentReq struct {
}

var (
regexFromAddress = regexp.MustCompile(`(.+?)\s<(.+?)@(.+?)>`)
regexFromAddress = regexp.MustCompile(`((.+?)\s)?<(.+?)@(.+?)>`)
)

// handleGetCampaigns handles retrieval of campaigns.
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/settings/general.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<b-field :label="$t('settings.general.fromEmail')" label-position="on-border"
:message="$t('settings.general.fromEmailHelp')">
<b-input v-model="data['app.from_email']" name="app.from_email"
placeholder="Listmonk <[email protected]>" pattern="(.+?)\s<(.+?)@(.+?)>" :maxlength="300" />
placeholder="Listmonk <[email protected]>" pattern="((.+?)\s)?<(.+?)@(.+?)>" :maxlength="300" />
</b-field>
<b-field :label="$t('settings.general.adminNotifEmails')" label-position="on-border"
:message="$t('settings.general.adminNotifEmailsHelp')">
Expand Down

0 comments on commit 2feb1b0

Please sign in to comment.