alan walters wrote:
I have been reading literature for the past few weeks about creating
shared imap folders. I am hoping someone could shed a little light on it
for me

In understand the maildirmake -S will make my folder shared.

My point of confusion lies in how this works with my present system.

At the moment postfix is using  virtual to make my maildir's

As mentioned already, maildirmake -S is for filesystem based shared folders, not virtual shared folders.


So my tree looks like so

/home/vmail  (home)
/(home)/test.com/       (domain)
/(home/(domain)/test  (user)
/(home/(domain)/(user)/tmp
/(home/(domain)/(user)/cur  and some courier files


So my confusion lies in the how to's that I have seen seem to Layout
similar to below. But I don't seem to have maildir folders?

# maildirmake /var/amavis/.maildir
# maildirmake -S /var/amavis/.maildir/Bayes # maildirmake -s write -f
spam /var/amavis/.maildir/Bayes # maildirmake -s write -f ham
/var/amavis/.maildir/Bayes # maildirmake -s write -f redeliver
/var/amavis/.maildir/Bayes


If I want to make a list of shared folders with my layout how should I
go about it in the most consistent way with my present configs.

I'll give a description of how to set up filesystem based shares (I haven't done virtual shares before) on my system. You can apply for your situation.

From README.sharedfolders:

Use the -S option to maildirmake to create a maildir that can contain sharable folders. Use the -s and -f options to maildirmake to create sharable folders. The same sharable maildir may contain multiple sharable folders with different access permissions, as selected by the -s option. Use the --add option to install a link from a regular maildir to a sharable maildir. Afterwards, IMAP clients will be able to subscribe to folders in the sharable maildir.
Use the --del option to remove a link.

[EMAIL PROTECTED]:~$ maildirmake -S /home/chris/shared-bayes
[EMAIL PROTECTED]:~$ maildirmake -s write -f spam /home/chris/shared-bayes/
[EMAIL PROTECTED]:~$ maildirmake -s write -f ham /home/chris/shared-bayes/
[EMAIL PROTECTED]:~$ maildirmake -s write -f redeliver /home/chris/shared-bayes/

Of course, you can put the shared folder anywhere you want, but for my example, I didn't feel like worrying about permissions.

Within shared-bayes I now have: cur .ham new .redeliver .spam tmp

Next add for each user that needs to access share:

[EMAIL PROTECTED]:~$ maildirmake --add bayes=/home/chris/shared-bayes/ /home/chris/Maildir/

I now have a line in /home/chris/Maildir/shared-maildirs that says:
bayes   /home/chris/shared-bayes/

You will need to repeat the maildirmake --add line for each user that wants to access the share.

All that is left is to subscribe to the shared folder from your e-mail user agent. In Thunderbird, it is set up already. I now have a folder structure:

shared
  bayes
    ham
    redeliver
    spam

From your setup, you should be able to set up as:

# maildirmake -S /var/amavis/Bayes
# maildirmake -s write -f spam /var/amavis/Bayes
# maildirmake -s write -f ham /var/amavis/Bayes
# maildirmake -s write -f redeliver /var/amavis/Bayes
# maildirmake --add bayes=/var/amavis/Bayes /(home/(domain)/(user)

If you want virtual shares, then you don't use the maildirmake command...and that's all I know about that.

--
Good day, eh.
Chris



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to