PHP imap_expunge imap_close problem

This is a discussion on PHP imap_expunge imap_close problem within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello, I've searched the docs and online and can't find the solution to my problem. I'm running ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-23-2003
madirish
 
Posts: n/a
Default PHP imap_expunge imap_close problem

Hello,

I've searched the docs and online and can't find the solution to my
problem. I'm running PHP 4.0.6 on Mandrake Linux with Sendmail and I've
deployed a PHP based webmail. Problem is that when I use the delete script
it deletes two messages from the inbox (the message passed by url variable
$num and the next message higher in number). The script I have now is
posted below. Problem is that if I comment out the imap_close($mbox) the
script works properly (only one message deleted). Any idea why? Is there a
problem with not invoking imap_close()? Thanks for any help:

$server = "127.0.0.1";

$mbox = @imap_open("{".$server.":110/pop3}INBOX", $username, $password);

imap_delete($mbox, $num);
imap_expunge($mbox);

imap_close($mbox);


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0