From 5e6ad838edb4a53ca3eeed13d4b53fa1526e8412 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Wed, 8 Mar 2000 20:46:27 +0000 Subject: [PATCH] added a first bunch of examples git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@21211 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/imap.xml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/functions/imap.xml b/functions/imap.xml index f5730a0bba..96cbb90fb0 100644 --- a/functions/imap.xml +++ b/functions/imap.xml @@ -114,6 +114,32 @@ your end-of-line terminator instead of "\n" or the operation will fail. + + + <function>imap_append</function> example + +Nmsgs."\n"; + +imap_append($stream,"{your.imap.host}INBOX.Drafts" + ,"From: me@my.host\r\n" + ."To: you@your.host\r\n" + ."Subject: test\r\n" + ."\r\n" + ."this is a test message, please ignore\r\n" + ); + +$check = imap_check($stream); +print "Msg Count after append : ". $check->Nmsgs."\n"; + +imap_close($stream); +?> + + + @@ -249,7 +275,8 @@ Close the imap stream. Takes an optional flag CL_EXPUNGE, which will silently - expunge the mailbox before closing. + expunge the mailbox before closing, removing all messages marked for + deletion. @@ -268,7 +295,8 @@ imap_createmailbox creates a new mailbox - specified by mbox. + specified by mbox. Names containing + international characters should be encoded by imap_utf7_encode Returns true on success and false on error.