Close dublicate 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 dublicated emails automatically so it's pretty straightforward to handle these dublicates 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 "EmailHasDublicate" to "true".

You can easily handle these dublicates in the "on receive" script of your todo4teams mailbox with the following code:

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

Why doesn't todo4teams handle these dublicate 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. 

     

Child Pages