diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-08 07:33:54 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-06-08 07:33:54 +0000 |
| commit | 592e3b4bd938d9f69befc891a62667a068a241b9 (patch) | |
| tree | c8fcc6e9d4682a4ab4fce43639eab08c5b708459 | |
| parent | b3a6be9f0bfef1cf38351dc1901c5c300b77045a (diff) | |
- Colorized signatures in plain text messages
git-svn-id: https://svn.roundcube.net/trunk@2623 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/CHANGELOG | 1 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 9 | ||||
| -rw-r--r-- | roundcubemail/skins/default/mail.css | 5 |
3 files changed, 14 insertions, 1 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index fa7e9dbd7..204c97db7 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG RoundCube Webmail =========================== +- Colorized signatures in plain text messages - Reviewed/fixed skip_deleted/read_when_deleted/flag_for_deletion options handling in UI - Fix displaying of big maximum upload filesize (#1485889) - Added possibility to invert messages selection diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index 213b67e8e..661913810 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -819,7 +819,14 @@ function rcmail_print_body($part, $p = array()) // quote plain text $body = Q(join("\n", $a_lines), 'replace', false); - // ... colorize quoted lines + // colorize signature + if (($sp = strrpos($body, '-- ')) !== false) + if (($sp == 0 || $body[$sp-1] == "\n") && $body[$sp+3] == "\n") { + $body = substr($body, 0, max(0, $sp)) + .'<span class="sig">'.substr($body, $sp).'</span>'; + } + + // colorize quoted lines $a_lines = preg_split('/\n/', $body); foreach ($q_lines as $i => $q) if ($q['quote']) diff --git a/roundcubemail/skins/default/mail.css b/roundcubemail/skins/default/mail.css index 8030313e4..f6087ebfe 100644 --- a/roundcubemail/skins/default/mail.css +++ b/roundcubemail/skins/default/mail.css @@ -884,6 +884,11 @@ div.message-part div.pre white-space: pre; } +div.message-part span.sig +{ + color: #666666; +} + div.message-part blockquote { color: blue; |
