--Frank Notspak wrote on 22.02.2002 10:40 -0500:
> I am trying maildrop lookup function
> if (lookup("yes", "Maildir/autoformat")) {
> xfilter aformat ....
> }
>
> But maildrop exit with error if Maildir/autopgp does not exit at all.
> Is there a way to check the existance of the file first before lookup?
This snipped creates monthly sub-folders for mailing-lists:
LIST=tolower($EXT)
YYMM=`$BIN/date "+%y%m"`
FOLDER="$LIST.$YYMM"
MKDIR=`$BIN/test -d $MAILDIR/.$FOLDER || $BIN/maildirmake -s read -f $FOLDER
$MAILDIR 2>&1`
if ( $MKDIR )
{
log "$LOCAL: MKDIR=$MKDIR FOLDER=$FOLDER"
}
> Another question: I want the mail to be still delivered if
> "xfilter aformat" fails, instead of bouncing the mail.
> I tried
> exception {
> xfilter aformat ....
> }
> exit 0
> but it does not seem to work.
xfilter fails if the process returns != 0, as documented.
This makes the integration of dcc, anomy, spamassassin etc.
with maildrop somewhat difficult.
I also would like to have the exitcode placed into $RETURNCODE.
> What is the right way to do this?
Submit nice and clean patches :)
Roland
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users