<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.imap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.imap-fetchstructure.php',
    1 => 'imap_fetchstructure',
    2 => 'Liefert die Struktur einer Nachricht',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.imap-fetchmime.php',
    1 => 'imap_fetchmime',
  ),
  'next' => 
  array (
    0 => 'function.imap-fetchtext.php',
    1 => 'imap_fetchtext',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/imap/functions/imap-fetchstructure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-fetchstructure" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_fetchstructure</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_fetchstructure</span> &mdash; <span class="dc-title">Liefert die Struktur einer Nachricht</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.imap-fetchstructure-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_fetchstructure</strong></span>(<span class="methodparam"><span class="type"><a href="class.imap-connection.php" class="type IMAP\Connection">IMAP\Connection</a></span> <code class="parameter">$imap</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$message_num</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$flags</code><span class="initializer"> = 0</span></span>): <span class="type"><span class="type"><a href="class.stdclass.php" class="type stdClass">stdClass</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Gibt alle Strukturinformationen für die angegebene Nachricht zurück.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imap-fetchstructure-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    <dt>
<code class="parameter">imap</code></dt><dd><p class="para">Eine <span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span>-Instanz.</p></dd>
    
     <dt><code class="parameter">message_num</code></dt>
     <dd>
      <p class="para">
       Die Nummer der Nachricht
      </p>
     </dd>
    
    
     <dt><code class="parameter">flags</code></dt>
     <dd>
      <p class="para">
       Dieser optionale Parameter hat nur eine einzige Option,
       <strong><code><a href="imap.constants.php#constant.ft-uid">FT_UID</a></code></strong>, die angibt, dass
       <code class="parameter">message_num</code> als <code class="literal">UID</code> behandelt
       werden soll.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imap-fetchstructure-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt ein Objekt mit Eigenschaften zurück, die in der Tabelle weiter unten
   aufgelistet werden. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>
     Zurückgegebenes Objekt für <span class="function"><strong>imap_fetchstructure()</strong></span>
    </strong></caption>
    
     <tbody class="tbody">
      <tr>
       <td>type</td>
       <td>Primärer Typ des Textkörpers</td>
      </tr>

      <tr>
       <td>encoding</td>
       <td>Übertragungskodierung des Textkörpers</td>
      </tr>

      <tr>
       <td>ifsubtype</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, falls ein Untertyp-Eintrag existiert</td>
      </tr>

      <tr>
       <td>subtype</td>
       <td><abbr title="Multipurpose Internet Mail Extensions">MIME</abbr>-Untertyp</td>
      </tr>

      <tr>
       <td>ifdescription</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, falls ein Beschreibungstext existiert</td>
      </tr>

      <tr>
       <td>description</td>
       <td>Beschreibungstext</td>
      </tr>

      <tr>
       <td>ifid</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, falls ein Identifikationstext existiert</td>
      </tr>

      <tr>
       <td>id</td>
       <td>Identifikationstext</td>
      </tr>

      <tr>
       <td>lines</td>
       <td>Anzahl der Zeilen</td>
      </tr>

      <tr>
       <td>bytes</td>
       <td>Größe in Bytes</td>
      </tr>

      <tr>
       <td>ifdisposition</td>
       <td>
        <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, falls ein Eintrag zur Verwendungsart (disposition) existiert
       </td>
      </tr>

      <tr>
       <td>disposition</td>
       <td>Verwendungsart</td>
      </tr>

      <tr>
       <td>ifdparameters</td>
       <td>
        <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, falls ein <var class="varname">dparameters</var>-Array existiert
       </td>
      </tr>

      <tr>
       <td>dparameters</td>
       <td>
        Ein Array von Objekten, wobei jedes Objekt eine
        <code class="literal">&quot;attribute&quot;</code>- und eine
        <code class="literal">&quot;value&quot;</code>-Eigenschaft hat, die den Parametern der
        <abbr title="Multipurpose Internet Mail Extensions">MIME</abbr>-Kopfzeile
        <code class="literal">Content-disposition</code> entsprechen.
       </td>
      </tr>

      <tr>
       <td>ifparameters</td>
       <td><strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, falls ein &quot;parameters&quot;-Array existiert</td>
      </tr>

      <tr>
       <td>parameters</td>
       <td>
        Ein Array von Objekten mit je einer <code class="literal">&quot;attribute&quot;</code>-
        und einer <code class="literal">&quot;value&quot;</code>-Eigenschaft.
       </td>
      </tr>

      <tr>
       <td>parts</td>
       <td>
        Wenn der Nachrichtenteil selbst weitere untergeordnete
        <abbr title="Multipurpose Internet Mail Extensions">MIME</abbr>-Nachrichtenteile enthält, wird hier ein Array
        mit Objekten für diese Teile angelegt. Die Elemente dieses Arrays sind
        selbst jeweils wieder Objekte mit der hier beschriebenen Struktur.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Gängige primäre Nachrichtentypen (der Wert kann sich je nach Bibliothek ändern; die Verwendung der Konstanten wird empfohlen)</strong></caption>
    
     <thead>
      <tr><th>Wert</th><th>Typ</th><th>Konstante</th></tr>

     </thead>

     <tbody class="tbody">
      <tr><td>0</td><td>text</td><td>TYPETEXT</td></tr>

      <tr><td>1</td><td>multipart</td><td>TYPEMULTIPART</td></tr>

      <tr><td>2</td><td>message</td><td>TYPEMESSAGE</td></tr>

      <tr><td>3</td><td>application</td><td>TYPEAPPLICATION</td></tr>

      <tr><td>4</td><td>audio</td><td>TYPEAUDIO</td></tr>

      <tr><td>5</td><td>image</td><td>TYPEIMAGE</td></tr>

      <tr><td>6</td><td>video</td><td>TYPEVIDEO</td></tr>

      <tr><td>7</td><td>model</td><td>TYPEMODEL</td></tr>

      <tr><td>8</td><td>other</td><td>TYPEOTHER</td></tr>

     </tbody>
    
   </table>

  </p>
  <p class="para">
   <table class="doctable table">
    <caption><strong>Gängige Übertragungskodierungen (der Wert kann sich je nach Bibliothek ändern; die Verwendung der Konstanten wird empfohlen)</strong></caption>
    
     <thead>
      <tr><th>Wert</th><th>Typ</th><th>Konstante</th></tr>

     </thead>

     <tbody class="tbody">
      <tr><td>0</td><td>7bit</td><td>ENC7BIT</td></tr>

      <tr><td>1</td><td>8bit</td><td>ENC8BIT</td></tr>

      <tr><td>2</td><td>Binary</td><td>ENCBINARY</td></tr>

      <tr><td>3</td><td>Base64</td><td>ENCBASE64</td></tr>

      <tr><td>4</td><td>Quoted-Printable</td><td>ENCQUOTEDPRINTABLE</td></tr>

      <tr><td>5</td><td>other</td><td>ENCOTHER</td></tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imap-fetchstructure-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  Der Parameter <code class="parameter">imap</code> erwartet nun eine
  <span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span>-Instanz; vorher wurde eine gültige
  <code class="literal">imap</code>-<a href="language.types.resource.php" class="link">Ressource</a> erwartet.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


<div class="refsect1 seealso" id="refsect1-function.imap-fetchstructure-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-fetchbody.php" class="function" rel="rdfs-seeAlso">imap_fetchbody()</a> - Liefert einen bestimmten Abschnitt aus dem Textk&ouml;rper einer Nachricht</span></li>
    <li><span class="function"><a href="function.imap-bodystruct.php" class="function" rel="rdfs-seeAlso">imap_bodystruct()</a> - Liefert die Struktur eines bestimmten Nachrichtenteils</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>