On Monday, Jul 28, 2003, at 13:31 US/Central, Ricardo Kleemann wrote:

Hello,

I created a shared folders directory and inside that created
a shared folder. These are the commands I used:

/usr/lib/courier/bin/maildirmake -S
/var/homes/shared_folders
/usr/lib/courier/bin/maildirmake -s write -f test
/var/homes/shared_folders

[...]

Then I created an /etc/courier/maildirshared file, its
contents:
test      /var/homes/shared_folders/.test


Now I'm not sure how I can actually access that shared folder from any account? I've tried issuing the command "SELECT shared.test", and "SELECT test", and LIST "shared" "*" but none of them seem to recognize the shared folder.

What is the correct way to configure and access the shared
folder?

Thanks
Ricardo


I believe you used the wrong folder name in the maildirshared file. Unless I'm mistaken, it must be the name of the "shared maildir" (shared_folders), not of the "public folder" (test) that you created *inside* of it.

And unless you want your test folder to show up as "shared.test.test" during a 'LIST "" "*"' command, I'd suggest giving it a name like "systemwide" or "public" or something to denote it as different from any other shared maildirs that users (assuming they have access) might create for themselves -- using "public" would then let it appear as "shared.public.test" instead of "shared.test.test".

Also, of your three attempts to select or list the box, "SELECT shared.test" would have (I believe) failed due to the fact that shared.test is marked as "\NoSelect" (note the first "select" in my example session below). And "SELECT test" would not have worked since there is no "test" hierarchy for it to find anything in (and if there were, it would probably be marked as \NoSelect anyway, like "shared" is). However, the other one (LIST shared *) should work when you have it all configured properly.

HTH.

-jab


Examples of setup cmds and subsequent imap session follow:



maildirmake -S /Users/james/tmp/Shared maildirmake -s read -f readonly /Users/james/tmp/Shared maildirmake -s group -f grouponly /Users/james/tmp/Shared


echo "oogabooga /Users/james/tmp/Shared" \ | cat > /usr/lib/courier/etc/maildirshared


[pcp557676pcs:~] james% telnet 0 143
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
* OK [CAPABILITY SMAP1 IMAP4rev1 NAMESPACE CHILDREN QUOTA UIDPLUS SMAP1 KEYWORDS] Courier-IMAP ready. Copyright 1998-2003 Double Precision, Inc. See COPYING for distribution information.
. login james XXPASSWORDXX
. OK LOGIN Ok.
' select shared.oogabooga
' NO Mailbox does not exist, or must be subscribed to.
' list "" "*"
* LIST (\HasNoChildren) "." "shared.oogabooga.readonly"
* LIST (\HasNoChildren) "." "shared.oogabooga.grouponly"
* LIST (\HasNoChildren) "." "INBOX.Whacked"
* LIST (\HasNoChildren) "." "INBOX.Trash"
* LIST (\HasNoChildren) "." "INBOX.Sent.2003.04-Apr"
* LIST (\HasChildren) "." "INBOX.Sent"
* LIST (\HasNoChildren) "." "INBOX.Drafts"
* LIST (\Unmarked \HasChildren) "." "INBOX"
* LIST (\Noselect \HasChildren) "." "shared.oogabooga"
* LIST (\Noselect \HasChildren) "." "shared"
* LIST (\Noselect \HasChildren) "." "INBOX.Sent.2003"
' OK LIST completed
, select shared.oogabooga.readonly
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1052707595] Ok
, OK [READ-WRITE] Ok
. logout
* BYE Courier-IMAP server shutting down
. OK LOGOUT completed
Connection closed by foreign host.
[pcp557676pcs:~] james%




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to