temp_dir_ttl option

Pull request for temp_dir_ttl option, as discussed at:

http://trac.roundcube.net/ticket/1489304