Hi everyone! I've got a PHP script that uses imap_append to copy a message from one server to another. After the append command creates the message on the destination server, I want to set the Unseen flag as appropriate (the script is to archive messages from my server onto a diff server).
If the original message is Unseen, I want it to be Unseen on the destination. If the original message is NOT Unseen, I want it to NOT be Unseen on the destination.
I know how to use imap_setflag_full to set the flag--but it needs a message number. How can I get the message number of the message I just created?
TIA!