Displaying 20 results from an estimated 61 matches for "t_strconcat".
2012 Aug 13
2
[PATCH] Replace hard-coded PKG_STATEDIR with state_dir setting
...const struct master_instance *inst;
- const char *pidfile_path;
+ const char *instance_path, *pidfile_path;
bool show_config = FALSE;
int c;
@@ -71,7 +71,8 @@
doveadm_print_header_simple("running");
}
- list = master_instance_list_init(MASTER_INSTANCE_PATH);
+ instance_path = t_strconcat(doveadm_settings->state_dir, "/instances", NULL);
+ list = master_instance_list_init(instance_path);
iter = master_instance_list_iterate_init(list);
while ((inst = master_instance_iterate_list_next(iter)) != NULL) {
if (argv[0] != NULL && strcmp(argv[0], inst->name) !...
2009 Nov 10
2
v1.2.7 released
http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz
http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz.sig
* IMAP: IDLE now sends "Still here" notifications to same user's
connections at the same time. This hopefully reduces power usage
of some mobile clients that use multiple IDLEing connections.
* IMAP: If imap_capability is set, show it in the login banner.
+ IMAP:
2009 Nov 10
2
v1.2.7 released
http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz
http://dovecot.org/releases/1.2/dovecot-1.2.7.tar.gz.sig
* IMAP: IDLE now sends "Still here" notifications to same user's
connections at the same time. This hopefully reduces power usage
of some mobile clients that use multiple IDLEing connections.
* IMAP: If imap_capability is set, show it in the login banner.
+ IMAP:
2017 Aug 03
2
proxy-dict with tcp connection
...r2port(args[1], &port) < 0) {
+ *error_r = t_strdup_printf("Invalid port: %s in URI: %s",
args[1], uri);
+ return -1;
+ }
+ dest_uri = strrchr(uri, ':');
+ } else if (uri[0] == ':') {
/* default path */
path = t_strconcat(set->base_dir,
"/"DEFAULT_DICT_SERVER_SOCKET_FNAME, NULL);
@@ -784,7 +802,13 @@ client_dict_init(struct dict *driver, const char *uri,
path = t_strconcat(set->base_dir, "/",
t_strdup_until(uri, dest_uri), NULL);
}
- connection_ini...
2018 May 30
0
use instance-name for syslog?
...+++ b/src/master/main.c
@@ -86,8 +86,6 @@ void process_exec(const char *cmd, const char *extra_args[])
/* prefix with dovecot/ */
argv[0] = t_strdup_printf("%s/%s", services->set->instance_name,
argv[0]);
- if (strncmp(argv[0], PACKAGE, strlen(PACKAGE)) != 0)
- argv[0] = t_strconcat(PACKAGE"-", argv[0], NULL);
(void)execv_const(executable, argv);
}
--
2.0.1
>From 36d052adbd04f8c8a89ba66e086e22c152a5a93c Mon Sep 17 00:00:00 2001
From: SATOH Fumiyasu <fumiyas at osstech.co.jp>
Date: Tue, 1 Jul 2014 19:22:56 +0900
Subject: [PATCH 2/2] lib-master: Set ins...
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
2017 Dec 19
0
sieve_pipe_socket_dir not created at startup for configured pipe service
...tion suggests, appears to be used by the plugin to construct a path to find the ?script? (the socket in this case), and it is always relative to base_dir and must include the contents of sieve_pipe_socket_dir.
/* Try socket first */
if ( ext_config->socket_dir != NULL ) {
path = t_strconcat(senv->user->set->base_dir, "/",
ext_config->socket_dir, "/", program_name, NULL);
But nowhere in dovecot can I find a place where this subdir would be created at startup. The only subdirs that I can find created are all explicitly hardcoded in master-se...
2018 May 31
3
use instance-name for syslog?
...ways 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.
2003 Jun 03
1
error
hi,
I've got the following alert window in mozilla (with dovecot):
---------------------------------------
The current command did not succeed. The mail server responded: Error in
IMAP command: Too long argument..
---------------------------------------
although there is not any messages in my imap.log file.
--
Levente "Si vis pacem para bellum!"
2006 Apr 19
0
[patch] Re: Test migration (IMAP copy) and INTERNALDATE?]
...the process resolves it.
Below is my patch.
Steve
--- dovecot-1.0.beta7-orig/src/lib-storage/index/maildir/maildir-save.c
2006-03-25 05:53:43.000000000 -0500
+++ dovecot-1.0.beta7/src/lib-storage/index/maildir/maildir-save.c
2006-04-19 09:47:32.000000000 -0400
@@ -70,9 +70,20 @@
t_strconcat(ctx->newdir, "/", basename, NULL) :
t_strconcat(ctx->curdir, "/", dest, NULL);
- if (link(tmp_path, new_path) == 0)
+ if (link(tmp_path, new_path) == 0) {
ret = 0;
- else {
+ if (ctx->received_date != (tim...
2006 Mar 31
3
C programmers, please help. need dovecot patch
Hi all.
Can any C programmers out there tell me how to fix Dovecot to default to
Maildir format when autodecting can't find anything? I don't know C, but
it seems like it would be a simple thing.
Right now, I use the autodetect mailbox feature because we want users to
choose to optionally be able to use Mbox format (we have some diehard unix
users with non-maildir clients). I have
2008 Oct 06
2
Dovecot 1.1.4 crash
.../usr/local/libexec/dovecot/imap:
Program terminated with signal 11, Segmentation fault.
#0 0x2adbeaa8 in expire_mailbox_transaction_commit (t=0x10045248, uid_validity_r=0x7fff77fc, first_saved_uid_r=0x7fff7800, last_saved_uid_r=0x7fff7804)
at expire-plugin.c:124
124 key = t_strconcat(DICT_PATH_SHARED, expire.username, "/",
(gdb) bt full
#0 0x2adbeaa8 in expire_mailbox_transaction_commit (t=0x10045248, uid_validity_r=0x7fff77fc, first_saved_uid_r=0x7fff7800, last_saved_uid_r=0x7fff7804)
at expire-plugin.c:124
key = 0x7fff7800 "?\f"
value...
2008 Jul 05
1
AIX: mntctl implementation for NFS quota support
...mntctl support to 'lib/mountpoint.c' today. My tests are
looking good and so I'd like to share the patch.
While I'm still not really familiar with dovecots memory management, I
need someone who is familiar with it to have a look on my lines of code.
Especially the usage or p_new, t_strconcat and p_free should be checked.
:-)
To activate the patch you have to add "#define HAVE_VMOUNT_H 1" do
'config.h'. Maybe someone wants to alter configure* to do this
automatically?
And of course Timo, if you find it useful, you may include the code in
one of the next dovecot r...
2003 Apr 15
1
PATCH allow_zero_gid option
...access.c 15 Apr 2003 17:37:26 -0000
@@ -31,12 +31,14 @@
#include <grp.h>
void restrict_access_set_env(const char *user, uid_t uid, gid_t gid,
- const char *chroot_dir)
+ const char *chroot_dir, int allow_zg)
{
if (user != NULL && *user != '\0')
env_put(t_strconcat("RESTRICT_USER=", user, NULL));
if (chroot_dir != NULL && *chroot_dir != '\0')
env_put(t_strconcat("RESTRICT_CHROOT=", chroot_dir, NULL));
+ if (allow_zg == TRUE)
+ env_put(t_strdup("ALLOW_ZERO_GID=TRUE"));
env_put(t_strdup_printf("RESTRI...
2007 Oct 01
1
potential maildir folder rename bug
...ge/index/maildir/maildir-storage.c
--- a/src/lib-storage/index/maildir/maildir-storage.c Sun Sep 30 18:03:17 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-storage.c Mon Oct 01 20:13:27 2007 +0100
@@ -937,6 +937,10 @@ static int rename_subfolders(struct inde
t_push();
old_listname = t_strconcat(oldname, names[i], NULL);
+ if (strcmp(old_listname, newname) == 0) {
+ t_pop();
+ continue;
+ }
new_listname = t_strconcat(newname, names[i], NULL);
oldpath = maildir_get_path(storage, old_listname);
newpath = maildir_get_path(storage, new_listname);
2006 Nov 08
1
Quota without dovecot LDA
...dovecot/control/ but I use vpopmail as LDA.
It's possible to add a setting in dovecot.conf to specify if dovecot LDA is
active??
This is my pseudo-patch:
src/plugins/quota/quota-maildir.c
static const char *maildirsize_get_path(struct mail_storage *storage)
{
if (lda_enable) {
return t_strconcat(mail_storage_get_mailbox_control_dir(storage, ""),
}
else {
bool is_file;
return t_strconcat(mail_storage_get_mailbox_path(storage, "", &is_file),
"/"MAILDIRSIZE_FILENAME, NULL);
}
}
dovecot.conf:
lda_enable = no
Ciao
Ri...
2017 Aug 03
0
proxy-dict with tcp connection
...; + *error_r = t_strdup_printf("Invalid port: %s in URI: %s",
> args[1], uri);
> + return -1;
> + }
> + dest_uri = strrchr(uri, ':');
> + } else if (uri[0] == ':') {
> /* default path */
> path = t_strconcat(set->base_dir,
> "/"DEFAULT_DICT_SERVER_SOCKET_FNAME, NULL);
> @@ -784,7 +802,13 @@ client_dict_init(struct dict *driver, const char *uri,
> path = t_strconcat(set->base_dir, "/",
> t_strdup_until(uri, dest_uri), NULL);
>...
2010 Apr 07
1
Per-user flags for shared folders
...delete a message, it
dissapear for other users of group mailbox. So my group mailboxes look like
a big scrapyard[?] I can compile from sources and add also \Deleted flag to
private flags, but it's not an elegant solution[?]
And my idea is easy to implement :) Only add here:
305 shared_path = t_strconcat(box->path, "/dovecot-shared", NULL);
306 if (stat(shared_path, &st) == 0)
307 box->private_flags_mask = MAIL_SEEN;
in maildir-storage.c some code for reading a mask from dovecot-shared file.
Unfortunatelly I'm not a good programmer, so I can't make a patch myself(((
---...
2017 Dec 18
3
sieve_pipe_socket_dir not created at startup for configured pipe service
Hi, all
I?m new to the list but not to dovecot. I?ve been using it in a basic configuration for some time, but finally decided to tweak my deployed system to take advantage of some more dovecot features. In particular I?m trying to set up pigeonhole to implement spam retraining with imapsieve. All of this is with dovecot 2.2.31 (65cde28) and pigeonhole 0.4.19.
Before going any further let me
2005 Jan 24
2
Problem with incorrect permissions with shared folders
Hi,
I'm seeing strange permissions when using an email client to create a new
sub folder in a shared folder.
This is dovecot-1.0test61
I have a directory /data/mail/shared owner=root
group=shared permissions=2770
I have a file /data/mail/shared/dovecot-shared owner=root
group-shared permissions=2660
User fred in in group shared (in /etc/group)
My understanding