#!/bin/sh
echo DEFANGED.19
exit
#!/usr/bin/python
import getpass, poplib
M = poplib.POP3('servername')
M.user(getpass.getuser())
M.pass_(getpass.getpass())
numMessages = len(M.list()[1])
for i in range(numMessages):
for j in M.dele(i+1)[1]:
print j
M.quit()
On Wed, Aug 03, 2005 at 04:12:40PM +0100, Denis Hennessy wrote:
> Hi Folks,
>> I have old email account which I had stopped using for several years
> because of spam which I've just realised I need to reactivate (I
> forgot to update internic...). However, a quick telnet to the POP port
> shows that I have 53MB of spam waiting for me. I don't have server
> access to the machine so I can't just go and delete the mailbox. I
> also don't have a way of asking the server admins to delete the
> mailbox (because the account was terminated years ago....).
>> So, what I'd like to do is have something connect as a POP client and
> delete every mail automatically. It sounds like something that one of
> you might have run across before - any ideas?
>> Thanks,
> Denis
> --
> Irish Linux Users' Group
>http://www.linux.ie/mailman/listinfo/ilug/>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!