Having trouble with PHP 4.12 using imap_expunge() on a Courier-IMAP 1.4.3
server. I have a script that reads in email from about 100 mailboxes,
deletes mail, purges deletes via imap_expunge(), and closes the mailbox.
The problem is that this works for some mailboxes but not others, or
sometimes it works on one particular mailbox and later doesn't on the same
mailbox. When it doesn't, all the mail that was in the "new" Maildir
directory is still in "cur" after imap_expunge(). I also have an
imap_expunge at the very beginning of the script; immediately after
imap_open(), but before imap_check() or imap_fetch_overview().
This is run on a very busy mailserver, and these unpurged "cur" directories
eat up 7 gig of disk.
Anyone have ideas?