At 03:27 18.02.2003, Chris Hayes said:
--------------------[snip]--------------------
>hi,
>maybe not the most professional way but my mailbox is jammed and i want to
>clear it. My ISP host is doing some office refurnishing and needs all his
>attention to pick the right color hues.
>So i thought maybe i can send a simple POP command to delete all mails in
>the mailbox? It's 14000 mails since last thursday!
>Maybe using mr Lemos' POP script class?
>
>My email client eudora complains it cannot get a 'lock'- mailbox in use.
>This can be the mail subsystem thingy keeping sending itself a warning
>email. Ideas?
>
>BTW PHP on the server is running in safe mode,
--------------------[snip]--------------------
You might try a socket connection to your POP3 server (port 110):
Pseudocode:
>connect<
USER >login<
PASS >pass<
LIST
# will return an array of message numbers
# walk these numbers and transmit a DELE command:
foreach ($msgs as $id)
DELE $id
QUIT
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php