procmail
[Top] [All Lists]

Forcing permissions on mail files

2008-09-22 23:07:27
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

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