Re: [courier-users] About Courer-IMAP Virtual Shared Folder Setup.

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: ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-12-2007
Data Leung
 
Posts: n/a
Default Re: [courier-users] About Courer-IMAP Virtual Shared Folder Setup.

--===============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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks for your great help . and I using the following scripts to " authenumerate "&nbsp; my LDAP account information to " Shared Folder index " which's locate in /usr/lib/courier-imap/etc/shared/index. <BR>
&nbsp;<BR>
Thanks alot .<BR>
&nbsp;<BR>
=============== AUTHENUMERATE_START=====================<BR>
&nbsp;<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 &gt;$sysconfdir/shared.tmp/index || exit 1<BR>
$sbindir/sharedindexinstall<BR>
perl -p -e 's/([^\s]+)\@[^\s]*/$n=$1; $n =~ tr%.%_%; $n/e'&nbsp; $index/index &gt;&gt; $index/index2 || exit 1<BR>
cp -Rf $index/index2 $index/index<BR>
rm -rf $index/index2<BR>
================================================== ===<BR><BR>&gt; From: mrsam@courier-mta.com<BR>&gt; To: courier-users@lists.sourceforge.net<BR>&gt; Date: Fri, 11 May 2007 19:06:17 -0400<BR>&gt; Subject: Re: [courier-users] About Courer-IMAP Virtual Shared Folder Setup.<BR>&gt; <BR>&gt; Data Leung writes:<BR>&gt; <BR>&gt; <BR>&gt; &gt; But I got the other question :<BR>&gt; &gt; &nbsp;<BR>&gt; &gt; After I run authenumerate_start , there willing auto_generate the index <BR>&gt; &gt; file like this : <BR>&gt; &gt; julie.lee@test.com&nbsp; &nbsp;505&nbsp;&nbsp;&nbsp;&nbsp; 505&nbsp;&nbsp;&nbsp;&nbsp; /home/vmail/domains&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; &gt; test.com/julie.lee/<BR>&gt; &gt; &lt;URL:mailto:apple.lee@test.com&gt;apple.lee@tes t.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 505&nbsp;&nbsp;&nbsp;&nbsp; 505&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; &gt; /home/vmail/domains&nbsp;&nbsp;&nbsp;&nbsp; test.com/apple.lee/<BR>&gt; &gt; &nbsp;<BR>&gt; &gt; Is there anyway OR a scripts coul
d " Auto <BR>&gt; &gt; replace&nbsp;"&nbsp;&lt;URL:mailto:Julie.Lee@test. com&gt;Julie.Lee@test.com&nbsp;TO&nbsp;Julie_Lee ? <BR>&gt; &gt; &nbsp;<BR>&gt; &gt; I known that's&nbsp;a bit crazy ,&nbsp;but that's inconvenients&nbsp;for&nbsp;administrator to <BR>&gt; &gt; replace&nbsp;hundred&nbsp;mailbox&nbsp;one by one . <BR>&gt; <BR>&gt; This is what shell scripts or Perl scripts are for.<BR>&gt; <BR>&gt; Write a script to post-process the output of authenumerate, in whatever <BR>&gt; manner you wish.<BR>&gt; <BR>&gt; Something like:<BR>&gt; <BR>&gt; perl -p -e 's/([^\s]+)\@[^\s]*/$n=$1; $n =~ tr%.%_%; $n/e'<BR>&gt; <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==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:12 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0