On Wed, Nov 01, 2006 at 06:18:18PM +0100, Jonas Eckerman wrote:
> >Also i need know the size of a message (i use sendmail/milter) Sendmail
> >have this data but i do not know how i can get this data.
> 
> Of course you can't do this in "filter_sender", as "filter_sender" is 
> called before your system even knows if the sender wants to send a message.

However, sensible ESMTP mailers nowadays provide a SIZE= parameter 
on the From: line. You can either parse the arguments in @ESMTPArgs,
or you can pass the {msg_size} sendmail macro to mimedefang explicitly
(then you'll have to use the -a switch on mimedefang and add
{msg_size} to the Milter.macros.envfrom).

-- 
Jan-Pieter Cornet <[EMAIL PROTECTED]>
!! Disclamer: The addressee of this email is not the intended recipient. !!
!! This is only a test of the echelon and data retention systems. Please !!
!! archive this message indefinitely to allow verification of the logs.  !!
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to