[Dovecot] filtering out LIST cruft?
In planning our migration, I've noticed that lots of users have bits of lint in their ~/mail and/or ~/Mail.
For example-- for an mbox called "blah" we may see:
blah
blah.msf (from Thunderbird)
.blah.summary (from... I'm not sure, dtmail maybe)
.blah_SIMS_index0003 (from our old IMAP server).
When the user goes to "subscribe" they are often overloaded with too many items to choose from-- because all of these files are selectable in the UI-- LIST happily returns them.
Is there a way to get dovecot to skip over these, by regex? Could it optionally "taste" files to see if they look like mboxes? I looked at the wiki and the source but didn't find anything.
In the absence of this feature, I wonder how other sites have handled this? Obviously I can do some cleanup during migration, but I find that those pesky msf files like to come back.
-dp
-- Daniel Price - Solaris Kernel Engineering - dp@eng.sun.com - blogs.sun.com/dp
On 17.2.2007, at 1.14, Dan Price wrote:
In the absence of this feature, I wonder how other sites have handled this? Obviously I can do some cleanup during migration, but I find that those pesky msf files like to come back.
I'd suggest writing a script that detects what files are mboxes and
move all of them under ~/mail, and make Dovecot serve only mailboxes
in ~/mail. Then add enough hidden namespaces to make existing client
configurations work.
It would be possible to write a plugin that filters the LIST output,
but I think that's way too much trouble and kind of kludgy.
participants (2)
-
Dan Price
-
Timo Sirainen