Commit 465e582d74d609e04b566a3442865a2d6a23ea2c:
    Don't change the subject!
    Easier in GMail if the variable server name is in the body


Branch: refs/heads/master
Author: Sebb <[email protected]>
Committer: Sebb <[email protected]>
Pusher: sebb <[email protected]>

------------------------------------------------------------
www/roster/public_json_common.rb                             | ++++ ----
------------------------------------------------------------
8 changes: 4 additions, 4 deletions.
------------------------------------------------------------


diff --git a/www/roster/public_json_common.rb b/www/roster/public_json_common.rb
index d61dbf8..f78c626 100644
--- a/www/roster/public_json_common.rb
+++ b/www/roster/public_json_common.rb
@@ -88,12 +88,12 @@ def write_output(file, results)
           mail = Mail.new do
             from ENV['MAIL_FROM'] || '[email protected]'
             to '[email protected]' # For testing purposes, will be changed to 
[email protected]
+            subject "Difference(s) in #{file}"
             if ldaphost
-              subject "Difference(s) in #{file} (#{ldaphost})"
+              body "\n#{ldaphost}\n\n#{out}\n"
             else
-              subject "Difference(s) in #{file}"
-            end 
-            body "\n#{out}\n"
+              body "\n#{out}\n"
+            end
           end
           # deliver mail
           mail.deliver!

Reply via email to