Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Unified Diff: bin/pyami_sendmail

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/lss3 ('k') | bin/route53 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/pyami_sendmail
diff --git a/bin/pyami_sendmail b/bin/pyami_sendmail
index 78e30039b7717797170007b2b70502ed2225c55b..550214595e0f755806f59d3787cebca1353c41b8 100755
--- a/bin/pyami_sendmail
+++ b/bin/pyami_sendmail
@@ -37,6 +37,8 @@ if __name__ == "__main__":
parser.add_option("-t", "--to", help="Optional to address to send to (default from your boto.cfg)", action="store", default=None, dest="to")
parser.add_option("-s", "--subject", help="Optional Subject to send this report as", action="store", default="Report", dest="subject")
parser.add_option("-f", "--file", help="Optionally, read from a file instead of STDIN", action="store", default=None, dest="file")
+ parser.add_option("--html", help="HTML Format the email", action="store_true", default=False, dest="html")
+ parser.add_option("--no-instance-id", help="If set, don't append the instance id", action="store_false", default=True, dest="append_instance_id")
(options, args) = parser.parse_args()
if options.file:
@@ -44,4 +46,7 @@ if __name__ == "__main__":
else:
body = sys.stdin.read()
- notify(options.subject, body=body, to_string=options.to)
+ if options.html:
+ notify(options.subject, html_body=body, to_string=options.to, append_instance_id=options.append_instance_id)
+ else:
+ notify(options.subject, body=body, to_string=options.to, append_instance_id=options.append_instance_id)
« no previous file with comments | « bin/lss3 ('k') | bin/route53 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698