procmail
[Top] [All Lists]

RE: Forcing permissions on mail files

2008-09-22 23:39:34
http://partmaps.org/era/procmail/quickref.html#umask



-- 
Regards
Nick Sharp

Valuation Exchange
Network administration - Systems

e nick(_dot_)sharp(_at_)valex(_dot_)com(_dot_)au
p 08 8373 5522

--

This email (including any attachments) is intended only to be read or used
by the addressee. It contains information that may be confidential and
legally privileged. If you are not the addressee, or you have received this
email by mistake, you must not disclose, copy or distribute it or use the
information contained in it (or any attachments) in any way. If you have
received this message in error please notify Megaw and Hogg National Valuers
by return email and then delete this message and any copies of it.
Please also contact us if you have any doubts about the authenticity of this
email. If you have received this email as a result of subscribing to a
particular distribution list and no longer wish to be included in this or
any other list(s), please send an email to 
admin(_at_)megawhogg(_dot_)com(_dot_)au with the
'unsubscribe' in the subject field and details of the list(s) from which you
wish to unsubscribe. This email (including any attachments) may contain
computer viruses or other defects. It is your responsibility to check this
email and its attachments for viruses and defects before opening or
forwarding them, and Megaw and Hogg National Valuers is not liable for any
loss or damage that may be caused by any such viruses or defects.

-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE] On Behalf Of 
Nigel Allen
Sent: Tuesday, 23 September 2008 12:32 PM
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Forcing permissions on mail files

Hi

Having wrestled with procmail for the last few weeks, and with much 
appreciated assistance of this group, I have come up with the following 
recipe:

SHELL=/bin/bash              
MAILDIR=${HOME}/Maildir
DEFAULT=$MAILDIR/
#LOGFLDR=${MAILDIR}/procmail.log
#LOG="--- Logging ${LOGFLDR} for ${LOGNAME}, "

:0
* ^X-Strata-Plan: [     ]*\/.*
{
   FLDR="$MATCH"

   :0
   * FLDR ?? < 6
   {
      FLDR="      $FLDR"

      :0
      * FLDR ?? ()\/......$
      {
      }
   }

   :0
   {
      FLDR=".$MATCH"
   }

   :0
   * ? test -d "$FLDR"
   {
      :0:
      "$FLDR/"
   }
   :0:
   ! bad_folder
}
and everything is perfect in the world.

Except for one thing. All the mail messages that get put into $FLDR/ 
have the permissions set to 600 and I need them to be 660. I have set 
g+s on the Maildir and the Maildir/cur folder but it appears that 
procmail ignores this.

Can anyone tell me what is the best way of having procmail create the 
messages as 660? I need them to be this way as they are shared folders 
with all users being members of the "group".

Thanks and Regards

Nigel.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>