Open the message. Click the Move to: button on the top menu bar. The button includes the image of a file folder. Select the destination folder from the drop-down menu, or choose Create new from the menu to move the message to a new folder.
I'm trying to move messages away from Inbox into Processed label with this code:
$inbox = imap_open($host,$user,$pass) or die('Error: ' . imap_last_error());
if( $emails = imap_search($inbox,'ALL') )
{
foreach($emails as $email_number) {
imap_mail_move($inbox, $email_number, 'Processed') or die('Error');
}
}
imap_expunge($inbox);
imap_close($inbox);
Unfortunately, while the messages get the Processed label, they're still left in Inbox too.
How would I make them go away from Inbox?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With