Hi Devs,
I would need a simple patch for rcube_user.php.
My thought is to introduce ...
/**
* Return a list of all (incl. deleted) identities linked with this user
*
* @return array List of identities
*/
function list_identities_history($sql_add = '')
{
// get contacts from DB
$sql_result = $this->db->query(
"SELECT * FROM ".get_table_name('identities')."
WHERE user_id=?
$sql_add
ORDER BY ".$this->db->quoteIdentifier('standard')." DESC, name ASC, identity_id ASC",
$this->ID);
return $sql_result;
}
Or is there a way to get all identities including those with "deleted" flag by a plugin in another easy way?
I'm coding an hMail plugin to allow aliased login which adds the alias automatically to user's identites list.
I want to avoid that the identity is added again and again even if the user has decided to delete the automatically added identitiy previously.
Thanks for any advice.
Regards,
Roland
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi RoundCube devs
(Please CC, not on the list)
I've discovered an error in the 0.2.2-stable release, which makes it
impossible to use certain language files.
In the end of certain language files, there's a ^M (0x0D), which makes
PHP output a newline on inclusion, which makes the whole app break,
because there's a call to header() after the inclusion.
I've inlined the very simple patch to fix up the danish files:
{{{
Index: src/program/localization/da_DK/messages.inc
===================================================================
--- src/program/localization/da_DK/messages.inc (revision 689)
+++ src/program/localization/da_DK/messages.inc (working copy)
@@ -97,4 +97,3 @@
$messages['editorwarning'] = 'Al formatering af teksten forsvinder,
hvis der skiftes til ren tekst. Vil du fortsƦtte?';
?>
-
Index: src/program/localization/da_DK/labels.inc
===================================================================
--- src/program/localization/da_DK/labels.inc (revision 689)
+++ src/program/localization/da_DK/labels.inc (working copy)
@@ -264,4 +264,3 @@
$labels['GB'] = 'GB';
?>
-
}}}
However, a few more files show symptoms of problems, but I haven't
checked them out by hand:
$ grep -rl '^M' src/program/localization
src/program/localization/sr_CS/messages.inc
src/program/localization/sr_CS/labels.inc
src/program/localization/vi_VN/messages.inc
src/program/localization/vi_VN/labels.inc
src/program/localization/si_LK/messages.inc
src/program/localization/si_LK/labels.inc
src/program/localization/ne_NP/messages.inc
src/program/localization/ne_NP/labels.inc
I hope this fix can be included in the next stable release. In the
meantime, I'm making a private debian package with this patch in it.
P.S: Is there any plan to make an official Debian package -- or at least
support for compiling a Debian package from source? I'd be happy to
contribute the work I've done so far.
--
Med venlig hilsen / Best regards
Christian Iversen
Sikkerhed.org ApS
Fuglebakkevej 88 E-mail: support(a)sikkerhed.org
1. sal Web: www.sikkerhed.org
DK-2000 Frederiksberg Direkte: ci(a)sikkerhed.org
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi all, im working on a plugin that needs to do some ajax calls. It's
all working, but im wondering if this is the right way to do it..
I create a button (in a template inside the plugin dir, so that recent
addition is working great):
<roundcube:button command="plugin.xs4all_greenlist-add" type="input"
class="button" label="xs4all_greenlist.xs4all_greenlist_add" />
In JS:
rcmail.register_command('plugin.xs4all_greenlist-add',
'xs4all_greenlist_add' , true);
function xs4all_greenlist_add()
{
rcmail.http_post('plugin.xs4all_greenlist-add',
'_greenlist_entry='+entry, true);
}
And in PHP:
$this->register_action('plugin.xs4all_greenlist-add', array($this,
'xs4all_greenlist_add'));
function xs4all_greenlist_add($args)
{
global $OUTPUT;
....
$OUTPUT->command('xs4all_greenlist_add_greenlist_row');
}
Up to here it was pretty straightforward. But i was fiddling a bit to
get the ajax return correct. It's returning a JSON reply with an exec
field that can execute a JS function. I ended up doing this in my js
file, otherwise the function couldnt be found:
rcube_webmail.prototype.xs4all_greenlist_add_greenlist_row = function()
{
.....
}
This seems to be working, but i just want to make sure this is the
correct way to handle this, before I end up having to change this
plugin later on.
Thanks,
Cor
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi all,
it's possible to set a property for set signature and cursor before the
message in a reply?
When we replay many times to an email your new text is in the bottom and
not good for reading.
Thanks
--
Sandro Pazzi
IdWeb s.r.l.
Viale Romagna 69/A - 06012 Citta' di Castello (PG)
Tel. 075 851 97 28
Fax 075 851 97 30
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hello Chris,
your message highlight plugin works great and is really good,
now i have update to current SVN and the message highlignt plugin dosn't work
can you patch this thats works with the current SVN.
Many Thanks
_______________________________________________
List info: http://lists.roundcube.net/dev/
I'm working on a new button in toolbar (mail.html and message.html
templates). This will be a popup menu like markmenu,
will contains container for plugins and three actions (for start):
- open message in new window
- show source (in new window)
- Download as .eml file
The button will be enabled in message view or in mailbox view when one
message is selected. I'll remove current viewsource button. So,
now I need your opinion about:
1. Should I add 'print' action to message menu, and remove print button
from toolbar? It's reasonable, print is a one-message-action (and we
need more place for plugin buttons).
2. I've got no image for the button, any ideas?
--
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/
Hello Developers,
I have checked on google, but didn't find any relevant info from past
near...
So, a few days ago I have upgraded from first 0.2 to current stable
version,
and users said if somebody forward an email which contains attachment,
it doesn't arrive to recipient.
I've checked, and it's true.
When I forward an email which contains attachment (eg: a zipfile), it
visible
in "attachments" block on left top of display - but when I send it, and
read
at other address, the attachment isn't there.
Could anybody help me?
Thanks:
a.
_______________________________________________
List info: http://lists.roundcube.net/dev/
A.L.E.C wrote:
> BTW, plugins directory name is still hardcoded in rcube_plugin_api
> as $url, which is used in ressource_url (two ss!) and to build rcube_plugin::$urlbase.
>
Yes, you're right. I forgot about that. I'm not sure whether we should
introduce another config parameter which specifies the plugin directory
URL. This is not necessarily the same as the real 'plugins_dir' setting.
~Thomas
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
Here's a 2-line patch for the html2text class which is part of
RoundCube. I'm not sure whether or not you'll be interested in it
because it's just about making that class compatible with PHP 4.
I had to fix this specific problem because we (the Moodle project --
http://www.moodle.org) use your code to do HTML to text conversion when
mailing out forum posts to users and unfortunately we still have to
support PHP 4 in the latest stable version of Moodle.
Cheers,
Francois
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/7X/2Iskptr6/roundcube_html2text_.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/