mdomke / concourse-email-resource

A simple email resource for concourse CI
MIT License
3 stars 13 forks source link

Out action completes with non-empty mail queue #5

Open hryamzik opened 7 years ago

hryamzik commented 7 years ago

I've faced issues with unsent emails. Messages stay in a queue but I would expect a send task to stay active until queue is empty.

mdomke commented 7 years ago

The code currently uses a very lame heuristic for controlling the postfix MTA https://github.com/mdomke/concourse-email-resource/blob/master/opt/resource/out#L40-L44. To be honest I'm not a postfix expert and don't now if there is a deterministic way to find out if all mails in the queue have already been delivered.