procmail
[Top] [All Lists]

Re: Mailbox limit

2001-08-03 09:29:23
George asked Don,

| Thank you for your answer. I am afraid I dont understand the following
lines
| in your recipe. can you please explain them or lem me know where I can
read
| some docs on them
|
| > :0
| > * $ $MAXSIZE^0
| > * $ -$BOXSIZE^0

Scoring is explained in the procmailsc(5) manual page.

By the way, piping ls -l to a read loop or to gawk to get the current size
of the mailspool is not a great way to do it.

 BOXSIZE=`wc -c < $ORGMAIL`

is a lot more efficient.  (Yes, folks, wc can read from a file named on its
command line as well as from stdin, but then it prints the filename on
stdout; when it reads from stdin, it doesn't print a filename.)

_______________________________________________
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>