Re: [gentoo-user] Orphan e-mail message in kmail

2009-02-26 Thread Peter Humphrey
On Tuesday 24 February 2009 18:53:39 Alan McKinnon wrote:

 You are probably using maildir for your mail - it's the default. Shut
 down kmail completely. Go to ~/.kde/share/apps/kmail/mail/folder/cur,
 and delete the actual file. grep can help you find it even if only by
 identifying the files that isn't it.

 Then delete the relevant index files in ~/.kde/share/apps/kmail/mail.
 Your inbox for example is called .inbox.index.* and there will be three
 of them.

 Restart kmail, it will rebuild it's indexes and all will be well.

That did it - thanks.

  I suppose I could delete my home directory, create a new one and import
  kmail's stuff from the old to the new, together with other
  applications' stuff, but I don't know any way to import filters, and
  anyway it's an awful fag.

 Don't delete your home dir! kmail keeps it's mail there and you will lose
 the lot.

Slip of the tongue (pen? fingers?). I meant I'd move the home directory, not 
remove it.

Thanks again, and to Volker.

-- 
Rgds
Peter



Re: [gentoo-user] Orphan e-mail message in kmail

2009-02-24 Thread Volker Armin Hemmann
On Dienstag 24 Februar 2009, Peter Humphrey wrote:
 Greetings,

 After a power failure a few days ago, kmail-1.9.9 now has one message in
 one folder that can't be read, viewed, moved or deleted. It's shown at the
 top of the list instead of near the bottom, and nothing I can think of will
 make any change to it.

 Can anyone suggest a reasonably safe approach to getting rid of it? I don't
 mind losing it as long as I don't lose anything else.

 I suppose I could delete my home directory, create a new one and import
 kmail's stuff from the old to the new, together with other applications'
 stuff, but I don't know any way to import filters, and anyway it's an awful
 fag.

go into the mail directory and remove the index file. kmail must not running!
Then start kmail and let it re-index the directory. After that you can read 
it, move it, remove it.

Maybe just rebuilding index is enough, but I had cases in the past where that 
was not enough.




Re: [gentoo-user] Orphan e-mail message in kmail

2009-02-24 Thread Alan McKinnon
On Tuesday 24 February 2009 19:18:03 Peter Humphrey wrote:
 Greetings,

 After a power failure a few days ago, kmail-1.9.9 now has one message in
 one folder that can't be read, viewed, moved or deleted. It's shown at the
 top of the list instead of near the bottom, and nothing I can think of will
 make any change to it.

 Can anyone suggest a reasonably safe approach to getting rid of it? I don't
 mind losing it as long as I don't lose anything else.

You are probably using maildir for your mail - it's the default. Shut down 
kmail completely. Go to ~/.kde/share/apps/kmail/mail/folder/cur, and delete 
the actual file. grep can help you find it even if only by identifying the 
files that isn't it.

Then delete the relevant index files in ~/.kde/share/apps/kmail/mail.
Your inbox for example is called .inbox.index.* and there will be three of 
them.

Restart kmail, it will rebuild it's indexes and all will be well.

(With KDE-4, change those paths to ~/.kde4/

 I suppose I could delete my home directory, create a new one and import
 kmail's stuff from the old to the new, together with other applications'
 stuff, but I don't know any way to import filters, and anyway it's an awful
 fag.

Don't delete your home dir! kmail keeps it's mail there and you will lose the 
lot.
-- 
alan dot mckinnon at gmail dot com