Koozali.org: home of the SME Server

Phantom mail

Offline Peasant

  • *
  • 143
  • +2/-0
Phantom mail
« on: February 07, 2014, 12:20:36 PM »
I recently treated myself to a Google Nexus 10, and I configured IMAP mail to work with SME no problem. However, when I enter the email app, it shows up a lot of phantom email folders that contain mail from about 9 years ago. These folders do not show up in either Thunderbird or Claws Mail on PC's. If I log on to webmail, and go to the Trash folder, I found these folders there. They are organised in a hierarchy starting with 'home', then 'jim' then 'mail' then the mail folders, but there was no mail inside them. I managed to delete the mail folders, but the hierarchy is still there, and the folders, complete with email are still showing up in the Nexus (I deleted the account and recreated it to see if that helped).

This is a hangover from when I moved my email to SME, and (in Evolution, which I was using at the time) copied my email to my newly created IMAP account.

My question is, where do I find these folders on the server so I can go and delete them manually, or is this possible?

Thanks.
Jim

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Phantom mail
« Reply #1 on: February 07, 2014, 06:08:55 PM »
You need to use a command line interface and get in server console.
I use putty for this. Use "root" as login and your admin/root password.

later go to the user space using:
 cd ~<username>
and enter in mail directories with:
 cd Maildir

there are a lot of directories (incluing some only visible with "ls -la")
These are some of mine:
drwxr-xr-x  2 jader jader   4096 Feb  6 19:38 tmp
drwxr-xr-x  5 jader jader   4096 Dec 21 15:49 .Trash
drwxr-xr-x  5 jader jader   4096 Jan  8  2012 .Trash.Deise

enter inside .Trash with
 cd " .Trash"
and view his content:
 ls -la

remove directories with:
 rm -rf <dir-name>
to remove a directory named .Trash.Deise the command would be:
 rm -rf .Trash.Deise

ATTENTION: TAKE A LOT OF EXTRA EXTRA EXTRA ATTENTION when using RM command.
One extra space and a lot is lost!!!

Good luck

Jáder
...

Offline Peasant

  • *
  • 143
  • +2/-0
Re: Phantom mail
« Reply #2 on: February 07, 2014, 07:09:07 PM »
Thanks Jader.

I was *almost* there. i had been using ls -l instead of ls -la, so couldn't see the mail directories as they were hidden. Once I'd tested my rm -rf on a couple of the directories I was able to tweak it and zapped the lot. Thanks again for the help.
Jim

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: Phantom mail
« Reply #3 on: February 07, 2014, 07:33:36 PM »
You´re welcome.
Glad to help! :)

Regards

Jáder
...