Displaying 20 results from an estimated 23 matches for "i_strdup".
Did you mean:
t_strdup
2008 Apr 19
3
building a simple antispam plugin
...kend_handle_mail I put store the signature returned from
signature_extract into my antispam_transaction_context. In
backend_commit it appears that the signature is empty. (It wasn't in
backend_handle_mail).
Somehow between backend_handle_mail en backend_commit it has been
cleared... When I use i_strdup it appears to work. Anyone can tell me
where this clearing happens? Is i_strdup the right way to do it then?
Thanks,
Alexander
2018 May 31
3
use instance-name for syslog?
...ject: [PATCH 1/2] master: Do not prepend "dovecot-" to a process name
Why not? I'd think it would be useful to always find dovecot processes.
> - openlog(ident, options, facility);
> + static char *syslog_ident = NULL;
> +
> + i_free(syslog_ident);
> + syslog_ident = i_strdup(ident);
> +
> + openlog(syslog_ident, options, facility);
I don't think this is necessary?
> + env_put(t_strconcat("INSTANCE_NAME=", set->instance_name, NULL));
Also not needed.
But yeah, I guess in general it would make sense to use instance_name for syslog ident.
2017 Aug 03
2
proxy-dict with tcp connection
...nix(dict_connections, &dict->conn.conn, path);
+ if (port > 0) {
+ connection_init_client_ip(dict_connections, &dict->conn.conn,
&ip, port);
+ } else {
+ connection_init_client_unix(dict_connections, &dict->conn.conn,
path);
+ }
dict->uri = i_strdup(dest_uri + 1);
dict->ioloop = io_loop_create();
But unfortunately this crashes:
Jul 28 13:20:04 auth: Error: auth worker: Aborted PASSL request for
info at outdoor-training.de: Worker process died unexpectedly
Jul 28 13:20:04 auth-worker(705): Fatal: master: service(auth-worker):
child 7...
2003 Jun 23
1
RFC: PAM service name change?
...y
-------------- next part --------------
--- dovecot-0.99.10-rc1/src/auth/passdb-pam.c.servicename 2003-06-23 00:56:22.000000000 -0400
+++ dovecot-0.99.10-rc1/src/auth/passdb-pam.c 2003-06-23 00:56:27.000000000 -0400
@@ -366,7 +366,7 @@
static void pam_init(const char *args)
{
- service_name = i_strdup(*args != '\0' ? args : "imap");
+ service_name = i_strdup(*args != '\0' ? args : "dovecot");
to_wait = NULL;
}
2009 Jun 06
2
expire-tool --test: timestamps
...else {
- i_info("%s: timestamp %s (%s) -> %s (%s)",
- userp, value, ctime(&expire_time),
- new_value, ctime(&oldest));
+ char *expire_ctime = i_strdup(ctime(&expire_time));
+ char *oldest_ctime = i_strdup(ctime(&oldest));
+ i_info("%s: timestamp %s (%.24s) -> %s (%.24s)",
+ userp, value, expire_ctime,
+...
2009 Nov 14
2
Patch: event port-based ioloop and notify
Greetings,
thanks to all of you who work on Dovecot!
I have prepared a small patch to support Solaris 10 and Opensolaris'
event port mechanism for both the ioloop and the notify subsystems. It
seems to work fine for me, but I haven't conducted any extensive
testing.
It would be great if someone could review and/or test it (and if it
could eventually enter the code base).
I have
2018 May 30
3
use instance-name for syslog?
Hello,
When running multiple instances of dovecot on the same host (or running multiple docker container),
it is hard to distinguish logs from different processes: the syslog entries are all prefixed with the same identifier "dovecot"
It is hardcoded here:
https://github.com/dovecot/core/blob/master/src/lib-master/master-service.c#L420
Would it make sense to use the already implemented
2018 Jun 01
0
use instance-name for syslog?
...useful to always find dovecot processes.
I want to use 'director/*' names, not 'dovecot-director/*'
for short name.
> > - openlog(ident, options, facility);
> > + static char *syslog_ident = NULL;
> > +
> > + i_free(syslog_ident);
> > + syslog_ident = i_strdup(ident);
> > +
> > + openlog(syslog_ident, options, facility);
>
>
> I don't think this is necessary?
Sorry. I'm not expert of Dovecot implementation...
> > + env_put(t_strconcat("INSTANCE_NAME=", set->instance_name, NULL));
>
> Also not ne...
2020 Aug 13
1
2.3.11.3 mail_cache_open_or_create_path called with null path
...s with 2.3.11.3:
lmtp: vfprintf %s NULL in "Cache %s: "
dovecot-lda: vfprintf %s NULL in "Cache %s: "
src/lib-index/mail-cache.c:
..
557 struct mail_cache *
558 mail_cache_open_or_create_path(struct mail_index *index, const char *path)
559 {
..
565 cache->filepath = i_strdup(path);
..
572 event_set_append_log_prefix(cache->event,
573 t_strdup_printf("Cache %s: ", cache->filepath);
..
Seems something is wrong to have this function called with no cache path?
2012 Feb 23
1
Creating and interacting with array inside plugin
Hi Timo....
I Follow your instruction to look inside quota plugin to get the
notification from dovecot that expunged a message, that's Ok.
Follow the quota, it's use a array to keep all uids from a email
expunged, to compare with uid that is got in notify_sync, that's OK
too, but to me i need to keep uid and a char* with my body name, to
erase it too.
I made this:
struct
2017 Aug 03
0
proxy-dict with tcp connection
....conn, path);
> + if (port > 0) {
> + connection_init_client_ip(dict_connections, &dict->conn.conn,
> &ip, port);
> + } else {
> + connection_init_client_unix(dict_connections, &dict->conn.conn,
> path);
> + }
> dict->uri = i_strdup(dest_uri + 1);
>
> dict->ioloop = io_loop_create();
>
> But unfortunately this crashes:
>
> Jul 28 13:20:04 auth: Error: auth worker: Aborted PASSL request for
> info at outdoor-training.de: Worker process died unexpectedly
> Jul 28 13:20:04 auth-worker(705): Fata...
2016 Nov 28
6
Antispam plugin: insufficent error messages
...ME(NOTPOSSIBLE)
"antispam signature not found");
return -1; /* <-- HERE */
} else {
return 0;
}
}
while (signatures[1])
signatures++;
item = i_new(struct siglist, 1);
item->next = *list;
item->wanted = wanted;
item->sig = i_strdup(signatures[0]);
*list = item;
return 0;
}
So, what's happening is "antispam signature not found". My question: What
does this mean? What's going on?
My "dovecot -n" output is attached.
Bye
Volker
-------------- next part --------------
# 2.2.22 (fe789d2): /etc/d...
2009 Dec 13
1
Different PROXY for IMAP and POP3 using LDAP-auth
--------------------------------------------------
For all non german speaking people:
Oliver asked:
In an old posting I've read something about different proxy hosts for
IMAP and POP3.
http://www.dovecot.org/list/dovecot/2008-July/031885.html
I've got the same problem and want to ask you, if there is a patch for
replacing [variable names in] pass_attrs.
2010 Feb 15
1
dovecot-sieve vacation vs qmail-ldap
Helloo,
We are using dovectot lda with qmail-ldap,
dovecot 1.2.10, sieve 0.1.15
lda is executed as
exec /var/qmail/bin/preline -f /usr/local/dovecot/libexec/dovecot/deliver -s
preline adds Delivered-To: header,
everything works fine except vacation
Feb 9 16:07:16 thebe dovecot: deliver(lazy): sieve:
msgid=unspecified: discarding vacation response for message implicitly
delivered to <lazy
2016 Dec 17
0
Antispam plugin: insufficent error messages
...");
> return -1; /* <-- HERE */
> } else {
> return 0;
> }
> }
>
> while (signatures[1])
> signatures++;
>
> item = i_new(struct siglist, 1);
> item->next = *list;
> item->wanted = wanted;
> item->sig = i_strdup(signatures[0]);
>
> *list = item;
>
> return 0;
> }
>
> So, what's happening is "antispam signature not found". My question: What
> does this mean? What's going on?
>
I too encountered this same issue after upgrading to 2.2.27. I traced it
to an app...
2018 May 30
0
use instance-name for syslog?
...b/src/lib/failures.c
@@ -443,7 +443,12 @@ void i_syslog_error_handler(const struct failure_context *ctx,
void i_set_failure_syslog(const char *ident, int options, int facility)
{
- openlog(ident, options, facility);
+ static char *syslog_ident = NULL;
+
+ i_free(syslog_ident);
+ syslog_ident = i_strdup(ident);
+
+ openlog(syslog_ident, options, facility);
i_set_fatal_handler(i_syslog_fatal_handler);
i_set_error_handler(i_syslog_error_handler);
diff --git a/src/master/service-process.c b/src/master/service-process.c
index bc10df1..47ee7bf 100644
--- a/src/master/service-process.c
+++ b/src/m...
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...----------- next part --------------
--- quota-fs.c.orig 2006-08-10 18:01:42.000000000 -0400
+++ quota-fs.c 2006-08-21 19:33:38.000000000 -0400
@@ -53,6 +53,7 @@
struct quota_root root;
uid_t uid;
+ gid_t gid;
struct fs_quota_mountpoint *mount;
};
@@ -73,6 +74,7 @@
root->root.name = i_strdup(name);
root->root.v = quota_backend_fs.v;
root->uid = geteuid();
+ root->gid = getegid();
return &root->root;
}
@@ -177,7 +179,16 @@
static const char *const *
fs_quota_root_get_resources(struct quota_root *root __attr_unused__)
{
- static const char *resources[] = { QUO...
2009 Jan 06
3
Apple patches 11-14
These are the last patches for now, and they're small. The base for
each of them is dovecot-1.1.7 + Apple patches 9 and 10, again not
because of a logical dependency but just because these patches change
parts of the earlier patches.
Patch #11 adds a few dtrace providers to key points in the code. We
are still validating the correct placement and usefulness of these.
One cool
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...tic struct multi_pgsql_query *create_user_query(char const *query,
+ sql_query_callback_t *cb, void *ctx)
+{
+ struct multi_pgsql_user_query *qry;
+
+ qry = i_new(struct multi_pgsql_user_query, 1);
+
+ init_simple_query(&qry->super, &user_query_vtable,
+ USER_QUERY_LIFETIME, i_strdup(query));
+
+ qry->cb = cb;
+ qry->ctx = ctx;
+ return (void *)qry;
+}
+
+/*** sync_query */
+struct multi_pgsql_sync_query {
+ struct multi_pgsql_simple_query super;
+
+ struct ioloop *ioloop;
+ PGresult *pgr;
+ char *errmsg;
+};
+
+static void sync_query_result(struct multi_pgsql_query *q...
2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started
experimenting with the filesystem quotas, and I have a suggestion for
improvement. On my mail server, I use group-based quotas, and would
like to have Dovecot be able to report these quotas.
It should be simple to implement, requiring only changes to the
quota-fs.c file of the quota plugin. Simply changing USRQUOTA to