[Dovecot] Caseless folder delivery?

Steffen Kaiser skdovecot at smail.inf.fh-bonn-rhein-sieg.de
Mon Jun 16 10:20:59 EEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, 14 Jun 2008, Jay Levitt wrote:

> For instance, ideally, I wouldn't have to create the "dovecot: Dovecot" 
> entry; mail to my lists-dovecot at jay.fm address would go into the "Dovecot" 
> folder.

Well, Unix filesystems tned to be case-sensitive, hence, when mailing to
lists-dOvCot@ should deliver also know to use "Dovecot"? I do not know 
nothing about exim, but Dovecot deliver itself cannot do this, it had to 
test all combinations of case of letters otherwise.

However, deliver is programmed straight forward, there is an easy to find 
spot, where the actual deliver of the mail takes palce. You could add some 
code there, e.g.:

Check if you can open a mailbox map file in the home directory of the
user (or mailbox root dir), if so compare any line with the destination
case-insensitively; on match, use the name from the file.
To scan through the directory all the time, can be very time consuming.

Or, more easy but fixed:
Mangle the argument of -m (if it's not INBOX), e.g. by lower-caseing all 
but the first character or something like that.

The other alternative is to switch to a filesystem that does not enforce
case-senstivity, e.g. "case-preserving" or what it's called, e.g. NTFS,
FAT32 or Apple HFS+.  Well, you do not want to do this, I guess.
Hey, out of curiosity, I googled and found:
http://freshmeat.net/projects/ciopfs/?branch_id=74414&release_id=277441

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIVhRdVJMDrex4hCIRAjAlAJ4pc4J1aWRYUD5qw9PYiW3kSBjkWQCfSDN2
B+7z6L8UJ4ERqEv/ZNsI9VQ=
=OOgj
-----END PGP SIGNATURE-----


More information about the dovecot mailing list