Hello all,
thank you for roundcube. It is a great program. Still missing sieve, but
I'll be patient :-)
My girlfriend has around 20 email-adresses and she would like to see,
to which account the mail got sended. So I turned around the name
and email.
You see the email instead of the name. If you move the mouse over the
email you will see the name.
Maybe someone else is interested, thats why i publish it here.
1) Added a config-parameter (main.inc.php):
// Show email instead of the name in recipient and sender
$rcmail_config['show_email'] = TRUE;
2) Changed the source in program/steps/mail/func.inc:
@@ -876,13 +876,21 @@
$out .= sprintf('%s <%s>', Q($part['name']), $part['mailto']);
else if (preg_match($EMAIL_ADDRESS_PATTERN, $part['mailto']))
{
- $out .= sprintf('<a href="mailto:%s" onclick="return
%s.command(\'compose\',\'%s\',this)" class="rcmContactAddress"
title="%s">%s</a>',
+ if ($CONFIG['show_email'])
+ $out .= sprintf('<a href="mailto:%s" onclick="return
%s.command(\'compose\',\'%s\',this)" class="rcmContactAddress"
title="%s">%s</a>',
+ Q($part['mailto']),
+ JS_OBJECT_NAME,
+ JQ($part['mailto']),
+ Q($part['name']),
+ Q($part['mailto']));
+ else
+ $out .= sprintf('<a href="mailto:%s" onclick="return
%s.command(\'compose\',\'%s\',this)" class="rcmContactAddress"
title="%s">%s</a>',
Q($part['mailto']),
JS_OBJECT_NAME,
JQ($part['mailto']),
Q($part['mailto']),
Q($part['name']));
-
+
if ($addicon)
$out .= sprintf(' <a href="#add" onclick="return
%s.command(\'add-contact\',\'%s\',this)" title="%s"><img src="%s%s" alt="add"
border="0" /></a>',
JS_OBJECT_NAME,
@@ -1123,4 +1131,3 @@
));
?>
It would surely be better to do this by user, but this was too much trouble
for me right now.
Best wishes,
Michael
--
SysQuadrat Systeme mit Sicherheit
Michael Weinert Stuttgart Filderstadt-Plattenhardt
Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273
http://www.linux-firewall.de [EMAIL PROTECTED]
KeyServer hkp://pgp.mit.edu
_______________________________________________
List info: http://lists.roundcube.net/dev/