Dear Sam , 
       Thanks for your great help . and I using the following scripts to " 
authenumerate "  my LDAP account information to " Shared Folder index " which's 
locate in /usr/lib/courier-imap/etc/shared/index. 
 
Thanks alot .
 
=============== AUTHENUMERATE_START=====================
 
#/bin/shsysconfdir="/usr/lib/courier-imap/etc"index="/usr/lib/courier-imap/etc/shared"sbindir="/usr/lib/courier-imap/sbin"
rm -rf $sysconfdir/shared.tmpmkdir $sysconfdir/shared.tmp || exit 1
$sbindir/authenumerate -s >$sysconfdir/shared.tmp/index || exit 1
$sbindir/sharedindexinstall
perl -p -e 's/([^\s]+)[EMAIL PROTECTED]/$n=$1; $n =~ tr%.%_%; $n/e'  
$index/index >> $index/index2 || exit 1
cp -Rf $index/index2 $index/index
rm -rf $index/index2
=====================================================> From: [EMAIL PROTECTED]> 
To: [email protected]> Date: Fri, 11 May 2007 19:06:17 -0400> 
Subject: Re: [courier-users] About Courer-IMAP Virtual Shared Folder Setup.> > 
Data Leung writes:> > > > But I got the other question :> >  > > After I run 
authenumerate_start , there willing auto_generate the index > > file like this 
: > > [EMAIL PROTECTED]   505     505     /home/vmail/domains     > > 
test.com/julie.lee/> > <URL:mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]       
505     505     > > /home/vmail/domains     test.com/apple.lee/> >  > > Is 
there anyway OR a scripts could " Auto > > replace " <URL:mailto:[EMAIL 
PROTECTED]>[EMAIL PROTECTED] TO Julie_Lee ? > >  > > I known that's a bit crazy 
, but that's inconvenients for administrator to > > replace hundred mailbox one 
by one . > > This is what shell scripts or Perl scripts are for.> > Write a 
script to post-process the output of authenumerate, in w
 hatever > manner you wish.> > Something like:> > perl -p -e 's/([^\s]+)[EMAIL 
PROTECTED]/$n=$1; $n =~ tr%.%_%; $n/e'> 
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to