This is a discussion on Re: [courier-users] About Courer-IMAP Virtual Shared Folder Setup. within the Courier-Imap forums, part of the Mail Servers and Related category; --===============0550739176== Content-Type: multipart/alternative; boundary="_19ac5908-2a07-4f7e-8f9d-767a934f59b0_" --_19ac5908-2a07-4f7e-8f9d-767a934f59b0_ Content-Type: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0550739176==
Content-Type: multipart/alternative; boundary="_19ac5908-2a07-4f7e-8f9d-767a934f59b0_" --_19ac5908-2a07-4f7e-8f9d-767a934f59b0_ Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 8bit 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]+)\@[^\s]*/$n=$1; $n =~ tr%.%_%; $n/e' $index/index >> $index/index2 || exit 1 cp -Rf $index/index2 $index/index rm -rf $index/index2 ================================================== ===> From: mrsam@courier-mta.com> To: courier-users@lists.sourceforge.net> 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 : > > julie.lee@test.com 505 505 /home/vmail/domains > > test.com/julie.lee/> > <URL:mailto:apple.lee@test.com>apple.lee@test.co m 505 505 > > /home/vmail/domains test.com/apple.lee/> > > > Is there anyway OR a scripts could " Auto > > replace " <URL:mailto:Julie.Lee@test.com>Julie.Lee@test.co m 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]+)\@[^\s]*/$n=$1; $n =~ tr%.%_%; $n/e'> __________________________________________________ _______________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q...n-US&form=QBRE --_19ac5908-2a07-4f7e-8f9d-767a934f59b0_ Content-Type: text/html; charset="big5" Content-Transfer-Encoding: 8bit <html> <head> <style> P { margin:0px; padding:0px } body { FONT-SIZE: 10pt; FONT-FAMILY:Tahoma } </style> </head> <body> Dear Sam , <BR> 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. <BR> <BR> Thanks alot .<BR> <BR> =============== AUTHENUMERATE_START=====================<BR> <BR> #/bin/sh<BR>sysconfdir="/usr/lib/courier-imap/etc"<BR>index="/usr/lib/courier-imap/etc/shared"<BR>sbindir="/usr/lib/courier-imap/sbin"<BR> rm -rf $sysconfdir/shared.tmp<BR>mkdir $sysconfdir/shared.tmp || exit 1<BR> $sbindir/authenumerate -s >$sysconfdir/shared.tmp/index || exit 1<BR> $sbindir/sharedindexinstall<BR> perl -p -e 's/([^\s]+)\@[^\s]*/$n=$1; $n =~ tr%.%_%; $n/e' $index/index >> $index/index2 || exit 1<BR> cp -Rf $index/index2 $index/index<BR> rm -rf $index/index2<BR> ================================================== ===<BR><BR>> From: mrsam@courier-mta.com<BR>> To: courier-users@lists.sourceforge.net<BR>> Date: Fri, 11 May 2007 19:06:17 -0400<BR>> Subject: Re: [courier-users] About Courer-IMAP Virtual Shared Folder Setup.<BR>> <BR>> Data Leung writes:<BR>> <BR>> <BR>> > But I got the other question :<BR>> > <BR>> > After I run authenumerate_start , there willing auto_generate the index <BR>> > file like this : <BR>> > julie.lee@test.com 505 505 /home/vmail/domains <BR>> > test.com/julie.lee/<BR>> > <URL:mailto:apple.lee@test.com>apple.lee@tes t.com 505 505 <BR>> > /home/vmail/domains test.com/apple.lee/<BR>> > <BR>> > Is there anyway OR a scripts coul d " Auto <BR>> > replace " <URL:mailto:Julie.Lee@test. com>Julie.Lee@test.com TO Julie_Lee ? <BR>> > <BR>> > I known that's a bit crazy , but that's inconvenients for administrator to <BR>> > replace hundred mailbox one by one . <BR>> <BR>> This is what shell scripts or Perl scripts are for.<BR>> <BR>> Write a script to post-process the output of authenumerate, in whatever <BR>> manner you wish.<BR>> <BR>> Something like:<BR>> <BR>> perl -p -e 's/([^\s]+)\@[^\s]*/$n=$1; $n =~ tr%.%_%; $n/e'<BR>> <BR><BR><br /><hr />Explore the seven wonders of the world <a href='http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body> </html> --_19ac5908-2a07-4f7e-8f9d-767a934f59b0_-- --===============0550739176== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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/ --===============0550739176== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users --===============0550739176==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|