Re: [appengine-java] Re: Issue processing the Receive Mail Handle multiple times

2010-12-13 Thread Max
Hi, OK, that makes sense. How could I make a GAE mail handler idempotent? Is there any unique identifier associated with an inbound email that I can reference, or will I truly need to build the .equals logic to analyze the email elements (including attachments) to know if it is a duplicate?

Re: [appengine-java] Re: Issue processing the Receive Mail Handle multiple times

2010-12-13 Thread A. Stevko
The Message-Id: header is suppose to be unique for every email. On Mon, Dec 13, 2010 at 8:53 AM, Max 6738...@gmail.com wrote: Hi, OK, that makes sense. How could I make a GAE mail handler idempotent? Is there any unique identifier associated with an inbound email that I can reference, or

[appengine-java] Re: Issue processing the Receive Mail Handle multiple times

2010-12-12 Thread Didier Durand
Hi, Yes, your code gets (probably) executed more than once because it is scheduled as a task in a task queue defined in the architecture of GAE. As such your code as to be idempotent (the word you were looking for) because it can be executed multiple times: Google highly recommend to guarantee