If you moved the messages between folders on your imap server, it was your imap server that "lost" the attachments. Moving messages between folders on an imap server is done by a single command sent to the server, and the server handles moving the messages in their entirety.
Why I Stopped Using Mozilla Thunderbird