Original Submission The use of the mail gateway may cause an infinite mail sending.
Steps to reproduce:
1- Activate the mail gateway functionality in the Tracker site administration interface (with insecure option. The token based option has not been tested but should also have the issue.)
2- Activate the option on a tracker
3- Create an artifact (A1) affected to the user U1 on this tracker
4- Set an auto-reply message on the email account of the user U1
5- Update the artifact A1
When saving the changes on A1, Tuleap notify U1 that the artifact changed. Its email account send the automatic response to the Tuleap email gateway that add the content of the mail on the artifact follow-up and notify U1 that the artifact changed and so on.
The email gateway should detect the auto-reply emails and ignore them (they are irrelevant mails).
I'm not sure on the best solution to detect auto-reply: it seems that several headers are used.