[H-GEN] Courier IMAP shared folders

Harry Phillips hphillips at 4ward.com.au
Tue Oct 8 20:35:54 EDT 2002


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

> I found how to do umask for procmail, you add a line to the
> ~/.procmailrc UMASK=007.
>
> I did that and found that the file that gets created in the 'new'
> sub-dir has file permission's of -rw-rw----
>
> When I check for new mail I can tell that there is a new message in
> that folder, however when I click on that folder there doesn't appear
> to be any new messages. After checking it out it appears the person
> linking in to the shared folder can't get the mail to move from the
> 'new' dir to the 'cur' dir.
>
> I may have to check out the Courier team to get into the inner
> workings of Courier to work out why when given all the correct
> permission's that it doesn't move the mail like it should.
>
> I will mail the results of what I find.

I found out what it was.

I sent an e-mail to the Courier mailing list and basically got a reply
from the head honco that it couldn't be done. Well I didn't believe that
because IMAP is just a way to organise, view, store and move files around
using a mail client. (bit simplistic but works for me).

I tried moving the files manually and got an error message. I knew I had
enough rights to the file so was a little confused.

I then checked the /new and /cur directories and found that they had
permission's of drwxrwxrwt. I didn't know what the 't' was, after 5
minutes of googling I found it is the sticky bit.

I changed the permission's on the /new /cur and /tmp to 770, now userB
can subscribe to the shared folder exactly the same way as a local
folder. It appears as a folder on the same level as the Inbox just like
all the others.

With the directory rights of /new /cur and /tmp set to 770 userB is now
able to tell that a new message has arrived. When they select that folder
it automatically moves the message from the /new to the /cur and
everything works exactly like I want it to.

The only limitation to this setup is if userB to creates a subfolder of
the shared one. It will of course creates new subfolder in the maildir of
userB and no other users sharing the folder will be able to see the
subfolder.

I just love working with linux, it is so powerful and flexible even
someone such as me can get a program to work in a way that even the
original programmer says can't be done. I get it to do what I want it to
do, not what some multi-national monopoly dictates that they think I
should do.

Regards
Harry


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.394 / Virus Database: 224 - Release Date: 3/10/02


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list