if ($this->_quota &&
$this->
checkQuota()) { /**
* @see Zend_Mail_Storage_Exception
*/
throw new Zend_Mail_Storage_Exception('storage is over quota!'
);
} if (!
($folder instanceof Zend_Mail_Storage_Folder
)) { $folder =
$this->
getFolders($folder);
} $filedata =
$this->
_getFileData($id);
$old_file =
$filedata['filename'
];
$flags =
$filedata['flags'
];
// copied message can't be recent
while (($key =
array_search(Zend_Mail_Storage::FLAG_RECENT,
$flags)) !== false
) { unset($flags[$key]);
} $info =
$this->
_getInfoString($flags);
// we're creating the copy as temp file before moving to cur/
$temp_file =
$this->
_createTmpFile($folder->
getGlobalName());