Recent Posts

Pages: 1 ... 8 9 [10]
91
API Based Plugins / Re: password plugin sql update multiple tables
« Last post by Juppers on March 10, 2024, 10:04:00 AM »
Unfortunately the connect engine doesn't allow stored procedures or functions either.

I guess I will need to just script the changes and use the expect or some other cli based driver. Thanks.
92
API Based Plugins / Re: password plugin sql update multiple tables
« Last post by JohnDoh on March 10, 2024, 03:52:24 AM »
I'm not sure if you can put multiple statements in a single query() call. How would the response be handled? I think a better way is to use an SQL function. You can see some examples in the password plugin readme. In the function you can execute multiple statements.
93
API Based Plugins / password plugin sql update multiple tables
« Last post by Juppers on March 09, 2024, 11:22:28 AM »
I am trying to update multiple tables when someone changes their password. Because the second table is external via the connect engine in mariadb, I can't use a trigger to update it.
I have been trying to update the sql query to handle both updates, but it fails even thought the query is valid. Yes, I have disabled password encryption for the moment for troubleshooting.

Is there an easier way to have the password plugin run multiple queries or dealing with multiple dsn's?

Code: [Select]
$config['password_query'] = "UPDATE mailbox SET password=%P,plain_password=%p,passwordlastchange=NOW() WHERE username=%u;update email_data set password =%p where emailaddr=%u";

Code: [Select]
Mar  9 10:40:15 mail roundcube: <0f5vgmc9> DB Error: [1064] You have an error in your SQL syntax; check the manual that correspo
nds to your MariaDB server version for the right syntax to use near 'update email_data set password ='etstetst' where emailaddr='sup
ertest@domain...' at line 1 (SQL Query: UPDATE mailbox SET password='{PLAIN}etstetst',plain_password='etstetst',passwordlastchange=
NOW() WHERE username='supertest@domain.com' ;update email_data set password ='etstetst' where emailaddr='supertest@domain.com') in
 /opt/www/roundcubemail-1.6.5/program/lib/Roundcube/rcube_db.php on line 577 (POST /mail/?_task=settings&_action=plugin.password-sav
e)
94
General Discussion / don't have filters
« Last post by residentpio on March 09, 2024, 09:36:08 AM »
I installed rouncube from packages on Debian. I don't have the filter option on the left side of the settings. How can I enable/install it?
95
Pending Issues / Re: Special Folder Naming and Auto-subscribe
« Last post by JohnDoh on March 09, 2024, 04:23:58 AM »
The subscriptions_option plugin works fine for me. Lets confirm you setup.

You have added subscriptions_option to your `$config['plugins']` array. You have set `$config['use_subscriptions'] = false;` to disable the use of subscriptions and then you added `use_subscriptions` to your `$config['dont_override']` array to prevent the user from changing this setting?

If you are currently logged in your will need to logout and back in again once you have set `$config['use_subscriptions'] = false;`

Quote
I'll take a look at our IMAP server and see if there is a special-use IMAP extension. Would you mind expanding on how this might help Roundcube "check the box" automatically for folders which are not currently subscribed?
I don't know how much difference it will make to existing users but think of it like this. When a client connects to the server the server tells it "use x folder for deleted, y folder for junk, etc" the client will show those folder and use them as instructed rather than creating its own. The user can override it and configure the client to use the folders they want but its provides a default which would be the same across clients to save the user doing it manually.
96
Pending Issues / Re: Special Folder Naming and Auto-subscribe
« Last post by bmac on March 07, 2024, 04:56:55 PM »
Thanks @JohnDoh. I have the subscriptions_option enabled and
Code: [Select]
$config['dont_override'] = ['use_subscriptions']; turned on. Searching around on the forums, it seems others have tried to force subscribe users to all folders with little success, so maybe this is simply a case of teaching end-users how to enable non-subscribed folders.

I'll take a look at our IMAP server and see if there is a special-use IMAP extension. Would you mind expanding on how this might help Roundcube "check the box" automatically for folders which are not currently subscribed?

Thanks!
97
Pending Issues / Re: default port / Default server
« Last post by JohnDoh on March 07, 2024, 12:20:26 PM »
you have an usual looking config file. it appears to have values from before and after version 1.6 see this announcement about the changes https://roundcube.net/news/2022/07/28/roundcube-1.6.0-released. may be because you are using both old and new names the backwards compatibility stuff is getting confused and giving unexpected results
98
Release Discussion / Re: RC Configuration
« Last post by JohnDoh on March 07, 2024, 12:18:39 PM »
I have never tried to do it myself so I can only guess at the best way but I think I'd do something like this:

Get a fresh install of Roundcube on the server (https://github.com/roundcube/roundcubemail/blob/master/INSTALL#L33) and copy over the relevant parts of config.inc.php and any configs in the plugins dir that i want (note, i see you have a couple of db config files, i'm not sure what those are but may be they have info which should be in my config.inc.php)

also I suppose, just in case, have a look at this announcement, there were some config changes with the release of 1.6 https://roundcube.net/news/2022/07/28/roundcube-1.6.0-released

next there is an updatedb.sh utility shipped with Roundcube https://github.com/roundcube/roundcubemail/blob/master/UPGRADING#L97 so I'd use this to bring the db schema up to date.

then I might enable the installer just because its an easy way to check everything its ok.
99
Release Discussion / Re: RC Configuration
« Last post by morsecode1965 on March 07, 2024, 06:30:47 AM »
Thanks for the quick response.

Hmmm, I do not see roundcube listed when I do a 'apt list --installed' or 'snap list'.

In any case, how do recommend a clean install restoring my config and db? I like standard and

I am thinking
 - backup, drop, install roundcube, and restore my postgresql roundcube database
 - save and restore all config files in /etc/roundube
 - anything in Apache?
 - anything else?

Here is what I have in /etc/roundcube

apache.conf
config.inc.php
config.inc.php.ucf-dist
config.old.php
debian-db.php
debian-db-roundcube.php
defaults.inc.php
defaults.inc.php.dpkg-dist
htaccess
lighttpd.conf
mimetypes.php
plugins
100
Pending Issues / managesieve plugin: using rules with value comparisons
« Last post by stefannagy on March 07, 2024, 05:49:39 AM »
Hello,

I'm using Debian Bookworm, so that's Roundcube 1.6.5 now. I use the managesieve plugin to filter messages and in general it works. However, I have a question regarding the creation of rules with value comparisons in Roundcube:

Exim4 adds a header X-Spam_score with a the spam score of the message (multiplied by ten, as an integer value) and I want to use this value to filter spam messages. I attach a screenshot of the rule I created in Roundcube ("screenshot.png"), it results in the following:

# rule:[Spam-Filter]
if allof (header :value "gt" "x-spam_score" "60")
{
   fileinto "Junk";
}


This filter doesn't work. As I understand it this leads to a comparison between strings. And everywhere I look I find sieve scripts using a sieve extension comparator-i;ascii-numeric which is required to be able to use a :comparator "i;ascii-numeric", so that those strings are interpreted as decimal positive integers… Since Roundcube offers comparisions between values I guess it should be possible without this extension… :/ What am I doing wrong?
Pages: 1 ... 8 9 [10]