Close duplicate emails


When it comes to severe connection errors between todo4teams and your email server todo4teams might receive and process some messages multiple times, i.e. a single email message might produce two or more identical jobs.

todo4teams detects and marks duplicated emails automatically so it's pretty straightforward to handle these duplicates if desired.

When todo4teams receives emails with identical MessageIDs within 7 days it marks the second and all following jobss by setting a task property named "EmailHasDuplicate" to "true".

You can easily handle these duplicates in the "Receive Action" of your todo4teams mailbox with the following code:

var emailDuplicate = task.getProperty("EmailHasDublicate");
if(emailDuplicate!=null && emailDuplicate.equals("true")){
   task.startWorking();
   task.doneComment="Received as duplicate - closed automatically.";
   task.finishWorking(true);
   task.setToArchived();
} else {
// ... normal email processing
}

Why doesn't todo4teams handle these duplicate messages automatically?

Your email servers might be configured in order to copy messages automatically to different IMAP folders. So suppressing emails with identical MessageIDs might not be desired in any case