Have you even needed to delete bunch of emails queued up on a POP3 server without actually downloading them? Sure, you could just telnet to port 110 and start deleting them manually, but what if you are dealing with hundreds of emails?
Here is my scenario. A lady calls me today saying that webmail is just unbearably slow for her, and she thinks it’s because she has to many emails in there. Sensing danger I telnetted in, and issued in a LIST command. I after watching the screen scroll for over a minute, I found out that there were over 1500 messages in the mailbox.
After some convincing the owner of the overflowing mailbox conceded to allow me delete everything prior to 2006 from the mailbox. She did not want to loose anything recent. Unfortunately deleting all these emails would not be easy, especially since the standard LIST command does not display dates. So I needed to figure out a better way.
Here is what you will need:
- a windows box – unfortunately you need windows for this solution
- Total Commander – the windows GUI based clone of Norton Commander/Midnight Commander. Yes, it’s not free, but it has 1 month free trial period.
- The POP3 Plugin – a nice plugin for Total Commander which allows you to access POP3 servers
When installing the plugin you will need to specify the location of the Total Commander ini file. This file is usually located in the default windows directory:
Once it is installed, open Total Commander. The POP3 access option is hidden under Network Neighborhood drive thing. To get there just click on the drive chooser in either panel and pick [-\-] from the list (by default it should be on [-c-]).
Inside, click on [POP3-SMTP Connections] directory. You can use the [Quick Connection] for a one-time session, or set up a permanent connection by giving it a name. In each case you will be prompted by a dialog asking you for POP3 and SMTP server.
You don’t need to set up SMTP as in this case we only care bout POP. The dialog is a little bit misleading because it looks like it wants you to type in the server address in the box. Unfortunately this is not the case. Click on the magic wand icon to access to proper POP3 login dialog which will ask you for the host name, username and password. It will then format the string which needs to go in the POP3 box appropriately. It should look something like this:
I’m not exactly sure if the password is just converted to hex ASCII values, or if it is modified in some other way. The magic wand dialog will do the encoding, so you don’t need to worry about this.
Once you click OK, Total Commander should connect to the POP3 server. It will display your POP3 mailbox just as if it was a normal file-system directory full of .eml files. From there you can view or delete any massages with great ease just as if you were working with normal files.
Quick warning – Total Commander may appear to freeze while establishing the connection. This is normal, especially if your mailbox is huge. Just let it sit for a while and it will spring back to life.
Also, once I deleted bunch of files (around 200 at a time) TC disconnected from the server and returned to [-\-] forcing me to reconnect. No work was lost, and the emails were deleted as they should – it simply closed the connection after the task was done.
If you ever needed this type of access to POP3 mailboxes, definitely check it out. This nifty plugin might make worth buying the TC license something you might want to consider.
[tags]pop3, email, smtp, pop3 as filesystem, total commander, pop3 plugin, pop3 plugin total commander, email plugin[/tags]