Re: [Dovecot] Corrupt Message?

2007-10-05 Thread Timo Sirainen
On Fri, 2007-10-05 at 15:29 +0100, Daniel Watts wrote:
  ERROR: Bad or malformed request.
  Query: FETCH 549,551,555:557,563,565,567:569 (FLAGS UID RFC822.SIZE 
  INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority 
  Importance Priority Content-Type)])
  Server responded: No mailbox selected.

Squirrelmail's error handling/reporting seems to suck.

 Timo, perhaps Dovecot could give a slightly more useful 'permission 
 denied' error in these instances?

It logs:

Error: open(/home/tss/Maildir/cur/1191626926.M302220P8987.hurina,W=55:2,) 
failed: Permission denied

And client gets logged out:

* BYE Internal error occurred. Refer to server log for more information. 
[2007-10-06 04:20:47]



signature.asc
Description: This is a digitally signed message part


[Dovecot] Corrupt Message?

2007-10-04 Thread Daniel Watts

Dear List,

Am accessing dovecot imap through squirrelmail.
Squirrelmail paginates the message list into pages.

All works fine except for the page one particular email is in. When I 
try to open that page (or in fact click 'show all') the server returns:


ERROR: Bad or malformed request.
Query: FETCH 549,551,555:557,563,565,567:569 (FLAGS UID RFC822.SIZE 
INTERNALDATE BODY.PEEK[HEADER.FIELDS (Date To Cc From Subject X-Priority 
Importance Priority Content-Type)])

Server responded: No mailbox selected.

Could you possibly let me know what I should do and also how I can find 
the guilty mail file from that error? Can I just delete the email? Or is 
there a nice script to repair a dovecot maildir?


Many thanks for your advice,
Daniel

--
Squirrelmail Stable 1.4.8
PHP 5.x Hardened with Eaccelerator
Apache 2.x
Imapproxy over Dovecot/Maildir
all running on Gentoo Linux
for ~5,000 users.