procmail
[Top] [All Lists]

Re: testing the size of the header

2008-01-29 14:45:47
At 16:33 2008-01-29 -0500, R.G. Ball wrote:
Is there an easy test for the overall size in bytes of the header? I'm
getting some messages with enormous lists of recipients (from an Exchange
server natch) and when I try and forward these to an older machine for
reading they are getting rejected because the header is too big. I can
count all the recipients and use that but I thought I'd ask if anyone
knows a simpler way of determining just the header size.

* H > 5000

would evaluate true if the header size exceeds 5000 bytes.

* B < 1000

would evaluate true if the body size is less than 1000 bytes.

* > 5000

true if the ENTIRE message (header and body) is over 5000 bytes.


When you have some leisure time:

'man procmailrc' and 'man procmailex'

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.

____________________________________________________________
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

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