deleting of events

This commit is contained in:
Ralf Becker 2010-12-19 04:07:01 +00:00
parent a460dde341
commit 416410f338

View File

@ -355,7 +355,7 @@ class calendar_activesync implements activesync_plugin_write
* @param $folderid
* @param $id
*
* @TODO check what is to be returned
* @return boolean true on success, false on error, diffbackend does NOT use the returnvalue
*
* @DESC After this call has succeeded, a call to
* GetMessageList() should no longer list the message. If it does, the message will be re-sent to the PDA
@ -364,8 +364,11 @@ class calendar_activesync implements activesync_plugin_write
*/
public function DeleteMessage($folderid, $id)
{
debugLog(__METHOD__."('$folderid', $id) NOT implemented!");
return false;
if (!isset($this->caledar)) $this->calendar = new calendar_boupdate();
$ret = $this->calendar->delete($id);
debugLog(__METHOD__."('$folderid', $id) delete($id) returned ".array2string($ret));
return $ret;
}
/**