Index: mail_logger.module
===================================================================
--- mail_logger.module	(revision 691)
+++ mail_logger.module	(working copy)
@@ -1,16 +1,7 @@
 <?php
 // $Id: mail_logger.module,v 1.2 2008/05/25 23:30:30 litwol Exp $
+
 /**
- * Implementation of hook_boot()
- *
- */
-function mail_logger_boot() {
-  //because modules can modify the outgoing mail, mail_logger must be executed last in order to capture 
-  //the final mail parameters by setting the weight of mail_logger to something ridicolous
-  $max_weight = db_result(db_query("select max(weight) from {system} where name != 'mail_logger'"));
-  db_query("UPDATE {system} SET weight = %d WHERE name = 'mail_logger'", $max_weight + 100);
-}
-/**
  * implementation of hook_perm().
  *
  */
Index: mail_logger.install
===================================================================
--- mail_logger.install	(revision 691)
+++ mail_logger.install	(working copy)
@@ -80,3 +80,15 @@
 function mail_logger_uninstall() {
   drupal_uninstall_schema('mail_logger');
 }
+
+/**
+ * Implementation of hook_enable()
+ *
+ */
+function mail_logger_enable() {
+  // Because modules can modify the outgoing mail, mail_logger must be executed last in order to capture 
+  // the final mail parameters by setting the weight of mail_logger to something large.
+  $max_weight = db_result(db_query("select max(weight) from {system} where name != 'mail_logger'"));
+  db_query("UPDATE {system} SET weight = %d WHERE name = 'mail_logger'", $max_weight + 100);
+}
+
