Displaying 7 results from an estimated 7 matches for "mail_user_plugin_getenv".
2013 Aug 01
1
[PATCH] quota-status: allow different action for messages that are too large (over maximum quota)
...ient == NULL) {
@@ -98,14 +98,21 @@
if (ret == 0) {
value = nouser_reply;
} else if (ret > 0) {
- if ((ret = quota_check(user, client->size, &error)) > 0) {
+ if ((ret = quota_check(user, client->size, &error, &too_large)) > 0) {
/* under quota */
value = mail_user_plugin_getenv(user, "quota_status_success");
if (value == NULL)
value = "OK";
} else if (ret == 0) {
- /* over quota */
- value = mail_user_plugin_getenv(user, "quota_status_overquota");
+ if (too_large == TRUE) {
+ /* even over maximum quota */
+ value = mai...
2012 Nov 16
1
whoson plugin for 2.0
I have found a plugin at
ftp://ftp.ufanet.ru/pub/boco/dovecot/whoson-plugin/
I was able to make it function on a dovecot 1.2.8 server, by changing
__attr_unused__ to ATTR_UNUSED and strlcpy to i_strocpy (since glibc
doesn't HAVE strlcpy, on purpose).
However, it doesn't work with 2.1
this is, of course, because getenv() no longer functions lie it used to
in plugins.
so i need a
2010 Mar 30
1
Get plugins configuration in dovecot 2.0
In 1.X to get configuration Timo said.
In v1.x they're in environment variables. So if you have:
plugin {
foo = bar
}
getenv("FOO") returns "bar".
But, in 2.0 ?!
getenv dont work....
2010 Aug 03
1
Passing Arguments to Plugin
Guys,
Making progress on my plugin to support the custom IMAP command required by a special embedded system.
Have been looking through the documentation to see if it is possible to pass parameters down to a plugin through the dovecot.conf
So is there a simple way?
Regards,
John
2013 Aug 01
0
[PATCH] quota-status: remove unnecessary newlines
...necessary newlines
present in the default overquota message. It applies to 2.2 and 2.1.
Ulrich
--- a/src/plugins/quota/quota-status.c 2013-08-01 14:35:35.000000000 +0200
+++ b/src/plugins/quota/quota-status.c 2013-08-01 17:58:26.000000000 +0200
@@ -107,7 +107,7 @@
/* over quota */
value = mail_user_plugin_getenv(user, "quota_status_overquota");
if (value == NULL)
- value = t_strdup_printf("554 5.2.2 %s\n\n", error);
+ value = t_strdup_printf("554 5.2.2 %s", error);
}
value = t_strdup(value); /* user's pool is being freed */
mail_user_unref(&user);
2013 Dec 13
4
Accessing plain text password from memory
Is there a way to retrieve the client's password in plain text from memory ?
I don't store the password in plain text in my postgreSQL but I need it
when the client is connected to make crypto computation.
If I write a plugin to do the job, how could I retrieve the plain text
password from master ?
Thank you for your help,
Regards,
Stan.
2015 Mar 03
2
acl and lazy_expunge plugins are incompatible?
Hello list.
Following two previous unanswered requests
(http://www.dovecot.org/list/dovecot/2014-August/097449.html and
http://www.dovecot.org/list/dovecot/2014-May/096261.html), I fell into the
same problem: ACL and lazy_expunge plugins do not work together.
I had lazy_expunge enabled working OK. Then I activated ACL plugin, and gave
dovecot.2 visibily over paolo.cravero's Inbox: the IMAP