procmail
[Top] [All Lists]

rotate mailbox based on size?

2003-12-28 14:22:39

Hello to all,

I am searching for recipe that can rotate a mailbox based on mailbox
size. This is good to mailing lists.

Supose that I want to establish a limit of 1MB for each freebsd list
mailbox, and then rotate each ${MATCH} to ${MATCH}.old.

It is possible to implement it on recipe bellow?


# FreeBSD Lists
:0
* ^Sender:.owner-\/[^(_at_)]+@FreeBSD\.ORG
{
        LISTNAME=${MATCH}
        :0
        * ^Sender:(_dot_)owner-cvs-src(_at_)freebsd\(_dot_)org
        {
                :0 :
                * ^X-FreeBSD-CVS-Branch: RELENG_4
                $LISTSDIR/FreeBSD/cvs-src_RELENG_4

                :0 :
                * ^X-FreeBSD-CVS-Branch: RELENG_5_1
                $LISTSDIR/FreeBSD/cvs-src_RELENG_5_1

                :0 :
                * ^X-FreeBSD-CVS-Branch: RELENG_5_2
                $LISTSDIR/FreeBSD/cvs-src_RELENG_5_2

                :0 :
                /dev/null
        }

        :0 :
        * LISTNAME??^\/[^(_at_)]+
        $LISTSDIR/FreeBSD/${MATCH}

Thanks very much,

        Nuno Teixeira

-- 

/*
PGP fingerprint:
C6D1 06ED EB54 A99C 6B14  6732 0A5D 810D 727D F6C6
*/

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