jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit 79ecdf9e5222d47c6699f999f3dace46027ad0d6
parent 8268da1075fc85c5f793d7ce9a55aa3461aa7bce
Author: Jaromil <jaromil@dyne.org>
Date:   Fri, 11 May 2012 22:44:07 +0200

fixed mkdir calls

Diffstat:
Msrc/postino | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/postino b/src/postino @@ -82,9 +82,9 @@ source $HOME/Mail/Configuration.txt # default working dir if [ -z $POSTINO_DIR ]; then - WORKDIR=$HOME/.postino + export WORKDIR=$HOME/.postino else - WORKDIR=$POSTINO_DIR + export WORKDIR=$POSTINO_DIR fi @@ -97,8 +97,8 @@ if [ $? != 0 ]; then fi # make sure we have a temp and cache dir -$mkdir $WORKDIR/tmp -$mkdir $WORKDIR/cache +${=mkdir} "$WORKDIR/tmp" +${=mkdir} "$WORKDIR/cache" # make sure tmp is wiped from sensitive data in case of sigINT @@ -173,9 +173,9 @@ maildirmake() { return fi - $mkdir ${1}/cur - $mkdir ${1}/new - $mkdir ${1}/tmp + ${=mkdir} ${1}/cur + ${=mkdir} ${1}/new + ${=mkdir} ${1}/tmp } @@ -187,7 +187,7 @@ queue() { # add mails to the sendout queue umask 007 - $mkdir $MAILDIRS/outbox + ${=mkdir} $MAILDIRS/outbox cd $MAILDIRS/outbox || return 1 notice "Adding mail to the outbox queue" # Create new unique filenames of the form @@ -333,18 +333,18 @@ update() { func "MAILDIRS: $MAILDIRS" # make sure maildirs where to put mails exist - $mkdir $MAILDIRS + ${=mkdir} $MAILDIRS maildirmake $MAILDIRS/known maildirmake $MAILDIRS/sent maildirmake $MAILDIRS/priv maildirmake $MAILDIRS/postponed maildirmake $MAILDIRS/unsorted - $mkdir $MAILDIRS/outbox + ${=mkdir} $MAILDIRS/outbox ###### # MUTT if ! [ -z $MUTTDIR ]; then - $mkdir $MUTTDIR + ${=mkdir} $MUTTDIR rm -f $MUTTDIR/rc cat<<EOF > $MUTTDIR/rc # mutt config generated by postino @@ -383,7 +383,7 @@ EOF ########## # PROCMAIL - $mkdir $PROCMAILDIR + ${=mkdir} $PROCMAILDIR rm -f $PROCMAILDIR/rc touch $PROCMAILDIR/rc cat<<EOF >> $PROCMAILDIR/rc