Switch to side-by-side view

--- a/Allura/allura/model/notification.py
+++ b/Allura/allura/model/notification.py
@@ -115,6 +115,17 @@
             c.project.shortname, c.app.config.options.mount_point)
         if topic == 'message':
             post = kwargs.pop('post')
+            text = post.text
+            file_info = kwargs.pop('file_info', None)
+            if file_info is not None:
+                MAX_READ = 1024 * 32
+                bytecount= 0
+                while 1:
+                    data = file_info.file.read(MAX_READ)
+                    if not data: break
+                    bytecount += len(data)
+                text = "%s\n%s (%s bytes in %s)" % (text, file_info.filename, bytecount, file_info.type)
+
             subject = post.subject or ''
             if post.parent_id and not subject.lower().startswith('re:'):
                 subject = 'Re: ' + subject
@@ -125,7 +136,7 @@
                 reply_to_address='"%s" <%s>' % (
                     subject_prefix, getattr(artifact, 'email_address', 'noreply@in.sf.net')),
                 subject=subject_prefix + subject,
-                text=post.text,
+                text=text,
                 in_reply_to=post.parent_id,
                 author_id=author._id,
                 pubdate=datetime.utcnow())