[Dovecot] Extra plugins vía extrafield in ldap
Hi all,
I'm using dovecot 2.0.9 and I have a config like this:
dovecot.conf:
passdb { args = /etc/dovecot/conf.d/passwd-ldap.conf driver = ldap }
mail_plugins = $mail_plugins quota
plugin { autocreate = INBOX.SPAM autocreate2 = INBOX.NoSPAM autosubscribe = INBOX.SPAM autosubscribe2 = INBOX.NoSPAM quota = maildir }
protocol imap { mail_plugins = $mail_plugins imap_quota autocreate }
And in passwd-ldap.conf I have some like this to add extra plugins:
user_attrs = homeDirectory=home,uid=user,mailQuota=quota_rule=*:bytes=%$,mailPlugins=mail_plugins
With this. I can see that dovecot load all plugins from settings, but in the user session, I can get only the plugins that I have selected in mailPlugins field
If i check some like this: mailPlugins=mail_plugins=$mail_plugins %$,
The imap session user is aborted after login.
How can I add extra plugins by ldap without put on ldap all user plugins?
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
On Fri, 2011-06-03 at 12:30 +0200, Antonio Perez-Aranda wrote:
And in passwd-ldap.conf I have some like this to add extra plugins:
user_attrs = homeDirectory=home,uid=user,mailQuota=quota_rule=*:bytes=%$,mailPlugins=mail_plugins
This completely overrides mail_plugins setting..
With this. I can see that dovecot load all plugins from settings, but in the user session, I can get only the plugins that I have selected in mailPlugins field
If i check some like this: mailPlugins=mail_plugins=$mail_plugins %$,
$mail_plugins variable works only inside dovecot.conf while the settings are being parsed.
The imap session user is aborted after login.
How can I add extra plugins by ldap without put on ldap all user plugins?
The best you can do now is:
mailPlugins=mail_plugins=plugin1,plugin2,plugin3,%$
i.e. list the global plugins in here as well as in the global mail_plugins setting.
OK thanks. It isn't pretty but is running.
2011/6/3 Timo Sirainen tss@iki.fi:
On Fri, 2011-06-03 at 12:30 +0200, Antonio Perez-Aranda wrote:
And in passwd-ldap.conf I have some like this to add extra plugins:
user_attrs = homeDirectory=home,uid=user,mailQuota=quota_rule=*:bytes=%$,mailPlugins=mail_plugins
This completely overrides mail_plugins setting..
With this. I can see that dovecot load all plugins from settings, but in the user session, I can get only the plugins that I have selected in mailPlugins field
If i check some like this: mailPlugins=mail_plugins=$mail_plugins %$,
$mail_plugins variable works only inside dovecot.conf while the settings are being parsed.
The imap session user is aborted after login.
How can I add extra plugins by ldap without put on ldap all user plugins?
The best you can do now is:
mailPlugins=mail_plugins=plugin1,plugin2,plugin3,%$
i.e. list the global plugins in here as well as in the global mail_plugins setting.
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
Umm, it isn't running.
If I put plugin imap_quota forced on user_attrs, then IMAP and Dovedm doesn't run correctly. They can load this plugin.
Maybe we can do a patch for ldap/config to avoid overwrite "all plugins" enabled and support to append to enabled?
2011/6/3 Antonio Perez-Aranda aperezaranda@yaco.es:
OK thanks. It isn't pretty but is running.
2011/6/3 Timo Sirainen tss@iki.fi:
On Fri, 2011-06-03 at 12:30 +0200, Antonio Perez-Aranda wrote:
And in passwd-ldap.conf I have some like this to add extra plugins:
user_attrs = homeDirectory=home,uid=user,mailQuota=quota_rule=*:bytes=%$,mailPlugins=mail_plugins
This completely overrides mail_plugins setting..
With this. I can see that dovecot load all plugins from settings, but in the user session, I can get only the plugins that I have selected in mailPlugins field
If i check some like this: mailPlugins=mail_plugins=$mail_plugins %$,
$mail_plugins variable works only inside dovecot.conf while the settings are being parsed.
The imap session user is aborted after login.
How can I add extra plugins by ldap without put on ldap all user plugins?
The best you can do now is:
mailPlugins=mail_plugins=plugin1,plugin2,plugin3,%$
i.e. list the global plugins in here as well as in the global mail_plugins setting.
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
Hmm. Maybe something generic: Returning "foo" extra field overwrites "foo" setting, but returning "+foo" extra field appends the value to the "foo" setting? See if the attached patch works (untested).
On Mon, 2011-06-06 at 12:18 +0200, Antonio Perez-Aranda wrote:
Umm, it isn't running.
If I put plugin imap_quota forced on user_attrs, then IMAP and Dovedm doesn't run correctly. They can load this plugin.
Maybe we can do a patch for ldap/config to avoid overwrite "all plugins" enabled and support to append to enabled?
2011/6/3 Antonio Perez-Aranda aperezaranda@yaco.es:
OK thanks. It isn't pretty but is running.
2011/6/3 Timo Sirainen tss@iki.fi:
On Fri, 2011-06-03 at 12:30 +0200, Antonio Perez-Aranda wrote:
And in passwd-ldap.conf I have some like this to add extra plugins:
user_attrs = homeDirectory=home,uid=user,mailQuota=quota_rule=*:bytes=%$,mailPlugins=mail_plugins
This completely overrides mail_plugins setting..
With this. I can see that dovecot load all plugins from settings, but in the user session, I can get only the plugins that I have selected in mailPlugins field
If i check some like this: mailPlugins=mail_plugins=$mail_plugins %$,
$mail_plugins variable works only inside dovecot.conf while the settings are being parsed.
The imap session user is aborted after login.
How can I add extra plugins by ldap without put on ldap all user plugins?
The best you can do now is:
mailPlugins=mail_plugins=plugin1,plugin2,plugin3,%$
i.e. list the global plugins in here as well as in the global mail_plugins setting.
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
How can I enable i_debug on settings-parser.c ?
2011/6/7 Timo Sirainen tss@iki.fi:
Hmm. Maybe something generic: Returning "foo" extra field overwrites "foo" setting, but returning "+foo" extra field appends the value to the "foo" setting? See if the attached patch works (untested).
On Mon, 2011-06-06 at 12:18 +0200, Antonio Perez-Aranda wrote:
Umm, it isn't running.
If I put plugin imap_quota forced on user_attrs, then IMAP and Dovedm doesn't run correctly. They can load this plugin.
Maybe we can do a patch for ldap/config to avoid overwrite "all plugins" enabled and support to append to enabled?
2011/6/3 Antonio Perez-Aranda aperezaranda@yaco.es:
OK thanks. It isn't pretty but is running.
2011/6/3 Timo Sirainen tss@iki.fi:
On Fri, 2011-06-03 at 12:30 +0200, Antonio Perez-Aranda wrote:
And in passwd-ldap.conf I have some like this to add extra plugins:
user_attrs = homeDirectory=home,uid=user,mailQuota=quota_rule=*:bytes=%$,mailPlugins=mail_plugins
This completely overrides mail_plugins setting..
With this. I can see that dovecot load all plugins from settings, but in the user session, I can get only the plugins that I have selected in mailPlugins field
If i check some like this: mailPlugins=mail_plugins=$mail_plugins %$,
$mail_plugins variable works only inside dovecot.conf while the settings are being parsed.
The imap session user is aborted after login.
How can I add extra plugins by ldap without put on ldap all user plugins?
The best you can do now is:
mailPlugins=mail_plugins=plugin1,plugin2,plugin3,%$
i.e. list the global plugins in here as well as in the global mail_plugins setting.
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote:
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
I just test it and it is running.
Greats.
2011/6/7 Timo Sirainen tss@iki.fi:
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote:
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
It must run on dovecot 2.0.13?
We are upgrading to 2.0.13 and with this I get the follow message:
Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: +mail_plugins=fts fts_solr�G
2011/6/7 Timo Sirainen tss@iki.fi:
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote:
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
This line:
value = settings_parse_get_value(set_parser, key, &type);
Is returning a empty value. Maybe, set_parser has been cleared?
If I try to get another keys from my config that I can watch with doveadm I get "extrange" values like this with i_debug()
- mail_debug -> #001
- mail_location -> #010
- auth_realms -> #020#002
2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es:
It must run on dovecot 2.0.13?
We are upgrading to 2.0.13 and with this I get the follow message:
Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: +mail_plugins=fts fts_solr�G
2011/6/7 Timo Sirainen tss@iki.fi:
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote:
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
Well, this "extrange" vaues is NULL.
Maybe, the set_parser is a new environment to set settings but then ¿when is make the config merge?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This line:
value = settings_parse_get_value(set_parser, key, &type);
Is returning a empty value. Maybe, set_parser has been cleared?
If I try to get another keys from my config that I can watch with doveadm I get "extrange" values like this with i_debug()
* mail_debug -> #001 * mail_location -> #010 * auth_realms -> #020#002
2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es:
It must run on dovecot 2.0.13?
We are upgrading to 2.0.13 and with this I get the follow message:
Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: +mail_plugins=fts fts_solr�G
2011/6/7 Timo Sirainen tss@iki.fi:
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote:
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
This patch is running but it only run with mail_plugins.
This is because I can't select the "mail_plugins" value from any function to get this throw the name key.
Maybe this need more hard development to do this as generic "property" for any config value.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
Well, this "extrange" vaues is NULL.
Maybe, the set_parser is a new environment to set settings but then ¿when is make the config merge?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This line:
value = settings_parse_get_value(set_parser, key, &type);
Is returning a empty value. Maybe, set_parser has been cleared?
If I try to get another keys from my config that I can watch with doveadm I get "extrange" values like this with i_debug()
* mail_debug -> #001 * mail_location -> #010 * auth_realms -> #020#002
2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es:
It must run on dovecot 2.0.13?
We are upgrading to 2.0.13 and with this I get the follow message:
Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: +mail_plugins=fts fts_solr�G
2011/6/7 Timo Sirainen tss@iki.fi:
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote:
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
This patch fix a bug and remove some debug info from patch sent before.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch is running but it only run with mail_plugins.
This is because I can't select the "mail_plugins" value from any function to get this throw the name key.
Maybe this need more hard development to do this as generic "property" for any config value.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
Well, this "extrange" vaues is NULL.
Maybe, the set_parser is a new environment to set settings but then ¿when is make the config merge?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This line:
value = settings_parse_get_value(set_parser, key, &type);
Is returning a empty value. Maybe, set_parser has been cleared?
If I try to get another keys from my config that I can watch with doveadm I get "extrange" values like this with i_debug()
* mail_debug -> #001 * mail_location -> #010 * auth_realms -> #020#002
2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es:
It must run on dovecot 2.0.13?
We are upgrading to 2.0.13 and with this I get the follow message:
Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: +mail_plugins=fts fts_solr�G
2011/6/7 Timo Sirainen tss@iki.fi:
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote:
Greats, I'm working on patch from this morning, but it's very hard to debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
Maybe this could be a "feature request" for dovecot 2.0.14 - 2.0.15 or 2.1 ?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch fix a bug and remove some debug info from patch sent before.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch is running but it only run with mail_plugins.
This is because I can't select the "mail_plugins" value from any function to get this throw the name key.
Maybe this need more hard development to do this as generic "property" for any config value.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
Well, this "extrange" vaues is NULL.
Maybe, the set_parser is a new environment to set settings but then ¿when is make the config merge?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This line:
value = settings_parse_get_value(set_parser, key, &type);
Is returning a empty value. Maybe, set_parser has been cleared?
If I try to get another keys from my config that I can watch with doveadm I get "extrange" values like this with i_debug()
* mail_debug -> #001 * mail_location -> #010 * auth_realms -> #020#002
2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es:
It must run on dovecot 2.0.13?
We are upgrading to 2.0.13 and with this I get the follow message:
Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: +mail_plugins=fts fts_solr�G
2011/6/7 Timo Sirainen tss@iki.fi:
On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote: > Greats, I'm working on patch from this morning, but it's very hard to > debug on settings-parser
I don't think you should need to touch that code. It's a bit difficult for me also to follow..
> How can I enable i_debug on settings-parser.c ?
What do you mean? You could add i_debug() calls and it should work just the same as everywhere.
Did you try the patch in my previous mail? I think that should be enough. You could then use:
user_attrs = .., mailPlugins=+mail_plugins
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
I did some fixes to my original patch to make it actually work the way I intended: http://hg.dovecot.org/dovecot-2.0/rev/3d07ab746a67
On Tue, 2011-06-14 at 17:38 +0200, Antonio Perez-Aranda wrote:
Maybe this could be a "feature request" for dovecot 2.0.14 - 2.0.15 or 2.1 ?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch fix a bug and remove some debug info from patch sent before.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch is running but it only run with mail_plugins.
This is because I can't select the "mail_plugins" value from any function to get this throw the name key.
Maybe this need more hard development to do this as generic "property" for any config value.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
Well, this "extrange" vaues is NULL.
Maybe, the set_parser is a new environment to set settings but then ¿when is make the config merge?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This line:
value = settings_parse_get_value(set_parser, key, &type);
Is returning a empty value. Maybe, set_parser has been cleared?
If I try to get another keys from my config that I can watch with doveadm I get "extrange" values like this with i_debug()
- mail_debug -> #001
- mail_location -> #010
- auth_realms -> #020#002
2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es:
It must run on dovecot 2.0.13?
We are upgrading to 2.0.13 and with this I get the follow message:
Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: +mail_plugins=fts fts_solr�G
2011/6/7 Timo Sirainen tss@iki.fi: > On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote: >> Greats, I'm working on patch from this morning, but it's very hard to >> debug on settings-parser > > I don't think you should need to touch that code. It's a bit difficult > for me also to follow.. > >> How can I enable i_debug on settings-parser.c ? > > What do you mean? You could add i_debug() calls and it should work just > the same as everywhere. > > Did you try the patch in my previous mail? I think that should be > enough. You could then use: > > user_attrs = .., mailPlugins=+mail_plugins > > >
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
How it works? +key=value or key+=value
2011/6/22 Timo Sirainen tss@iki.fi:
I did some fixes to my original patch to make it actually work the way I intended: http://hg.dovecot.org/dovecot-2.0/rev/3d07ab746a67
On Tue, 2011-06-14 at 17:38 +0200, Antonio Perez-Aranda wrote:
Maybe this could be a "feature request" for dovecot 2.0.14 - 2.0.15 or 2.1 ?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch fix a bug and remove some debug info from patch sent before.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch is running but it only run with mail_plugins.
This is because I can't select the "mail_plugins" value from any function to get this throw the name key.
Maybe this need more hard development to do this as generic "property" for any config value.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
Well, this "extrange" vaues is NULL.
Maybe, the set_parser is a new environment to set settings but then ¿when is make the config merge?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This line:
value = settings_parse_get_value(set_parser, key, &type);
Is returning a empty value. Maybe, set_parser has been cleared?
If I try to get another keys from my config that I can watch with doveadm I get "extrange" values like this with i_debug()
* mail_debug -> #001 * mail_location -> #010 * auth_realms -> #020#002
2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es: > It must run on dovecot 2.0.13? > > We are upgrading to 2.0.13 and with this I get the follow message: > > Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: > +mail_plugins=fts fts_solr�G > > > 2011/6/7 Timo Sirainen tss@iki.fi: >> On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote: >>> Greats, I'm working on patch from this morning, but it's very hard to >>> debug on settings-parser >> >> I don't think you should need to touch that code. It's a bit difficult >> for me also to follow.. >> >>> How can I enable i_debug on settings-parser.c ? >> >> What do you mean? You could add i_debug() calls and it should work just >> the same as everywhere. >> >> Did you try the patch in my previous mail? I think that should be >> enough. You could then use: >> >> user_attrs = .., mailPlugins=+mail_plugins >> >> >> > > > > -- > Antonio Pérez-Aranda Alcaide > aperezaranda@yaco.es > > Yaco Sistemas S.L. > http://www.yaco.es/ > C/ Rioja 5, 41001 Sevilla > Teléfono +34 954 50 00 57 > Fax +34 954 50 09 29 >
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
It's +key=value. And in some situations where you'd have userdb_key=value you'd now have userdb_+key=value, which is kind of ugly and actually makes me think key+=value could be better.. :)
Yeah, changed now: http://hg.dovecot.org/dovecot-2.0/rev/4285147ed694
On Mon, 2011-06-27 at 16:25 +0200, Antonio Perez-Aranda wrote:
How it works? +key=value or key+=value
2011/6/22 Timo Sirainen tss@iki.fi:
I did some fixes to my original patch to make it actually work the way I intended: http://hg.dovecot.org/dovecot-2.0/rev/3d07ab746a67
On Tue, 2011-06-14 at 17:38 +0200, Antonio Perez-Aranda wrote:
Maybe this could be a "feature request" for dovecot 2.0.14 - 2.0.15 or 2.1 ?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch fix a bug and remove some debug info from patch sent before.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
This patch is running but it only run with mail_plugins.
This is because I can't select the "mail_plugins" value from any function to get this throw the name key.
Maybe this need more hard development to do this as generic "property" for any config value.
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es:
Well, this "extrange" vaues is NULL.
Maybe, the set_parser is a new environment to set settings but then ¿when is make the config merge?
2011/6/9 Antonio Perez-Aranda aperezaranda@yaco.es: > This line: > > value = settings_parse_get_value(set_parser, key, &type); > > Is returning a empty value. Maybe, set_parser has been cleared? > > If I try to get another keys from my config that I can watch with > doveadm I get "extrange" values like this with i_debug() > > * mail_debug -> #001 > * mail_location -> #010 > * auth_realms -> #020#002 > > > 2011/6/8 Antonio Perez-Aranda aperezaranda@yaco.es: >> It must run on dovecot 2.0.13? >> >> We are upgrading to 2.0.13 and with this I get the follow message: >> >> Jun 8 16:15:03 kvm3 dovecot: imap: Debug: Unknown userdb setting: >> +mail_plugins=fts fts_solr�G >> >> >> 2011/6/7 Timo Sirainen tss@iki.fi: >>> On Tue, 2011-06-07 at 16:16 +0200, Antonio Perez-Aranda wrote: >>>> Greats, I'm working on patch from this morning, but it's very hard to >>>> debug on settings-parser >>> >>> I don't think you should need to touch that code. It's a bit difficult >>> for me also to follow.. >>> >>>> How can I enable i_debug on settings-parser.c ? >>> >>> What do you mean? You could add i_debug() calls and it should work just >>> the same as everywhere. >>> >>> Did you try the patch in my previous mail? I think that should be >>> enough. You could then use: >>> >>> user_attrs = .., mailPlugins=+mail_plugins >>> >>> >>> >> >> >> >> -- >> Antonio Pérez-Aranda Alcaide >> aperezaranda@yaco.es >> >> Yaco Sistemas S.L. >> http://www.yaco.es/ >> C/ Rioja 5, 41001 Sevilla >> Teléfono +34 954 50 00 57 >> Fax +34 954 50 09 29 >> > > > > -- > Antonio Pérez-Aranda Alcaide > aperezaranda@yaco.es > > Yaco Sistemas S.L. > http://www.yaco.es/ > C/ Rioja 5, 41001 Sevilla > Teléfono +34 954 50 00 57 > Fax +34 954 50 09 29 >
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
-- Antonio Pérez-Aranda Alcaide aperezaranda@yaco.es
Yaco Sistemas S.L. http://www.yaco.es/ C/ Rioja 5, 41001 Sevilla Teléfono +34 954 50 00 57 Fax +34 954 50 09 29
participants (2)
-
Antonio Perez-Aranda
-
Timo Sirainen