Dears,
I have using roundcube 0.2 beta in production environment and works fine.
I did a couple of small changes to customize for our needs, I'd like to share.
Here's one.
I used $rcmail_config['generic_message_footerl'] = 'disclaimer.html'; as a disclaimer but the problem is that the text only mails were with html codes.
So, I modified the config to:
$rcmail_config['generic_message_footer_html'] = 'disclaimer.html';
$rcmail_config['generic_message_footer_txt'] = 'disclaimer.txt';
Then I changed the file: program/steps/mail/sendmail.inc
I removed the original line as:
if (!$savedraft && !empty($CONFIG['generic_message_footer']) && ($footer = file_get_contents(realpath($CONFIG['generic_message_footer']))))
$message_body .= "\r\n" . rcube_charset_convert($footer, 'UTF-8', $message_charset);
And added it right below:
if ($isHtml)
{ # MOD START
if (!$savedraft && !empty($CONFIG['generic_message_footer_html']) && ($footer = file_get_contents(realpath($CONFIG['generic_message_footer_html']))))
$message_body .= "\r\n" . rcube_charset_convert($footer, 'UTF-8', $message_charset);
# MOD END
$MAIL_MIME->setHTMLBody($message_body);
// add a plain text version of the e-mail as an alternative part.
$h2t = new html2text($message_body);
$plainTextPart = wordwrap($h2t->get_text(), 998, "\r\n", true);
if (!strlen($plainTextPart))
{
// empty message body breaks attachment handling in drafts
$plainTextPart = "\r\n";
}
$MAIL_MIME->setTXTBody(html_entity_decode($plainTextPart, ENT_COMPAT, 'utf-8'));
// look for "emoticon" images from TinyMCE and copy into message as attachments
rcmail_attach_emoticons($MAIL_MIME);
}
else
{
# MOD START
if (!$savedraft && !empty($CONFIG['generic_message_footer_txt']) && ($footer = file_get_contents(realpath($CONFIG['generic_message_footer_txt']))))
$message_body .= "\r\n" . rcube_charset_convert($footer, 'UTF-8', $message_charset);
# MOD END
Hope it helps someone. Maybe it would be usefull to be included in next release.
Thanks in advnce.
Jonathan Araújo
Administrador de Infra-estrutura de TI
Gerência de TI - INDG S.A.
--------------------------------------------------------------------------------
Este documento pode incluir informação confidencial e de propriedade restrita do Instituto de Desenvolvimento Gerencial-INDG e apenas pode ser lido por aquele(s) a quem sido endereçado. Se você recebeu esta mensagem de e-mail indevidamente, por favor avise-nos imediatamente. Quaisquer opiniões ou informações contidas neste e-mail pertencem ao seu remetente e não necessariamente coincidem com as do Instituto de Desenvolvimento Gerencial-INDG. Este documento não pode ser reproduzido, copiado, distribuído, publicado ou modificado por terceiros, sem a prévia autorização por escrito do Instituto de Desenvolvimento Gerencial-INDG.
This document may include proprietary and confidential information of Instituto de Desenvolvimento Gerencial-INDG, and may only be read by those persons to whom it is addressed. If you have received this e-mail message in error, please notify us immediately. Any views or opinions expressed in this e-mail are those of the sender and do not necessarily coincide with those of the Instituto de Desenvolvimento Gerencial - INDG. This document may not be reproduced, copied, distributed, published, modified or furnished to third parties, without the prior written consent of Instituto de Desenvolvimento Gerencial-INDG.
--------------------------------------------------------------------------------
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
Just installed RC. Love it, but found a 40-50 missing entries in the Danish
language file. I've added them with the translate-o-matic script on the
site, and attached it. Enjoy.
Cheers,
HC
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/tR/tRpc6VYj/labels.inc
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
I've translated RoundCube 0.2beta to Cymraeg (Welsh) - cy_GB
I'm attaching the translation files. I've tested these on my
local copy and looks sensible so far. I'd suggest 'Cymraeg'
as the label in the options.
Any intention to move to .po files for translations? There
are a lot of tools for gettext catalogs to make translation an
easier job.
thanks
Dafydd
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/d6/zurcd6QG/cy.zip
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi everybody,
I posted a patch 2 months ago (http://trac.roundcube.net/ticket/1485274)
I update it as regular bases to avoid conflicts, but it seems that nobody
cares about committing it :-(
The patch enables USB dongle hardware authentication, it has already been
integrated in other open source projects (squirrelmail, phpMyAdmin,
phpBB...)
I already sent free swekey USB dongles to some you to validate the patch,
but I didn't receive any feedback.
Did I miss something in the roundcube project's policy ?
Cheers,
Luc
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi everybody,
I posted a patch 2 months ago (http://trac.roundcube.net/ticket/1485274)
I update it as regular bases to avoid conflicts, but it seems that nobody
cares about committing it :-(
The patch enables USB dongle hardware authentication, it has already been
integrated in other open source projects (squirrelmail, phpMyAdmin,
phpBB...)
I already sent free swekey USB dongles to some you to validate the patch,
but I didn't receive any feedback.
Did I miss something in the roundcube project's policy ?
Cheers,
Luc
_______________________________________________
List info: http://lists.roundcube.net/dev/
Daniel Mealha Cabrita wrote:
> Thomas,
>
> I've sent an email on this very subject to the devel mailing list,
> unfortunately I've got no response.
I'm sorry for that but I cannot answer every post there. Don't expect your
mails being answered within a couple of days.
>
> Since you're the author of that code, there are some things I would like to
> ask you about rcube_ldap.php.
Well, others had implemented a lot of functions as well. I'm not very
experienced with LDAP even if my name is found in that file.
>
> I'm copy-pasting the original message I sent to that list:
>
>
> ---
> I've been implementing an extension to RC which may use LDAP (depending on how
> it was configured).
>
> There's already the
> include/rcube_ldap.php
> which _seems_ to present itself as a generic interface to LDAP.
>
> One problem is that it was implemented with addressbook in mind, so there are
> lots of fields and behaviors which are useless in other cases when accessing
> LDAP.
Correct. What do you wanna use it for?
>
> The code I'm working on is intended to be integrated into the main tree of RC
> (so it's not supposed to be just a quick'n'dirty patch).
> With that in mind, I have two questions:
>
> 1. - Is the rcube_ldap class really the standard one for other
> (non-addressbook) LDAP accesses?
No.
> 2. - If "yes" to #1, how is the "standard" way to use that to avoid future
> code breakage? (a code example would be nice)
> 3. - If "no" to #1, what could be an acceptable solution? A parallel and more
> generic LDAP class implementation?
I don't unferstand what you intend to do with LDAP and therefore I cannot
answer that question.
~Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/
Ondřej Žára wrote:
> Are you using Debian? Debian doesn't use the session GC in PHP - instead,
> it cleans sessions in a cronjob. To enable PHP GC in Roundcube, one must
> add (to main.inc.php) these lines:
>
> ini_set('session.gc_probability', 5);
> ini_set('session.gc_divisor', 100);
>
> Values '5' and '100' were chosen experimentaly by me, use your own if you
> want :)
>
Someone should add above info to installation manual.
By the way, reading rcube_sess_gc() I found an improvement possibility.
Function could be simpler and speed increased if we'll create index on
cache.session_id column with "ON DELETE CASCADE" reference, but it needs
innodb in mysql (foreign keys not supported by myisam tables), and
triggers in sqlite (foreign keys not supported at all).
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hello, again!
Forex-AZ forex ticarəti.Vaxt və məkan anlayışı olmadan dünya birjalarında ticarət imkanı.
_______________________________________________
List info: http://lists.roundcube.net/dev/