procmail
[Top] [All Lists]

re: Mailbox limit

2001-08-04 07:48:07
Dear Don:

1. 1024 is only used for example purposes, so If its ok with the rest of
code I'll set it to 10485760 (10Mb)
2. I do check if current size + message size is more then maxsize
(LINE 6), Don't I?

MAXSIZE=1024
BOXSIZE=`[ -f $DEFAULT ] && ls -l $DEFAULT | while read a b c d e f; do
echo $e; done || echo 0`

LINE 1    :0
LINE 2    * $ $MAXSIZE^0
LINE 3    * $ -$BOXSIZE^0
LINE 4    {
LINE 5        :0
LINE 6        * > $=
LINE 7        {
LINE 8            :0
LINE 9            * ! ^Subject.*mail delivery
LINE 10          | (formail -r -I"From: postmaster(_at_)geo(_dot_)net(_dot_)ge" 
\
LINE 11                                -I"Subject: mail delivery" \
LINE 12                                -I"Return-Path:
postmaster(_at_)geo(_dot_)net(_dot_)ge"; \
LINE 13                               echo "Mailbox full") | $SENDMAIL
-t
LINE 14          :0 E
LINE 15          /dev/null
LINE 16      }
LINE 17  }

Thank you for your answers.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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