[PHP-DOC] cvs: phpdoc /de/functions imap.xml /en/functions imap.xml From: Hartmut Holzgraefe (hartmut <email protected>)
Date: 06/30/00

hholzgra Fri Jun 30 00:44:26 2000 EDT

  Modified files:
    /phpdoc/de/functions imap.xml
    /phpdoc/en/functions imap.xml
  Log:
  corrected imap_delete example
  
  
Index: phpdoc/de/functions/imap.xml
diff -u phpdoc/de/functions/imap.xml:1.17 phpdoc/de/functions/imap.xml:1.18
--- phpdoc/de/functions/imap.xml:1.17 Sat Jun 24 00:38:42 2000
+++ phpdoc/de/functions/imap.xml Fri Jun 30 00:44:25 2000
@@ -444,8 +444,10 @@
 $check = imap_mailboxmsginfo ($mbox);
 print "Messages before delete: " . $check->Nmsgs . "&lt;br>\n" ;
 imap_delete ($mbox, 1);
+$check = imap_mailboxmsginfo ($mbox);
 print "Messages after delete: " . $check->Nmsgs . "&lt;br>\n" ;
 imap_expunge ($mbox);
+$check = imap_mailboxmsginfo ($mbox);
 print "Messages after expunge: " . $check->Nmsgs . "&lt;br>\n" ;
 imap_close ($mbox);
       </programlisting>
Index: phpdoc/en/functions/imap.xml
diff -u phpdoc/en/functions/imap.xml:1.17 phpdoc/en/functions/imap.xml:1.18
--- phpdoc/en/functions/imap.xml:1.17 Sat Jun 24 00:38:43 2000
+++ phpdoc/en/functions/imap.xml Fri Jun 30 00:44:26 2000
@@ -427,6 +427,25 @@
      <function>imap_close</function> is called with the optional
      parameter CL_EXPUNGE.
     </para>
+ <para>
+ <example>
+ <title><function>Imap_delete</function> Beispiel</title>
+ <programlisting role="php">
+$mbox = imap_open ("{your.imap.host}INBOX", "username", "password")
+ || die ("can't connect: " . imap_last_error());
+
+$check = imap_mailboxmsginfo ($mbox);
+print "Messages before delete: " . $check->Nmsgs . "&lt;br>\n" ;
+imap_delete ($mbox, 1);
+$check = imap_mailboxmsginfo ($mbox);
+print "Messages after delete: " . $check->Nmsgs . "&lt;br>\n" ;
+imap_expunge ($mbox);
+$check = imap_mailboxmsginfo ($mbox);
+print "Messages after expunge: " . $check->Nmsgs . "&lt;br>\n" ;
+imap_close ($mbox);
+ </programlisting>
+ </example>
+ </para>
    </refsect1>
   </refentry>