protected function getTrash() {

        foreach ($this->getFolders() as $folder) {
            if (in_array(strtolower($folder), array('trash', 'inbox.trash', 'papierkorb'))) {
                return $folder;
            }
        }

        // no trash folder found? create one
        $this->addFolder('Trash');
        return 'Trash';
    }
protected function getTrash() {

        foreach ($this->getFolders() as $folder) {
            if (in_array(strtolower($folder), array('trash', 'inbox.trash', 'papierkorb'))) {
                return $folder;
            }
        }

        // no trash folder found? create one
        $this->addFolder('Trash');
        return 'Trash';
    }
protected function getTrash ( ) { foreach ( $ this -> getFolders ( ) as $ folder ) { if ( in_array ( strtolower ( $ folder ) , array ( 'trash' , 'inbox.trash' , 'papierkorb' ) ) ) { return $ folder ; } } // no trash folder found? create one $ this -> addFolder ( 'Trash' ) ; return 'Trash' ; }
Get trash folder

@return string trash folder name
Get trash folder