Ejemplo n.º 1
0
 /**
  * delete sieve script
  * 
  * @param string|Felamimail_Model_Account $_accountId
  */
 public function deleteScript($_accountId)
 {
     $this->_setSieveBackendAndAuthenticate($_accountId);
     if (Tinebase_Core::isLogLevel(Zend_Log::INFO)) {
         Tinebase_Core::getLogger()->info(__METHOD__ . '::' . __LINE__ . ' Delete SIEVE script ' . $this->_scriptName);
     }
     $this->_backend->deleteScript($this->_scriptName);
     if ($this->_scriptDataBackend === 'Sql') {
         $script = new Felamimail_Sieve_Backend_Sql($_accountId, FALSE);
         $script->delete();
     }
 }