I am working on a mail client using IMAP and I am looking for the command for receiving the attachments of a message.
I believe what you are looking for is the IMAP v4 FETCH command.