2010年5月25日火曜日

PEAR::mimeDecodeを使ってgmailの添付ファイルを認識する方法。

pear config-show

で、インストール場所調べて

/usr/share/pear/Mail/mimeDecode.php



$splitRegex = '/([^;\'"]*[\'"]([^\'"]*([^\'"]*)*)[\'"][^;\'"]*|([^;]+))(;|$)/';



splitRegex = '/([^;\'"]*([\'"])([^\2]*([^\2]*)*)\2[^;\2]*|([^;]+))(;|$)/';

でうまく行くはず。

0 コメント: