fix: ignore recipient if no target is set (aider fix)
This commit is contained in:
parent
4ace8af18b
commit
787b0f99fc
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@ type Backend struct {
|
|||
}
|
||||
|
||||
func (bkd *Backend) sendNotification(recipient ConfigRecipient, email ReceivedEmail) error {
|
||||
if recipient.Target == "" {
|
||||
slog.Warn("no target provided for recipient", slog.String("recipient", strings.Join(recipient.Addresses, ",")))
|
||||
return nil
|
||||
}
|
||||
|
||||
urlParams := url.Values{
|
||||
"title": {email.Msg.Header.Get("Subject")},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue