diff --git a/functions/imap.xml b/functions/imap.xml index 394ef1d38a..366acad450 100644 --- a/functions/imap.xml +++ b/functions/imap.xml @@ -453,7 +453,7 @@ ST_UID The sequence argument contains UIDs instead of <function>imap_createmailbox</function> example $mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN) - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $name1 = "phpnewbox"; $name2 = imap_utf7_encode("phpnewböx"); @@ -540,7 +540,7 @@ imap_close($mbox); <function>Imap_delete</function> Beispiel $mbox = imap_open ("{your.imap.host}INBOX", "username", "password") - || die ("can't connect: " . imap_last_error()); + or die ("can't connect: " . imap_last_error()); $check = imap_mailboxmsginfo ($mbox); print "Messages before delete: " . $check->Nmsgs . "<br>\n" ; @@ -743,7 +743,7 @@ imap_close ($mbox); <function>imap_fetch_overview</function> example $mbox = imap_open("{your.imap.host:143}","username","password") - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $overview = imap_fetch_overview($mbox,"2,4:6",0); @@ -1071,7 +1071,7 @@ FT_PREFETCHTEXT The RFC822.TEXT should be pre-fetched at the <function>imap_get_quota</function> example $mbox = imap_open("{your.imap.host}","mailadmin","password",OP_HALFOPEN) - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $quota_value = imap_get_quota($mbox, "user.kalowsky"); if(is_array($quota_value)) { @@ -1169,7 +1169,7 @@ imap_close($mbox); <function>imap_getmailboxes</function> example $mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN) - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $list = imap_getmailboxes($mbox,"{your.imap.host}","*"); if(is_array($list)) { @@ -1437,7 +1437,7 @@ fetchsubject (subject line formatted to fit subjectlength <function>imap_listmailbox</function> example $mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN) - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $list = imap_listmailbox($mbox,"{your.imap.host}","*"); if(is_array($list)) { @@ -1735,7 +1735,7 @@ echo nl2br(imap_mail_compose($envelope,$body)); <?php $mbox = imap_open("{your.imap.host}INBOX","username", "password") - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $check = imap_mailboxmsginfo($mbox); @@ -2564,7 +2564,7 @@ ST_UID The sequence argument contains UIDs instead of <function>imap_setflag_full</function> example $mbox = imap_open("{your.imap.host:143}","username","password") - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $status = imap_setflag_full($mbox,"2,5","\\Seen \\Flagged"); @@ -2695,7 +2695,7 @@ SE_NOPREFETCH Don't prefetch searched messages. <function>imap_status</function> example $mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN) - || die("can't connect: ".imap_last_error()); + or die("can't connect: ".imap_last_error()); $status = imap_status($mbox,"{your.imap.host}INBOX",SA_ALL); if($status) {