0fb2d5e975296447fb73ba0bd702a0ac0414432e
lrnassar
  Fri Sep 10 07:46:27 2021 -0700
Tweaking the help message to hubPublicMail, refs #27779

diff --git src/utils/hubPublicMail src/utils/hubPublicMail
index 23e3be0..a8f4244 100755
--- src/utils/hubPublicMail
+++ src/utils/hubPublicMail
@@ -3,45 +3,45 @@
 import logging, sys, optparse, os, requests, sys, urllib3, atexit, urllib
 from os.path import isfile
 from email.mime.text import MIMEText
 from subprocess import Popen, PIPE
 
 # makes sure that only one instance of the program runs at the same time
 lockFname = None
 
 # switch off insecure SSL warnings
 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
 
 fromEmail="genome-www@soe.ucsc.edu"
 
 emailTemplate = """Dear UCSC Public Hub author,
 
-this is an automated email sent by the UCSC Genome Browser Group's hubPublicMail system to alert you
-that your public track hub at the address
+This is an automated email sent by the UCSC Genome Browser Group's hubPublicMail system to alert you
+that your public track hub at the address:
 
 %s
 
-has been inaccessible for 24 hours. If it continues to be offline, we may need to remove it
+Has been inaccessible for 24 hours. If it continues to be offline, we may need to remove it
 from our public hubs list at https://genome.ucsc.edu/cgi-bin/hgHubConnect
 
 Do not hesitate to let us know if we can help you resolve this situation, e.g. by updating the URL
 where the hub is hosted or possibly hosting the files on our servers.
 
 You can reach us at genome-www@soe.ucsc.edu.
 
-Your
-UCSC Genome Browser Group
+Thank you for your interest and contributions,
+The UCSC Genome Browser Group
 """
 # ==== functions =====
     
 def parseArgs():
     " setup logging, parse command line arguments and options. -h shows auto-generated help page "
     parser = optparse.OptionParser("""usage: %prog [options] hgcentralname statusFile - send email if public hub is down
     Goes through the following steps:
     1) Get the list of all public hubs
     2) Try to get their URLs and write all to statusFile.
     3) If a hub fails, increase count in statusFile.
     4) If count is > 24, send an email to hub email and set the failCount to -48.
 
     Example:
        hubPublicMail hgcentraltest /tmp/hubPublicStatus.tab
     """)