jschreuder / SpotDesk

Open source e-mail based Helpdesk software.
MIT License
1 stars 0 forks source link

Add prevention of double import of e-mails #32

Open jschreuder opened 7 years ago

jschreuder commented 7 years ago

Currently a race condition is possible where the cron job fetching mails is still working while a new call to it fires off. This might mean there are 2 instances running simultaniously that cause a ticket being imported twice.

Possible solution would be to store the e-mail's ID with the ticket. Or check for the /seen flag through IMAP before adding it.

jschreuder commented 7 years ago

With the duplicate check this shouldn't happen, only does unnecessary work. As such solved well enough for v1.0.