procmail
[Top] [All Lists]

mkdir

2000-04-26 14:04:32
From: Philip Guenther [guenther(_at_)gac(_dot_)edu]
Sent: Thursday, 16 December 1999 7:48 AM

      DIR = "$HOME/Mail/`date +%y/%h`"

      # Most efficient way to test & mkdir
      :0 ihc
      * ! ? test -d $DIR
      |mkdir -p $DIR

      # Now that it exists, do the chdir
      MAILDIR = $DIR

Hmm, I want to show here what I have, in order to ask whether
I really should change it to the "Most efficient way" shown
above.  Is there any advantage, or is mine "just as" efficient?

     :0 # no i - ignored with nested braces
     * $ ! TESTNAME ?? ^^$ACKS/([0-9]+|noacks)/
     {
        # if here, we *will* send an ack!

        :0 wic  # if needed, create today's ackdir; add sender
        * $ ! TESTNAME ?? ^^$ACKS/fullacks/
        | test -d $ACKS/$DATE || mkdir $ACKS/$DATE ;\
          some-other-action-deleted-here


I'm also especially interested in flags.  I never am sure
that I'm *really* using the most efficient ones.

Thanks, folks. :)

--
Dallman Ross
U.S. Voicemail/FAX: +1 (415) 680-2388
Residence Telephone: +49 (0) 6122 / 98 04 46
Cellular Telephone: +49 (0) 177 / 515 34 69
<dman(_at_)netcom(_dot_)com> • <dman(_at_)nomotek(_dot_)com> • 
<dman(_at_)oxon(_dot_)de>

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