cvs: phpdoc-de /reference/imap/functions imap-createmailbox.xml
| From: | Hartmut Holzgraefe | Date: | Fri, 16 Feb 2007 00:15:16 +0000 |
| Subject: | cvs: phpdoc-de /reference/imap/functions imap-createmailbox.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-2001@lists.php.net to get a copy of this message | ||
hholzgra Fri Feb 16 00:15:16 2007 UTC
Modified files:
/phpdoc-de/reference/imap/functions imap-createmailbox.xml
Log:
translation update
http://cvs.php.net/viewvc.cgi/phpdoc-de/reference/imap/functions/imap-createmailbox.xml?r1=1.4&r2=1.5&diff_format=u
Index: phpdoc-de/reference/imap/functions/imap-createmailbox.xml
diff -u phpdoc-de/reference/imap/functions/imap-createmailbox.xml:1.4
phpdoc-de/reference/imap/functions/imap-createmailbox.xml:1.5
--- phpdoc-de/reference/imap/functions/imap-createmailbox.xml:1.4 Mon Jan 29 21:47:10 2007
+++ phpdoc-de/reference/imap/functions/imap-createmailbox.xml Fri Feb 16 00:15:16 2007
@@ -1,87 +1,116 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
-<!-- EN-Revision: 1.1 Maintainer: hholzgra Status: working -->
-<!-- splitted from ./de/functions/imap.xml, last change in rev 1.2 -->
-<!-- last change to 'imap-createmailbox' in en/ tree in rev 1.2 -->
- <refentry id="function.imap-createmailbox">
- <refnamediv>
- <refname>imap_createmailbox</refname>
- <refpurpose>Erzeugt ein neues Postfach</refpurpose>
- </refnamediv>
- <refsect1 role="description">
- &reftitle.description;
- <methodsynopsis>
- <type>int</type><methodname>imap_createmailbox</methodname>
-
<methodparam><type>int</type><parameter>imap_stream</parameter></methodparam>
-
<methodparam><type>string</type><parameter>mbox</parameter></methodparam>
- </methodsynopsis>
- <para>
- <function>imap_createmailbox</function> legt ein über den Parameter
- <parameter>mbox</parameter> spezifiziertes neues Postfach an.
- </para>
- <para>
- Liefert &true; bei Erfolg und &false; bei Fehlern.
- </para>
- <para>
- Siehe auch <function>imap_renamemailbox</function> and
- <function>imap_deletemailbox</function>
- sowie <function>imap_open</function> für das Format des
- Parameters <parameter>mbox</parameter>.
- </para>
- <para>
- <example>
- <title><function>imap_createmailbox</function> Beispiel</title>
- <programlisting>
-$mbox = imap_open ("{your.imap.host}", "username", "password",
OP_HALFOPEN)
- || die ("can't connect: ".imap_last_error());
+<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.13 Maintainer: hholzgra Status: ready -->
+<refentry id="function.imap-createmailbox">
+ <refnamediv>
+ <refname>imap_createmailbox</refname>
+ <refpurpose>Anlegen eines neuen Postfachs</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>bool</type><methodname>imap_createmailbox</methodname>
+
<methodparam><type>resource</type><parameter>imap_stream</parameter></methodparam>
+
<methodparam><type>string</type><parameter>mailbox</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Legt ein neues Postfach mit dem Namen <function>mailbox</function> an.
+ </para>
+ </refsect1>
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &imap.imap-stream.description;
+ <varlistentry>
+ <term><parameter>mailbox</parameter></term>
+ <listitem>
+ <para>
+ Der Postfachname, siehe <function>imap_open</function> für
+ nähere Informationen. Namen die nicht-ASCII Zeichen enthalten
+ sollten mit <function>imap_utf7_encode</function> kodiert
+ werden.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success;
+ </para>
+ </refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>imap_createmailbox</function> Beispiel</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$mbox = imap_open("{imap.example.org}", "username", "password",
OP_HALFOPEN)
+ or die("can't connect: " . imap_last_error());
$name1 = "phpnewbox";
-$name2 = imap_utf7_encode ("phpnewböx");
+$name2 = imap_utf7_encode("phpnewböx");
$newname = $name1;
-echo "Newname will be '$name1'<br>\n";
+echo "Newname will be '$name1'<br />\n";
-# we will now create a new mailbox "phptestbox" in your inbox folder,
-# check its status after creation and finaly remove it to restore
-# your inbox to its initial state
-
-if (@imap_createmailbox ($mbox,imap_utf7_encode ("{your.imap.host}INBOX.$newname"))) {
- $status = @imap_status($mbox,"{your.imap.host}INBOX.$newname",SA_ALL);
- if($status) {
- print("your new mailbox '$name1' has the following
status:<br>\n");
- print("Messages: ". $status->messages )."<br>\n";
- print("Recent: ". $status->recent )."<br>\n";
- print("Unseen: ". $status->unseen )."<br>\n";
- print("UIDnext: ". $status->uidnext )."<br>\n";
- print("UIDvalidity:". $status->uidvalidity)."<br>\n";
-
- if (imap_renamemailbox ($mbox,"{your.imap.host}INBOX.$newname",
"{your.imap.host}INBOX.$name2")) {
- echo "renamed new mailbox from '$name1' to
'$name2'<br>\n";
- $newname=$name2;
+// we will now create a new mailbox "phptestbox" in your inbox folder,
+// check its status after creation and finaly remove it to restore
+// your inbox to its initial state
+
+if (@imap_createmailbox($mbox, imap_utf7_encode("{imap.example.org}INBOX.$newname"))) {
+ $status = @imap_status($mbox, "{imap.example.org}INBOX.$newname", SA_ALL);
+ if ($status) {
+ echo "your new mailbox '$name1' has the following status:<br
/>\n";
+ echo "Messages: " . $status->messages . "<br />\n";
+ echo "Recent: " . $status->recent . "<br />\n";
+ echo "Unseen: " . $status->unseen . "<br />\n";
+ echo "UIDnext: " . $status->uidnext . "<br />\n";
+ echo "UIDvalidity:" . $status->uidvalidity . "<br />\n";
+
+ if (imap_renamemailbox($mbox, "{imap.example.org}INBOX.$newname",
"{imap.example.org}INBOX.$name2")) {
+ echo "renamed new mailbox from '$name1' to '$name2'<br
/>\n";
+ $newname = $name2;
} else {
- print "imap_renamemailbox on new mailbox failed: ".imap_last_error
()."<br>\n";
+ echo "imap_renamemailbox on new mailbox failed: " . imap_last_error() .
"<br />\n";
}
} else {
- print "imap_status on new mailbox failed:
".imap_last_error()."<br>\n";
+ echo "imap_status on new mailbox failed: " . imap_last_error() . "<br
/>\n";
}
- if (@imap_deletemailbox($mbox,"{your.imap.host}INBOX.$newname")) {
- print "new mailbox removed to restore initial state<br>\n";
+
+ if (@imap_deletemailbox($mbox, "{imap.example.org}INBOX.$newname")) {
+ echo "new mailbox removed to restore initial state<br />\n";
} else {
- print "imap_deletemailbox on new mailbox failed: ".implode
("<br>\n", imap_errors())."<br>\n";
+ echo "imap_deletemailbox on new mailbox failed: " . implode("<br
/>\n", imap_errors()) . "<br />\n";
}
} else {
-
- print "could not create new mailbox: ".implode
("<br>\n",imap_errors())."<br>\n";
+ echo "could not create new mailbox: " . implode("<br />\n",
imap_errors()) . "<br />\n";
}
imap_close($mbox);
- </programlisting>
- </example>
- </para>
- </refsect1>
- </refentry>
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>imap_renamemailbox</function></member>
+ <member><function>imap_deletemailbox</function></member>
+ </simplelist>
+ </para>
+ </refsect1>
+</refentry>
<!-- Keep this comment at the end of the file
Local variables: