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.