procmail
[Top] [All Lists]

executing a program on match

2004-08-28 06:33:14
Hello,

Could this recipe be more robust? (See notes in PS)

SHELL=/bin/bash
VPOPDIR=/home/vpopmail/domains
DOMAIN=/mydomain
ACCT=/user
MAILBAG=$VPOPDIR$DOMAIN$ACCT/Maildir
MAILDIR=$MAILBAG

 [snip]

:0
* ! LISTNAME ?? ^^^^
{
 MAKENEWDIR=`test -d $MAILBAG/.$LISTNAME  || maildirmake -f $LISTNAME
$MAILBAG`

 :0
 .${LISTNAME}/new
}

 [snip]

Thanks,

Bill


P.S. Notes:

LISTNAME  is obviously the name of some mailing list.
MAKENEWDIR is never used anywhere else.

MAILDIRMAKE(1)

NAME
      maildirmake - create maildirs and maildir folders

SYNOPSIS
      maildirmake [ options ... ] maildir

DESCRIPTION
      The  maildirmake  command  creates maildirs, and maildir
folders.  This
      documentation describes the maildirmake command from the
Courier  mail
      server,  which  creates  an  extended  form of maildirs that
implements
      additional extensions beyond the basic  maildir  properties
that  were
      first implemented in the Qmail mail server.

...



____________________________________________________________
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