Timo Sirainen wrote:
On Tue, 2005-08-16 at 07:37 -0700, Marc Perkel wrote:
  
I'm using Exim for my MTA. I set up a trick to deliver directly to IMAP 
folders by using a "-" to separate the name from the folder.

user-folder@domain.com

This delivers to user@domain.com and puts it in the IMAP "folder" for 
that user. The folder has to already exists for this to work. It's very 
popular with my users too because it's like each folder has it's own 
email address.

I suggest Dovecot support this idea, but it would need some 
configuration settings. My choice of a single "-" for the delimiter 
between user and folder probably wasn't the best choice. So the 
delimiter needs to be setable.
    

I think the best way to implement this would be to code it using a Sieve
script. I'm not sure if it's powerful enough without extensions though
(I've only seen simple Sieve scripts), but I think that's the right way
to do it..

  
Timo,

Would a single Sieve script be able to do this for all users. I'm not familiar with Sieve so would anyone have an example of how to do this?

If sieve can't do this for everyone in a single script then I'd like you to keep thinking about my proposal for direct delivery to folders with some kind of user[delimiter]folder@domain.com syntax. I'm using that and it is very powerful.