$obj->subject=$this->decode($obj->subject);
private function decode($enc){
$parts = imap_mime_header_decode($enc);
$str='';
for ($p=0; $p<count($parts); $p++) {
$ch=$parts[$p]->charset;
$part=$parts[$p]->text;
if ($ch!=='default') $str.=mb_convert_encoding($parts[$p]->text,'UTF-8',$ch);
else $str.=$part;
}
return $str;
}
system('ffmpeg -i in.avi -f segment -segment_time 1 -vcodec copy -acodec copy out%03d.avi',$return);
$f3->route('GET /@controller/@action','\controllers\@controller->@action');