CSS: Providing seven essential vitamins and minerals since 1996.
Have a steaming hot, delicious slice of Standards.

Mail_IMAP_ManageMB::manageMail()

  • Home
  • ->Mail_IMAP_ManageMB::manageMail()

bool manageMail(str $action, array $msg_list, str $dest_mb)

This method is used to copy or move mail from one mailbox to another.

Warning: This method is new and is thus experimental. Its API may be tweaked in future releases.

Method summary:

param str $action One of copy|move. Toggles wether a message is copied to another mailbox or permenently moved.
param array $msg_list An array of message ids to copy or move.
param str $dest_mb The name of the destination mailbox to copy or move messages to.
return bool
throws ErrorStack: Argument requires array. The $msg_list argument must be an array.
throws ErrorStack: Unable to copy or move message, imap_mail_(copy|move) failed. Calling on imap_mail_copy or imap_mail_move failed (depending on the action), check syntax and try again, or the method is unsupported by the server.
throws ErrorStack: Invalid action. The $action argument must be one of copy|move.
access public
see imap_mail_copy
imap_mail_move
Posted: 04/22/07 03:04 pm by Richard York

Leave a Comment

Copyright © 1998-2009 Richard York, All Rights Reserved.
PHP Powered XHTML 1.0 CSS
Execution time: 0.04 seconds