+

Added informations at the top to explain usage and describe dependencies

Benjamin Renard [2013-01-31 09:25:04]
Added informations at the top to explain usage and describe dependencies
Filename
mail2gnokii
diff --git a/mail2gnokii b/mail2gnokii
index e557a42..77001bb 100755
--- a/mail2gnokii
+++ b/mail2gnokii
@@ -4,6 +4,9 @@
 #
 # Postfix transport to sending SMS by gnokii
 #
+# Important : The SMS content is the email's subject header.
+#             Usefull for Nagios notification
+#
 # Usage :
 #
 #   in master.cf :
@@ -15,7 +18,16 @@
 #
 #        sms.example.tld    sms
 #
-# # arg1: phone number
+# Dependencies :
+#
+#   * Email::Simple in libemail-simple-perl Debian package
+#
+# Usage :
+#
+#  mail2gnokii [phone number] [SMSC]
+#       Mail content is sent through STDIN
+#       SMSC is optionaly. If not provided, default value is used.
+#

 use Email::Simple;
 use Encode qw/encode decode/;
ViewGit