From 8483a5fda24ce63ceb97958bc555061cd3aa770a Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Fri, 11 Mar 2011 07:19:25 -0500
Subject: [PATCH] Provide support for Mail System module.  See http://drupal.org/project/mailsystem

---
 postmark.info    |    1 +
 postmark.install |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/postmark.info b/postmark.info
index 2cb660a..810fc20 100755
--- a/postmark.info
+++ b/postmark.info
@@ -1,5 +1,6 @@
 name = Postmark
 description = Defines a new email handler to replace the default Drupal SMTP library
+dependencies[] = mailsystem
 package = Mail
 core = 7.x
 version = 7.x-1.0
diff --git a/postmark.install b/postmark.install
index 0793adc..dcb141b 100755
--- a/postmark.install
+++ b/postmark.install
@@ -19,9 +19,9 @@ function postmark_uninstall() {
 }
 
 function postmark_enable() {
-  variable_set('mail_system', array('default-system' => 'PostmarkMailSystem'));
+  mailsystem_set(array('default-system' => 'PostmarkMailSystem'));
 }
 
 function postmark_disable() {
-  variable_set('mail_system', array('default-system' => 'DefaultMailSystem'));
+  mailsystem_clear(array('default-system' => 'PostmarkMailSystem'));
 }
-- 
1.7.1

