Re: maildirmake
- To: debian-devel@lists.debian.org
- Subject: Re: maildirmake
- From: Carey Evans <carey@debian.org>
- Date: 02 Feb 2000 22:10:22 +1300
- Message-id: <8790142cn5.fsf@psyche.evansnet>
- In-reply-to: Vincent Renardias's message of "Sat, 29 Jan 2000 11:48:58 +0000 (GMT)"
- References: <Pine.LNX.4.20.0001291147580.31985-100000@v2.ldsol.com>
Vincent Renardias <vincent@ldsol.com> writes:
> On Sat, 29 Jan 2000, Roland Bauerschmidt wrote:
[...]
> > #!/bin/sh
> > # maildirmake -- creates a maildir
> > mkdir -p $1/new $1/cur $1/tmp && chmod -R 700 $1
>
> Good idea. I'm going to include such a script in my next release of
> util-linux...
You can make that a bit safer like:
#!/bin/sh
umask 077
mkdir -p "$1/new" "$1/cur" "$1/tmp"
--
Carey Evans http://home.clear.net.nz/pages/c.evans/
This message was composed from the finest electrons
used by many of the world's greatest writers.
Reply to: