IMAPX: Avoid duplicating messages in real Junk or Trash.
authorMatthew Barnes <mbarnes@redhat.com>
Mon, 24 Dec 2012 12:37:42 +0000 (07:37 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 24 Dec 2012 12:46:17 +0000 (07:46 -0500)
commitf48d53cb5e366de2870911a2c238e833f3f0a120
tree43cf899cf5156e881ec914a0bffde2f9533caad4
parent0eb3de7b71e36041a4e208433385d34c37bd7c07
IMAPX: Avoid duplicating messages in real Junk or Trash.

This is more a problem with Junk, but fixing both to keep the logic
consistent.  When synchronizing a real Junk folder, we were copying
all messages marked as "junk" from Junk to Junk -- duplicating them
each time.  After running for a couple days I caught my Junk folder
with thousands of duplicate messages.
camel/camel-imapx-folder.c