kefirfromperm / grails-asynchronous-mail

The Grails Asynchronous Mail plugin
http://grails.org/plugin/asynchronous-mail
21 stars 36 forks source link

Infinity sent of message without recipient #70

Closed demon101 closed 7 years ago

demon101 commented 7 years ago

For messages without recipient plugin will try to sent it on every attempt Because of atLeastOneRecipientValidator during saving with SENT status its gets error

asynchronous.mail.one.recipient.required

At result, it never change status in DB.

Please, validate message before sending in AsynchronousMailProcessService.processEmailMessage and save in DB with ERROR status if something goes wrong

demon101 commented 7 years ago

in dev we use overrideAddress="development-test@xxx.xx" settings

kefirfromperm commented 7 years ago

How is it possible to save a message without recipient into DB?

kefirfromperm commented 7 years ago

It is impossible to update a GORM entity if it is not valid. So it is impossible to change status.

demon101 commented 7 years ago

I got the bug on the test system. Nobody change data in db manualy

11 февр. 2017 г. 12:49 пользователь "Vitalii Samolovskikh" < notifications@github.com> написал:

It is impossible to update a GORM entity if it is not valid. So it is impossible to change status.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kefirfromperm/grails-asynchronous-mail/issues/70#issuecomment-279139075, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTL6E1bE2nxTNOMxRbIsrEJL5Cuc3ZQks5rbaBWgaJpZM4L5iNT .

kefirfromperm commented 7 years ago

2.0.0.RC7