[Dovecot] Force "lower case" Folder Creation?

Rich, Whidbey Telecom richs at whidbey.net
Wed Feb 28 20:57:29 UTC 2007


On Feb 28, 2007, at 12:38 PM, Troy Engel wrote:

> Rich, Whidbey Telecom wrote:
>> However, the case-sensitive nature of our ext3 filesystem means  
>> that a message destined to "topic" won't deliver to a user's  
>> "Topic" folder.   For example, if a user creates a "Topic" folder,  
>> and gives "user+Topic at domain.com" to a web form that lower-cases  
>> it, delivery is deferred.
>
> While way off topic in this list, why not just do this via the Exim  
> filtering? I'll make two assumptions:
>
> - the user has created a folder called 'Topic', knowing they will  
> subscribe to a webform using "user+toPiC" (example)
>
> - you employ local_part_suffix options in your 'userforward' router:
>
>   local_part_suffix = +* : -*
>   local_part_suffix_optional
>
> Exim filtering will disregard case if the testing condition is  
> lowercase, but regard it if it's upper case. A pseudo filter (going  
> off the top of my head) for a user might look like:
>
>   if
>    $local_part_suffix is "+Topic"
>   then
>    deliver ${home}/Maildir/.Topic/
>    finish
>   endif
>
> "is" means 'Topic' will be matched without case; "IS" will try and  
> match with case sensitivity.
>
> It doesn't make sense to me to patch Dovecot (which would be  
> difficult to maintain unless it's accepted upstream) when you  
> should probably could do what you want via Exim's super-powerful  
> lingo.

Thanks Troy. That looks like it'd work, but only if you pre- 
determined which folders users could have.  We don't know the folder  
names, so "$local_part_suffix is $local_part_suffix" wouldn't really  
work.

We posted to the Exim list as well, but so far it seems no one's  
tried to do this before.

Rich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://dovecot.org/pipermail/dovecot/attachments/20070228/9624b3d2/attachment.bin 


More information about the dovecot mailing list