[Mimedefang] Order of the fuctions?

Matthew Schumacher matt.s at aptalaska.net
Fri Jun 17 15:09:34 EDT 2005


List, David,

Anyone have a list of all of the functions that mimedefang calls in the
filter in order?

I read though the man page and this is what I came up with:

filter_initialize()		# called once for each child

foreach message {

  filter_sender()		# requires the -s flag to run

  foreach recipient {
      filter_recipient()	# requires the -t flag to run
  }

  filter_create_parser()	# parse mime or built in

  filter_begin()		# scan entire message

  foreach part {
    filter()			# scan mime part
    filter_multipart()		# scan container parts
  }

  filter_end()			# last bit of filtering

}

filter_cleanup()		# right before the child dies

Does that look right?  Am I missing some?

Also is it generally save to use filter_sender to flush vars so that
they don't carry over into the next message since it's the first thing
called on each message?

Thanks,

schu



More information about the MIMEDefang mailing list