| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/ |
Upload File : |
ó
ÿ–|_c @ sª d Z d d l Z d d g Z d „ Z d „ Z d „ Z d „ Z d „ Z d
d g d „ Z d d
„ Z
g d „ Z d „ Z d „ Z
d „ Z e d k r¦ e
ƒ n d S( s% Mailcap file handling. See RFC 1524.iÿÿÿÿNt getcapst findmatchc C s¦ i } x™ t ƒ D]Ž } y t | d ƒ } Wn t k
r? q n Xt | ƒ } | j ƒ xE | j ƒ D]7 \ } } | | k rˆ | | | <qc | | | | | <qc Wq W| S( s Return a dictionary containing the mailcap database.
The dictionary maps a MIME type (in all lowercase, e.g. 'text/plain')
to a list of dictionaries corresponding to mailcap entries. The list
collects all the entries for that MIME type from all available mailcap
files. Each dictionary contains key-value pairs for that MIME type,
where the viewing command is stored with the key "view".
t r( t listmailcapfilest opent IOErrort readmailcapfilet closet iteritems( t capst mailcapt fpt morecapst keyt value( ( s /usr/lib/python2.7/mailcap.pyR s
c C sm d t j k r. t j d } | j d ƒ } n; d t j k rM t j d } n d } | d d d d g } | S( s7 Return a list of all mailcap files found on the system.t MAILCAPSt :t HOMEt .s /.mailcaps /etc/mailcaps /usr/etc/mailcaps /usr/local/etc/mailcap( t ost environt split( t strt mailcapst home( ( s /usr/lib/python2.7/mailcap.pyR "