X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=send-reports.py;h=122765fb8f710323189b915828a0021006f36a04;hb=a04569d3fe815bd27481aa5419efc30f3bc09480;hp=b52668360b07a8b93341de7e1fd24b719c9a8c47;hpb=5baa46c18d0064fe29a2a0cf7c8a6b28a40d3b0a;p=patchq.git diff --git a/send-reports.py b/send-reports.py index b526683..122765f 100755 --- a/send-reports.py +++ b/send-reports.py @@ -34,6 +34,11 @@ while True: if config.reply_override is not None: to = [config.reply_override] + # If the content is over 50K then truncate it to the last 50K. + # XXX Upload full logs to a website. + if len(content) > 50000: + content = content[-50000:] + # Construct an email of type text/plain with the body of the # message. msg = MIMEText(content)