[Dovecot] most of INBOX missing?
Greetings.
I'm having an issue with dovecot that I'm hoping that someone can help me with. Most of the mail in my INBOX has mysteriously disappeared and I'd like to get it back. It's all in the ~/Maildir/cur directory and dovecot reports that 1048 messages exist when given the SELECT imap command. But Thunderbird and the SEARCH imap command only list 25 messages:
[wlott@rootbeer ~]$ ls Maildir/cur | wc -l
1048
[wlott@rootbeer ~]$ MAIL=maildir:~/Maildir /usr/libexec/dovecot/imap
* PREAUTH [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND
UNSELECT IDLE CHILDREN LISTEXT LIST-SUBSCRIBED NAMESPACE] Logged in as wlott x SELECT INBOX * FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent $Label1 $Forwarded Junk) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent $Label1 $Forwarded Junk \*)] Flags permitted. * 1048 EXISTS * 0 RECENT * OK [UIDVALIDITY 1117080198] UIDs valid * OK [UIDNEXT 1700] Predicted next UID x OK [READ-WRITE] Select completed. x SEARCH ALL * SEARCH 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 x OK Search completed. [wlott@rootbeer ~]$
I'm running dovecot version 0.99.14-8 under Fedora Core 4. I saw on the dovecot website that 0.99 isn't supported anymore, but I'm hoping that someone can help me recover my lost email none the less.
Thanks,
-William
Have you tried mutt with the -f switch on the Maildir as root (or the mail user)?. If this works you could tag all items then save them to an mbox which you could import into thunderbird.
Regards, Mark
On Sat, Sep 09, 2006 at 11:20:24PM -0700, William Lott wrote:
Greetings.
I'm having an issue with dovecot that I'm hoping that someone can help me with. Most of the mail in my INBOX has mysteriously disappeared and I'd like to get it back. It's all in the ~/Maildir/cur directory and dovecot reports that 1048 messages exist when given the SELECT imap command. But Thunderbird and the SEARCH imap command only list 25 messages:
[wlott@rootbeer ~]$ ls Maildir/cur | wc -l 1048 [wlott@rootbeer ~]$ MAIL=maildir:~/Maildir /usr/libexec/dovecot/imap
- PREAUTH [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND UNSELECT IDLE CHILDREN LISTEXT LIST-SUBSCRIBED NAMESPACE] Logged in as wlott x SELECT INBOX
- FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent $Label1 $Forwarded Junk)
- OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk $MDNSent $Label1 $Forwarded Junk \*)] Flags permitted.
- 1048 EXISTS
- 0 RECENT
- OK [UIDVALIDITY 1117080198] UIDs valid
- OK [UIDNEXT 1700] Predicted next UID x OK [READ-WRITE] Select completed. x SEARCH ALL
- SEARCH 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 x OK Search completed. [wlott@rootbeer ~]$
I'm running dovecot version 0.99.14-8 under Fedora Core 4. I saw on the dovecot website that 0.99 isn't supported anymore, but I'm hoping that someone can help me recover my lost email none the less.
Thanks,
-William
On Sat, 2006-09-09 at 23:20 -0700, William Lott wrote:
* 1048 EXISTS * 0 RECENT * OK [UIDVALIDITY 1117080198] UIDs valid * OK [UIDNEXT 1700] Predicted next UID x OK [READ-WRITE] Select completed. x SEARCH ALL * SEARCH 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 x OK Search completed.
Looks like indexes got broken. Delete .imap.index* files.
Timo Sirainen wrote:
On Sat, 2006-09-09 at 23:20 -0700, William Lott wrote:
- 1048 EXISTS
- 0 RECENT
- OK [UIDVALIDITY 1117080198] UIDs valid
- OK [UIDNEXT 1700] Predicted next UID x OK [READ-WRITE] Select completed. x SEARCH ALL
- SEARCH 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 x OK Search completed.
Looks like indexes got broken. Delete .imap.index* files.
That did the trick! I was sure there would be a simple solution like that. Thanks a million!
Any ideas what might have broken the indices? Known issue with .99?
-William
On Fri, 2006-09-22 at 08:54 -0700, William Lott wrote:
Timo Sirainen wrote:
On Sat, 2006-09-09 at 23:20 -0700, William Lott wrote:
- 1048 EXISTS
- 0 RECENT
- OK [UIDVALIDITY 1117080198] UIDs valid
- OK [UIDNEXT 1700] Predicted next UID x OK [READ-WRITE] Select completed. x SEARCH ALL
- SEARCH 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 x OK Search completed.
Looks like indexes got broken. Delete .imap.index* files.
That did the trick! I was sure there would be a simple solution like that. Thanks a million!
Any ideas what might have broken the indices? Known issue with .99?
I don't remember seeing the exact same problem before, but the index file code has been completely rewritten since 0.99. So there's not much point in trying to debug 0.99 problems anymore.
participants (3)
-
Mark Adams
-
Timo Sirainen
-
William Lott