[Dovecot] patch: mailboxcasecmp()

Timo Sirainen tss at iki.fi
Mon Oct 9 10:57:29 UTC 2006


On Mon, 2006-10-09 at 11:43 +0200, Johannes Berg wrote:
> On Mon, 2006-10-09 at 11:42 +0300, Timo Sirainen wrote:
> 
> > Anyway, I don't know if I want to support case-insensitive filesystems
> > right now.
> 
> He doesn't want to. He just wants to be able to use this in the plugin
> code (note how dovecot itself isn't modified) to allow a user to filter
> to "Spam" or "spam" or "SPAM" depending on what the user wants, etc.

Oh. I didn't look at it that closely.

But I'm still not sure what you're going to do with a case-insensitive
mailbox comparision function. If you wanted to open a Spam mailbox
case-insensitively I guess you'd have to list all the mailboxes and then
compare each of them case-insensitively? Or hopefully you have something
else less ugly in mind? :)

Anyway I'd rather not change the code until I can figure out if the
change is actually going to be a good idea. If you just want it to work
now, you could just as well call strcasecmp() directly since the mailbox
name comparing code won't be changed anytime soon..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061009/eb8e830b/attachment.pgp 


More information about the dovecot mailing list