LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] script or utility to delete POP mail

[ILUG] script or utility to delete POP mail

Ivan Kelly ivan at ivankelly.net
Wed Aug 3 16:20:11 IST 2005


#!/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/
> 



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell