Hi

The sample you provided works for a "courier-{user}-default" file but
not a "courier-default" file.

courier-{user}-default is run under the {user} account

courier-default is run under the courier daemon account (i.e. courier)

Since any mail delivery to a Maildir by the courier-default file will
only be readable by the courier daemon account, what use is a
courier-default file?




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Sam
Varshavchik
Sent: Wednesday, January 02, 2002 3:32 PM
To: [EMAIL PROTECTED]
Subject: [courier-users] Re: IMAP Folders


[EMAIL PROTECTED] writes: 

> Hi
> 
> When an new IMAP folder is created from an IMAP client connecting to 
> MS Exchange, the folder is assigned an email address (just like a 
> public folder).
> 
> Does courier have this functionality?
> 
> If it not, does the source code need to be modified or can I add a 
> script somewhere that courier will execute when a new folder is 
> created?

You can implement this using an intelligent .courier-default file (all
on 
one line): 

|| x=`echo "$DEFAULT" | tr '/' '.'`; test -d "$HOME/Maildir/.$x" || exit

|| 0;
echo "$HOME/Maildir/.$x/." ; exit 99 

Haven't really tested this, but it should work.  Haven't also looked at
this 
closely, but it should be safe from envelope-based attacks.  A shell
script 
is also not a terribly efficient way to go about this, but you can
always 
write some tiny executable binary that does the same thing. 

To send mail to <[EMAIL PROTECTED]>'s folder INBOX.foo.bar, the address
would 
be <[EMAIL PROTECTED]>, or <[EMAIL PROTECTED]> 

 


-- 
Sam 


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to