This might help too:
http://kb.mozillazine.org/Deleting_messages_in_IMAP_accountsThunderbird, with the default settings, does not completely remove messages from the original folder when you move them.
You may want to set mail.imap.expunge_after_delete to true in Thunderbird.