Jump to content

Get Msg Number Of Msg Created By Imap_Append?


doni49

Recommended Posts

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.