php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6110 imap_delete() does not delete messages
Submitted: 2000-08-11 09:04 UTC Modified: 2000-08-11 23:13 UTC
From: schu at schu dot net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: FreeBSD 4.1-RELEASE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: schu at schu dot net
New email:
PHP Version: OS:

 

 [2000-08-11 09:04 UTC] schu at schu dot net
When using this code to delete an IMAP message:
<?
$objmbox = imap_open("{localhost}", "user", "password", OP_READONLY) || die("Can't connect");

$check = imap_mailboxmsginfo ($objmbox);
print "Messages before delete: $check->Nmsgs<br>\n" ;
imap_delete ($objmbox, 1);
$check = imap_mailboxmsginfo ($objmbox);
print "Messages after  delete: $check->Nmsgs<br>\n" ;
imap_expunge ($objmbox);
$check = imap_mailboxmsginfo ($objmbox);
print "Messages after expunge: $check->Nmsgs<br>\n" ;
imap_close ($objmbox);
?>

I get: 

Messages before delete: 370
Messages after delete: 370
Messages after expunge: 370

This leads me to believe that the delete function or the expunge function is not working.

I also tried using "{localhost}INBOX" to connect and that didn't work either.

This is how I compiled php:
./configure --with-mysql --enable-track-vars --enable-trans-sid --with-apxs=/usr/local/apache/bin/apxs --with-ftp --with-imap

I am using IMAP-4.7c.  compiled with the default ./configure
OS is FreeBSD 4.1-RELEASE

schu

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-11 23:13 UTC] sniper@php.net
Script error. Without OP_READONLY imap_delete() works. 

--Jani
 [2004-06-17 02:58 UTC] brh18us at yahoo dot com
why can't i delete messages in inbox?????????
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 08:01:32 2024 UTC