<?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-set-quota.php',
    1 => 'imap_set_quota',
    2 => 'Legt die Gr&ouml;&szlig;enbeschr&auml;nkung f&uuml;r ein Postfach fest',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.imap-search.php',
    1 => 'imap_search',
  ),
  'next' => 
  array (
    0 => 'function.imap-setacl.php',
    1 => 'imap_setacl',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/imap/functions/imap-set-quota.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-set-quota" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_set_quota</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_set_quota</span> &mdash; <span class="dc-title">Legt die Größenbeschränkung für ein Postfach fest</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.imap-set-quota-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_set_quota</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.string.php" class="type string">string</a></span> <code class="parameter">$quota_root</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$mailbox_size</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Legt die Größenbeschränkung für das angegebene Postfach fest.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imap-set-quota-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">quota_root</code></dt>
     <dd>
      <p class="para">
       Das Postfach, für das eine Größenbeschränkung festgelegt werden soll.
       Dieses sollte dem IMAP-Standard für Postfächer folgen:
       <code class="literal">user.name</code>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">mailbox_size</code></dt>
     <dd>
      <p class="para">
       Die maximale Größe des Postfachs <code class="parameter">quota_root</code> in
       KB
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imap-set-quota-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imap-set-quota-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 examples" id="refsect1-function.imap-set-quota-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>imap_set_quota()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$mbox </span><span style="color: #007700">= </span><span style="color: #0000BB">imap_open</span><span style="color: #007700">(</span><span style="color: #DD0000">"{imap.example.org:143}"</span><span style="color: #007700">, </span><span style="color: #DD0000">"mailadmin"</span><span style="color: #007700">, </span><span style="color: #DD0000">"password"</span><span style="color: #007700">);<br /><br />if (!</span><span style="color: #0000BB">imap_set_quota</span><span style="color: #007700">(</span><span style="color: #0000BB">$mbox</span><span style="color: #007700">, </span><span style="color: #DD0000">"user.kalowsky"</span><span style="color: #007700">, </span><span style="color: #0000BB">3000</span><span style="color: #007700">)) {<br />    echo </span><span style="color: #DD0000">"Fehler beim Festlegen der Beschränkung\n"</span><span style="color: #007700">;<br />    return;<br />}<br /><br /></span><span style="color: #0000BB">imap_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$mbox</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.imap-set-quota-notes">
  <h3 class="title">Anmerkungen</h3>
  <p class="para">
   Diese Funktion ist aktuell erst ab der Bibliotheksversion c-client2000
   verfügbar.
  </p>
  <p class="para">
   Die Serververbindung <code class="parameter">imap</code> muss von einem Benutzer
   mit Administratorrechten geöffnet worden sein, ansonsten schlägt die
   Funktion fehl.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.imap-set-quota-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-open.php" class="function" rel="rdfs-seeAlso">imap_open()</a> - &Ouml;ffnet einen IMAP-Stream zu einem Postfach</span></li>
    <li><span class="function"><a href="function.imap-get-quota.php" class="function" rel="rdfs-seeAlso">imap_get_quota()</a> - Liefert Quota-Einstellungen und Nutzungsstatistik der Postf&auml;cher</span></li>
   </ul>
  </p>
 </div>


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