IMAPX: Don't recheck flags before moving to real Junk/Trash.
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 19 Dec 2012 16:14:51 +0000 (11:14 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 19 Dec 2012 16:35:04 +0000 (11:35 -0500)
commit395ea6359ca7a6f9026df29ffa56155372c4a106
tree659b484512a647324773df67572fcd74adc401f5
parent3005684a8e3ccfd11dcd053ce4e711a565785e38
IMAPX: Don't recheck flags before moving to real Junk/Trash.

Out of paranoia, I made imapx_folder_claim_move_to_real_trash_uids()
recheck that the queued message UIDs still had a DELETED flag before
moving them to a real Trash folder.  That turned out to be breaking
things because we _remove_ the DELETED flag when synchronizing, so
it's not going to still be set when we're ready to move messages.

Remove the uncertainty and rename public functions to reflect this:

  - camel_imapx_folder_maybe_move_to_real_junk()
  + camel_imapx_folder_add_move_to_real_junk()

  - camel_imapx_folder_maybe_move_to_real_trash()
  + camel_imapx_folder_add_move_to_real_trash()
camel/camel-imapx-folder.c
camel/camel-imapx-folder.h
camel/camel-imapx-server.c
docs/reference/camel/camel-sections.txt