Re: emptying jammed mailbox by PHP?

From: Date: Mon, 17 Feb 2003 19:38:45 +0000
Subject: Re: emptying jammed mailbox by PHP?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135886@lists.php.net to get a copy of this message
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/

« previous php.general (#135886) next »