Really... In these cases the patch can consider the minimum timeout (1) or we can
count the number of characters instead of words (maybe considering 75ms for each
character) (2). I prefer the second option because the patch will work in all languages.

Something like that:
(1)
message_minimum_time = 3500;
var message_time = (msg.split(' ').length > 5)? (msg.split(' ').length-5) * 400 + this.message_minimum_time : this.message_minimum_time;

(2)
message_minimum_time = 3500;
var message_time = (msg.length > 30)? (msg.length-30) * 75 + this.message_minimum_time : this.message_minimum_time;

Sounds good for you too Alec?

On Sun, Sep 13, 2009 at 4:34 AM, A.L.E.C <alec@alec.pl> wrote:
A.L.E.C wrote:
>> - Time increase rate for each word (after the fifth word): 400ms (1.2sec
>> every 3 words)

Ahhh. I see one problem, localization. Some languages are not using
spaces, e.g. Chinese, Japanese and others. This will not work.

--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Developer http://roundcube.net

_______________________________________________
List info: http://lists.roundcube.net/dev/



--
Victor Benincasa