On Sep 28, 2005, at 2:39 AM, Anton Kudris wrote:

Hello.

What I wanted to do with mimedefang is to add special recipient to all
emails which size >= 5MB
for example I have [EMAIL PROTECTED] If there's 10MB incoming
email I whant it to be passed to [EMAIL PROTECTED] along with
original recipient.

I think I need to add few lines to filter_end() like these

my $x = 5120; #bytes
if (message_size() >= $x) {
  add_recipient('[EMAIL PROTECTED]');
}

but I don't know how to write message_size() function... Or is there
any $MsgSize variable avialable?



if (-s "./INPUTMSG" > (5*1024*1024)) {
   add_recipient("[EMAIL PROTECTED]");
   }

_______________________________________________
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