[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/config/ -> mime_drivers.php.dist (source)

   1  <?php
   2  /**
   3   * $Horde: imp/config/mime_drivers.php.dist,v 1.35.10.3 2006/07/19 17:12:59 jan Exp $
   4   *
   5   * Decide which output drivers you want to activate for the IMP application.
   6   * Settings in this file override settings in horde/config/mime_drivers.php.
   7   *
   8   * The available drivers are:
   9   * --------------------------
  10   * alternative    multipart/alternative parts
  11   * appledouble    multipart/appledouble parts
  12   * enriched       Enriched text messages
  13   * html           HTML messages
  14   * images         Attached images inline
  15   * itip           iCalendar Transport-Independent Interoperability Protocol
  16   * multipart      All other multipart/* messages
  17   * notification   Notification messages
  18   * partial        message/partial parts
  19   * pgp            PGP signed/encrypted messages
  20   * pkcs7          S/MIME signed/encrypted messages
  21   * plain          URL syntax highlighting for text/plain parts 
  22   * related        multipart/related parts
  23   * rfc822         Digested messages
  24   * status         Mail delivery status messages
  25   * tnef           MS-TNEF attachments
  26   * zip            ZIP attachments
  27   */
  28  $mime_drivers_map['imp']['registered'] = array(
  29      'alternative', 'appledouble', 'enriched', 'html', 'images', 'itip',
  30      'multipart', 'notification', 'partial', 'pgp', 'pkcs7', 'plain',
  31      'related', 'rfc822', 'status', 'tnef', 'zip');
  32  
  33  /**
  34   * If you want to specifically override any MIME type to be handled by
  35   * a specific driver, then enter it here.  Normally, this is safe to
  36   * leave, but it's useful when multiple drivers handle the same MIME
  37   * type, and you want to specify exactly which one should handle it.
  38   */
  39  $mime_drivers_map['imp']['overrides'] = array();
  40  
  41  /**
  42   * Driver specific settings. See horde/config/mime_drivers.php for
  43   * the format.
  44   */
  45  
  46  /**
  47   * Text driver settings
  48   */
  49  $mime_drivers['imp']['plain']['inline'] = true;
  50  $mime_drivers['imp']['plain']['handles'] = array(
  51      'text/plain', 'text/rfc822-headers', 'application/pgp');
  52  /* If you want to scan ALL incoming messages for UUencoded data, set
  53     the following to true. */
  54  $mime_drivers['imp']['plain']['uuencode'] = false;
  55  
  56  /**
  57   * HTML driver settings
  58   */
  59  $mime_drivers['imp']['html']['inline'] = false;
  60  $mime_drivers['imp']['html']['handles'] = array(
  61      'text/html');
  62  $mime_drivers['imp']['html']['icons'] = array(
  63      'default' => 'html.png');
  64  /* If you don't want to display the link to open the HTML content in a
  65   * separate window, set the following to false. */
  66  $mime_drivers['imp']['html']['external'] = true;
  67  
  68  /**
  69   * Image driver settings
  70   */
  71  $mime_drivers['imp']['images']['inline'] = true;
  72  $mime_drivers['imp']['images']['handles'] = array(
  73      'image/*');
  74  $mime_drivers['imp']['images']['icons'] = array(
  75      'default' => 'image.png');
  76  
  77  /**
  78   * Enriched text driver settings
  79   */
  80  $mime_drivers['imp']['enriched']['inline'] = true;
  81  $mime_drivers['imp']['enriched']['handles'] = array(
  82      'text/enriched');
  83  $mime_drivers['imp']['enriched']['icons'] = array(
  84      'default' => 'text.png');
  85  
  86  /**
  87   * PGP settings
  88   */
  89  $mime_drivers['imp']['pgp']['inline'] = true;
  90  $mime_drivers['imp']['pgp']['icons'] = array(
  91      'default' => 'encryption.png' );
  92  $mime_drivers['imp']['pgp']['handles'] = array(
  93      'application/pgp-encrypted', 'application/pgp-keys', 'application/pgp-signature');
  94  
  95  /**
  96   * PKCS7 settings (S/MIME)
  97   */
  98  $mime_drivers['imp']['pkcs7']['inline'] = true;
  99  $mime_drivers['imp']['pkcs7']['icons'] = array(
 100      'default' => 'encryption.png' );
 101  $mime_drivers['imp']['pkcs7']['handles'] = array(
 102      'application/x-pkcs7-signature', 'application/x-pkcs7-mime',
 103      'application/pkcs7-signature', 'application/pkcs7-mime');
 104  
 105  /**
 106   * Digest message (message/rfc822) settings
 107   */
 108  $mime_drivers['imp']['rfc822']['inline'] = false;
 109  $mime_drivers['imp']['rfc822']['handles'] = array(
 110      'message/rfc822');
 111  $mime_drivers['imp']['rfc822']['icons'] = array(
 112      'default' => 'mail.png');
 113  
 114  /**
 115   * Zip File Attachments settings
 116   */
 117  $mime_drivers['imp']['zip']['inline'] = false;
 118  $mime_drivers['imp']['zip']['handles'] = array(
 119      'application/zip',
 120      'application/x-compressed',
 121      'application/x-zip-compressed');
 122  $mime_drivers['imp']['zip']['icons'] = array(
 123      'default' => 'compressed.png');
 124  
 125  /**
 126   * Delivery Status messages settings
 127   */
 128  $mime_drivers['imp']['status']['inline'] = true;
 129  $mime_drivers['imp']['status']['handles'] = array(
 130      'message/delivery-status');
 131  
 132  /**
 133   * Disposition Notification message settings
 134   */
 135  $mime_drivers['imp']['notification']['inline'] = true;
 136  $mime_drivers['imp']['notification']['handles'] = array(
 137      'message/disposition-notification');
 138  
 139  /**
 140   * multipart/appledouble settings
 141   */
 142  $mime_drivers['imp']['appledouble']['inline'] = true;
 143  $mime_drivers['imp']['appledouble']['handles'] = array(
 144      'multipart/appledouble');
 145  
 146  /**
 147   * iCalendar Transport-Independent Interoperability Protocol
 148   */
 149  $mime_drivers['imp']['itip']['inline'] = true;
 150  $mime_drivers['imp']['itip']['handles'] = array(
 151      'text/calendar',
 152      'text/x-vcalendar',
 153      'text/x-icalendar',
 154      'x-extension/vcs',
 155      'x-extension/ics');
 156  $mime_drivers['imp']['itip']['icons'] = array(
 157      'default' => 'itip.png');
 158  
 159  /**
 160   * multipart/alternative settings
 161   * YOU SHOULD NOT NORMALLY ALTER THIS SETTING.
 162   */
 163  $mime_drivers['imp']['alternative']['inline'] = true;
 164  $mime_drivers['imp']['alternative']['handles'] = array(
 165      'multipart/alternative');
 166  /* If you don't want to display the link to show alternative message parts,
 167   * set the following to false. */
 168  $mime_drivers['imp']['alternative']['show'] = true;
 169  
 170  /**
 171   * multipart/related settings
 172   * YOU SHOULD NOT NORMALLY ALTER THIS SETTING.
 173   */
 174  $mime_drivers['imp']['related']['inline'] = true;
 175  $mime_drivers['imp']['related']['handles'] = array(
 176      'multipart/related');
 177  $mime_drivers['imp']['related']['icons'] = array(
 178      'default' => 'html.png');
 179  
 180  /**
 181   * message/partial settings
 182   * YOU SHOULD NOT NORMALLY ALTER THIS SETTING.
 183   */
 184  $mime_drivers['imp']['partial']['inline'] = true;
 185  $mime_drivers['imp']['partial']['handles'] = array(
 186      'message/partial');
 187  
 188  /**
 189   * All other multipart/* messages
 190   * YOU SHOULD NOT NORMALLY ALTER THIS SETTING.
 191   */
 192  $mime_drivers['imp']['multipart']['inline'] = true;
 193  $mime_drivers['imp']['multipart']['handles'] = array(
 194      'multipart/*');
 195  
 196  /**
 197   * MS-TNEF Attachment (application/ms-tnef) settings
 198   * YOU SHOULD NOT NORMALLY ALTER THIS SETTING.
 199   */
 200  $mime_drivers['imp']['tnef']['inline'] = false;
 201  $mime_drivers['imp']['tnef']['handles'] = array(
 202      'application/ms-tnef');
 203  $mime_drivers['imp']['tnef']['icons'] = array(
 204      'default' => 'binary.png');


Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics