add intro text
This commit is contained in:
@@ -45,6 +45,13 @@ if not options.sender or not options.to or not options.relay:
|
||||
url = "http://download.opensuse.org/tumbleweed/iso/"
|
||||
iso = "openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
|
||||
changes = "Changes.%s.txt"
|
||||
intro = """
|
||||
Please note that this mail was generated by a script.
|
||||
The described changes are computed based on the x86_64 DVD.
|
||||
The full online repo contains too many changes to be listed here.
|
||||
|
||||
"""
|
||||
|
||||
current_fn = os.path.join(os.path.dirname(__file__), "announcer-current-version")
|
||||
|
||||
u = urlparse(url+iso)
|
||||
@@ -96,7 +103,7 @@ if not "====" in txt:
|
||||
print >>sys.stderr, "no changes or file corrupt? not sending anything"
|
||||
sys.exit(1)
|
||||
|
||||
msg = MIMEText(txt)
|
||||
msg = MIMEText(intro + txt)
|
||||
msg['Subject'] = 'New Tumbleweed snapshot %s released!'%version
|
||||
msg['From'] = options.sender
|
||||
msg['To'] = options.to
|
||||
|
Reference in New Issue
Block a user