Hello, i want to migrate from UW-Imap to dovecot, but want to avoid changing clients (that would be really hard to do). All my users have their Mailboxes in ~/Mail. My idea would be now to strip off "Mail" from the imap commands, so that both a client which prepends "Mail" as well as one who doesn't would see the same mailboxes. Can somebody give me a hint where in the dovecot source I could do that stripping (at best some central function, so this stripping has to be done just one time). I would be glad to make the changes and then to contribute that change, I just need a hint where in the sources I will find the right place. Sincerly, Klaus Steinberger -- Klaus Steinberger Maier-Leibnitz Labor Phone: (+49 89)289 14287 Am Coulombwall 6, D-85748 Garching, Germany FAX: (+49 89)289 14280 EMail: Klaus.Steinberger at Physik.Uni-Muenchen.DE URL: http://www.physik.uni-muenchen.de/~k2/ In a world without Walls and Fences, who needs Windows and Gates
On Tue, 2004-07-20 at 16:39, Klaus Steinberger wrote:> All my users have their Mailboxes in ~/Mail. My idea would be now to strip off > "Mail" from the imap commands, so that both a client which prepends "Mail" as > well as one who doesn't would see the same mailboxes. > > Can somebody give me a hint where in the dovecot source I could do that > stripping (at best some central function, so this stripping has to be done just > one time). I would be glad to make the changes and then to contribute that > change, I just need a hint where in the sources I will find the right place.With 0.99.10 you'd have to fix functions in src/lib-storage/index/mbox/mbox-storage.c With 1.0-tests it's possible by defining namespaces: namespace private { separator = / inbox = yes prefix } namespace private { separator = / prefix = mail/ hidden = yes } namespace private { separator = / prefix = ~/mail/ hidden = yes } namespace private { separator = / prefix = ~%u/mail/ hidden = yes } -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20040720/2966f310/attachment-0001.bin>
Hello,> With 1.0-tests it's possible by defining namespaces:That sounds like I should give 1.0-tests a try. Sincerly, Klaus -- Klaus Steinberger Maier-Leibnitz Labor Phone: (+49 89)289 14287 Am Coulombwall 6, D-85748 Garching, Germany FAX: (+49 89)289 14280 EMail: Klaus.Steinberger at Physik.Uni-Muenchen.DE URL: http://www.physik.uni-muenchen.de/~k2/ In a world without Walls and Fences, who needs Windows and Gates