doni49 Posted September 22, 2012 Share Posted September 22, 2012 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! Quote Link to comment https://forums.phpfreaks.com/topic/268652-get-msg-number-of-msg-created-by-imap_append/ Share on other sites More sharing options...
doni49 Posted September 22, 2012 Author Share Posted September 22, 2012 I just found the answer. I don't actually need the message number--I need to mark them as Seen at the time I run append if it needs to be marked that way. It get's passed via the $options portion of the imap_append function. Quote Link to comment https://forums.phpfreaks.com/topic/268652-get-msg-number-of-msg-created-by-imap_append/#findComment-1379962 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.