What to do when some IMAP folders cannot be opened

Recently one of the users of an IMAP server (Dovecot) had problems with accessing his inbox. Other folders worked fine, this one didn’t.

The following messages appeared in the logs:

mail-server imap(username): file imap-bodystructure.c: line 278 (part_parse_headers): assertion failed: (part->physical_pos >= input->v_offset - start_offset)
mail-server dovecot: child 16330 (imap) killed with signal 6

A quick way to sort out the problem is to get into the user’s mail folder and remove all .imap.index.* files. Dovecot (I don’t know how other IMAP servers behave) is able to regenerate those files upon next connection. Also, in my case removing the index files didn’t remove messages from the folder. It only removed the problem ;)

PS. Google returns one result when asked about the error quoted above: http://d.hatena.ne.jp/tera-p/20050428 – thanks, Google Translate! :D


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s