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!

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.