Find out if it is possible to catch this IMAP bug.
$messages can be:
- a single message number (eg: '1')
- a message range (eg. '1:4')
- a message list (eg. '1,2,4')
Before calling this method, a connection to the IMAP server must be established and a user must be authenticated successfully, and a mailbox must be selected (the mailbox from which messages will be copied).Example of copying 3 messages to a mailbox:
The above code will copy the messages with numbers 1, 2 and 4 from Inbox to Reports 2006.