Hi,
So, I've been modifying the cmd_learn driver in markasjunk2 to also
restore messages to their original content and save them in the user's
inbox, the way that the sa_detach driver does.
It was seeing rcube_message->attachments as a zero-length array even on
messages with the paperclip icon; I traced this back to roughly line 432
of rcube_message.php ($Id: rcube_message.php 5261 2011-09-21 12:22:40Z
alec $):
// list as attachment as well
if (!empty($mail_part->filename))
$this->attachments[] = $mail_part;
If the message part is a text/plain type (which it shouldn't be, but it
is, and I'll fix that too in a bit, $%&#! spamassassin), and the message
part does not have a filename, then it doesn't get added to the
attachments array.
So there are two ways for me to fix this: I can either have the
cmd_learn driver code first check rcube_message->attachments, and if
that's a zero-length array, then also check rcube_message->parts, or I
can eliminate the filename check from this part of rcube_message.php.
Which approach is more correct? Or is there another way to do this?
Thanks,
- R.
--
[__ Robert Sheldon
[__ Founder, No Problem
[__ Information technology support and services
[__ (530) 575-0278
[__ "You must be the change you wish to see in the world." -- Mahatma
Gandhi
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
hi list
I have the problem in RC 0.6 (and latest SVN) that I am not able to use
rouncube with the dyndns webhop service... thus running roundcube in a
surrounding frame!
the error message in FF console is e.g.:
security error: content at http://realserver.ch/roundcube/ is not allowed to
load data from von http://niceurl.ch/
what could be my problem?
is this a bug or a feature?
thanks
Andreas
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Attached is a patch to improve user experience when there is only a single
server available for login.
It removes the select field and replaces it with a hidden field with the
only available option.
Demo available at: http://webmail.richardwhiuk.com for an example of it
applied.
Best wishes,
Richard Whitehouse
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/q6/EGXt1Ahg/rcube_template.php.patch
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
I see this in our log files a lot:
Oct 13 19:05:09 roundcube1 roundcube: DB Error: MDB2 Error: unknown error Query: _doQuery: [Error message: Could not execute statement] [Last executed query: INSERT INTO
contacts (user_id, changed, del, "name", "email", "firstname", "surname") VALUES (122994, now(), 0, 'zzzzzzzzz', 'xxxxxxxx(a)yyyyyyyy.com', '', 'Mo(nique)<A0>Be
cking')] [Native message: ERROR: invalid byte sequence for encoding "UTF8": 0xa0 HINT: This error can also happen if the byte sequence does not match the encoding expe
cted by the server, which is controlled by "client_encoding".] in /data/WWW/release-0.5/program/include/rcube_mdb2.php on line 642
We use postgres, and the DB is definitely set to UTF-8. We're running a 0.5.x SVN, so this may have been fixed later. Or it may be some local problem. Before I start digging into this, anyone have an idea what this could be?
Name | Owner | Encoding
------------------+------------------+-----------
roundcubemail | roundcube | UTF8
Regards,
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Hi sir
I have localize Chinese language for RoundCube 0.6.
Best Regards
唐天兵 Kelphon Tang
邮箱: kelphon(a)kingstor.com
手机: 13918033280
电话: 021-37705997
公司: 上海纵智信息技术有限公司
地址: 上海市沪亭北路900弄17号602 邮编: 201615
**************************
This email (including all attachments) contains privileged and confidential
information and is intended solely for the name addressee. If you are not
the intended recipient, any disclosure, copying, distribution or any action
taken or omitted to be reliance on it is strictly prohibited. If this
message has been sent to you in error, kindly delete it immediately and
inform the sender accordingly.
**************************
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/DR/bnycZaZR/zh_CN.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/
BT/aba52c80
Dear developers,
yesterday I have activated the
Suhosin-Extension
http://www.hardened-php.net/suhosin/how_to_install_or_upgrade.html#installi…
with the following settings.
###
[suhosin]
suhosin.simulation = on
/* gal/php.ini */
suhosin.session.encrypt = Off
suhosin.log.syslog = 0
/* S_ALL */
suhosin.log.sapi = 511
suhosin.log.file = 511
suhosin.log.file.name = /home/phpapps/installed/logs/php-suhosin.log
suhosin.log.use-x-forwarded-for = on
suhosin.executor.include.max_traversal = 2
suhosin.executor.disable_eval = on
suhosin.executor.disable_emodifier = on
suhosin.memory_limit = 1
###
I get a lot of following messages in the php-suhosin.log
###
Oct 16 16:07:53 [30611] ALERT-SIMULATION - use of eval is forbidden by
configuration (attacker '85.127.115.56', file
'/home/phpapps/installed/rc06rc/program/include/rcube_template.php',
line 782)
Oct 16 16:07:53 [30611] ALERT-SIMULATION - function outside of eval
whitelist called: strpos() (attacker '85.127.115.56', file
'/home/phpapps/installed/rc06rc/program/include/main.inc', line 540)
Oct 16 16:07:53 [30611] ALERT-SIMULATION - function outside of eval
whitelist called: strtr() (attacker '85.127.115.56', file
'/home/phpapps/installed/rc06rc/program/include/main.inc', line 554)
Oct 16 16:07:53 [30611] ALERT-SIMULATION - function outside of eval
whitelist called: preg_replace() (attacker '85.127.115.56', file
'/home/phpapps/installed/rc06rc/program/include/main.inc', line 557)
Oct 16 16:07:53 [30611] ALERT-SIMULATION - function outside of eval
whitelist called: nl2br() (attacker '85.127.115.56', file
'/home/phpapps/installed/rc06rc/program/include/main.inc', line 559)
###
Do you know this issue with suhosin?
Do you plan to move to another template engine or do you stay on your
own?
BR
Aleks
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Hey all, is there a way to force mail_host to a certain name in the database? We have multiple clusters of imap servers, and sometimes I need to switch users to a different cluster due to maintenance or whatever, but this is a huge hassle with RC because it uses the mail_host in the SQL to fetch user settings. So I end up with multiple records for the same user. In our setup, the mail_host record in the DB makes no sense, and i would very much like to make that field a static value. Plugin would be ok, but I didn't immediately see a way.
Regards,
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Hello everyone,
i´m looking for a freelance roundcube developer for a proyect with some
postfix + dovecot knowledge.-
If someone is interested, please contact me.-
Thanks.-
--
Dr. Agustín Bender.
Buenos Aires, Argentina
Of. 4814-0033
Email: agustin.bender(a)gmail.com
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
We have in Roundcube a feature which adds odd/even classes to table
rows. This feature is currently buggy. Doesn't work as expected for
threaded view and for row replacement actions e.g. in folder manager.
Fixing these bugs can be expensive and the way how the fixes would be
implemented will be probably an expensive javascript operation (iterate
over all rows of a table, detect and change class).
This feature is not used in default skin.
That's why I think we could remove this feature. Does anyone using it in
custom skins?
--
Aleksander 'A.L.E.C' Machniak
LAN Management System Developer [http://lms.org.pl]
Roundcube Webmail Developer [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80
Hi there,
One of our customers has an application that sends him emails with XML
files attached. This app doesn't write the correct headers, so it looks
like this:
--AaBb--984dfgeSSd3532
Content-Type: application/xml; name=whatever.xml
Content-Transfer-Encoding: base64Content-Disposition: attachment;
filename=whatever.xml
<really><long><xml><file><here><without><line><breaks>
You can see that Content-Transfer-Encoding was supposed to be base64,
but it has a lame syntax error. The XML file is not base64 encoded, it
is very long XML in a single line.
Because of this, when the client downloads the attachment from
Roundcube, the XML is broken because Roundcube added line breaks to its
contents, giving us somtething like:
<this_is_a_brok
en_tag>blahblah
</this_is_a_bro
ken_tag>
The RFC 2045 [1] states that the default value of
Content-Transfer-Encoding is 7bit, that's why we would expect such line
breaks to respect the character limit (I know that the message is
malformed), but if this limit isn't respected, should Roundcube really
try to "fix" the message like rcube_imap_generic::handlePartBody() does?
Is this the intended behavior or should Roundcube return the contents
'as is' to the user?
Sorry if this is confusing.
[1] http://tools.ietf.org/html/rfc2045#section-6
Thanks!
Pedro Padron
_______________________________________________
List info: http://lists.roundcube.net/dev/
BT/aba52c80