Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Hopefuly you have php installed. This was more or less stolen from a
website, but borrowed on an idea I had of using sockets in php
<?php
$username = "username";
$password = "password";
$num = 4;
$f = fsockopen("mypop3server.com","110");
fputs($f,"user $username\r\n");
fputs($f,"pass $password\r\n");
for($x = 0; $x < $num; $x++) {
fputs($f,"DELE $x\r\n");
}
fputs($f,"QUIT\r\n");
fclose($f);
?>
If you log in yourself using telnet first of all, telnet to your host on
port 110
Type user USERNAME
pass PASSWORD
Then type
stat
That will return the total number of messages - pop that figure in line
four $num = however many messages you wish to delete.
You should be able to run the script by using
EMAIL:PROTECTED:~> php myscript.php
Hope that helps,
Russell
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/