Skip to content

sendmail.groovy and sendmail-html.groovy try to mail even if no recipient #497

Description

@gitblit

Originally reported on Google Code with ID 201

Currently sendmail.groovy and sendmail-html.groovy try to mail even if no mailinglist
has been set for the repo and no mail.mailinglist has been defined in gitlib.properties.

Perhaps the groovy scripts could check that 'toAddresses' is not empty before composing
the message and sending it. This would save processing time and also avoid the errors
[1] that now appear in the log for such repos.

[1] "ERROR Failed to send message
javax.mail.SendFailedException: No recipient addresses"

Reported by martijnlaan on 2013-02-08 12:19:36

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions