feat: add expiry

This commit is contained in:
James Houlahan
2020-07-23 14:55:55 +02:00
parent 369c6ebf85
commit 5ad307868e
4 changed files with 48 additions and 6 deletions

View File

@ -105,7 +105,7 @@ func (sb *smtpBackend) shouldReportOutgoingNoEnc() bool {
}
func (sb *smtpBackend) ConfirmNoEncryption(messageID string, shouldSend bool) {
if err := sb.confirmer.SetResponse(messageID, shouldSend); err != nil {
if err := sb.confirmer.SetResult(messageID, shouldSend); err != nil {
logrus.WithError(err).Error("Failed to set confirmation value")
}
}