summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-04 13:50:11 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-09-04 13:50:11 +0000
commit01a1d77aafee68a94849a113765626596c2ba3d5 (patch)
tree2cd6f54a0acc966125958c997d21b299e5fc1122
parent8d1b4f76ff294939576d1b21ef856b90dc2b10d3 (diff)
- Truncate very long (above 50 characters) attachment filenames when displaying
git-svn-id: https://svn.roundcube.net/trunk@1729 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/CHANGELOG6
-rw-r--r--roundcubemail/program/steps/mail/show.inc11
2 files changed, 16 insertions, 1 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG
index 02289eb79..3bba337f5 100644
--- a/roundcubemail/CHANGELOG
+++ b/roundcubemail/CHANGELOG
@@ -1,6 +1,12 @@
CHANGELOG RoundCube Webmail
---------------------------
+2008/09/04 (alec)
+----------
+- Truncate very long (above 50 characters) attachment filenames when displaying
+- Support \" and \\ in quoted strings when parsing BODYSTRUCTURE (mime.inc)
+- Allow 'readonly' atributes in input and textarea (#1485312)
+
2008/09/03 (thomasb)
----------
- Allow to auto-detect client language if none set (#1484434)
diff --git a/roundcubemail/program/steps/mail/show.inc b/roundcubemail/program/steps/mail/show.inc
index b0dcf389b..822934a74 100644
--- a/roundcubemail/program/steps/mail/show.inc
+++ b/roundcubemail/program/steps/mail/show.inc
@@ -150,6 +150,14 @@ function rcmail_message_attachments($attrib)
$ol .= html::tag('li', null, sprintf("%s (%s)", Q($attach_prop->filename), Q(show_bytes($attach_prop->size))));
}
else {
+ if (rc_strlen($attach_prop->filename) > 50) {
+ $filename = rc_substr($attach_prop->filename, 0, 25) . '...' . rc_substr($attach_prop->filename, strlen($attach_prop->filename)-20, 20);
+ $title = $attach_prop->filename;
+ } else {
+ $filename = $attach_prop->filename;
+ $title = '';
+ }
+
$ol .= html::tag('li', null,
html::a(array(
'href' => $MESSAGE->get_part_url($attach_prop->mime_id),
@@ -158,8 +166,9 @@ function rcmail_message_attachments($attrib)
JS_OBJECT_NAME,
$attach_prop->mime_id,
$attach_prop->mimetype),
+ 'title' => Q($title),
),
- Q($attach_prop->filename)));
+ Q($filename)));
}
}