From weinert@sys2.de Tue Jul 29 03:38:29 2008 From: Michael Weinert To: dev@lists.roundcube.net Subject: [RCD] Sender Recipient Date: Tue, 29 Jul 2008 12:38:14 +0200 Message-ID: <200807291238.14371.weinert@sys2.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4973686428922917702==" --===============4973686428922917702== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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.=20 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'] =3D TRUE; 2) Changed the source in program/steps/mail/func.inc: @@ -876,13 +876,21 @@ $out .=3D sprintf('%s <%s>', Q($part['name']), $part['mailto']); else if (preg_match($EMAIL_ADDRESS_PATTERN, $part['mailto'])) { - $out .=3D sprintf('%s', + if ($CONFIG['show_email']) + $out .=3D sprintf('%s', + Q($part['mailto']), + JS_OBJECT_NAME, + JQ($part['mailto']), + Q($part['name']), + Q($part['mailto'])); + else + $out .=3D sprintf('%s', Q($part['mailto']), JS_OBJECT_NAME, JQ($part['mailto']), Q($part['mailto']), Q($part['name'])); - + if ($addicon) $out .=3D sprintf(' 3D"add"', 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 --=20 SysQuadrat Systeme mit Sicherheit Michael Weinert Stuttgart Filderstadt-Plattenhardt Tel.: 0711-9970288 Fax: 5360559 Mobil: 0170-4141273 http://www.linux-firewall.de weinert(a)sys2.de KeyServer hkp://pgp.mit.edu _______________________________________________ List info: http://lists.roundcube.net/dev/ --===============4973686428922917702==--