[Mimedefang] MimeDefang Framework

Daniel Aquino mr.danielaquino at gmail.com
Fri May 25 15:14:25 EDT 2007


Instead of using a simple mimedefang-filter file.
We could perhaps do something like...

mimdefang-filter/
    |
   + - conf
    |  |  init.pl  (loads lib, models etc..)
    |  |  settings.yaml
    |
   +  - events
    |   |  filter_begin.pl
    |   |  filter_recipient.pl
    |   |  etc...
    |
   +  - models
    |   |  users_cache.pl
    |   |  etc...
    |
   + - lib
    |  | something.pl
    |  | etc...
    |
   +  - tests
    |  + - unit
    |      |  users_cache.test
    |  + - events
    |      |  filter_begin.test
    |
   +  - scripts
    |   |  console.pl  (interactive perl console with init.pl loaded)
    |   |  run_tests.pl



Maybe you can see what I'm getting at here?
Mimedefang would have to call init.pl at the start...
Then mimedefang.pl would search in "events" for files..
If the file exists load and call that subroutine...
If your in development mode then "reload" the file to catch changes...

What you think ?



More information about the MIMEDefang mailing list