search for: i_warn

Displaying 20 results from an estimated 43 matches for "i_warn".

Did you mean: __warn
2005 Aug 22
2
Re: Dovecot inotify problem
...m. Thanks for the link. I don't think akpm is right, unless something is really odd here. Could you add debugging output for me please? Maybe something like (this is not a patch you can apply, look at line 164 in src/lib/ioloop-notify-inotify.c) ctx->inotify_fd = inotify_init(); + i_warning("inotify_init returned fd %d", ctx->inotify_fd); if (ctx->inotify_fd == -1) { and line 106: IN_CLOSE | IN_MODIFY); + i_warning("inotify_add_watch returned %d", watchdescriptor); if (watchdescriptor < 0) { a...
2006 Jun 01
1
ssl-proxy: client certificates and crl check
...: name; } @@ -582,10 +588,22 @@ proxy = SSL_get_ex_data(ssl, extdata_index); proxy->cert_received = TRUE; + + /* HJHJ */ + char buf[1024]; + X509_NAME_oneline( X509_get_subject_name(ctx->current_cert),buf,sizeof(buf)); + if (!preverify_ok) + { proxy->cert_broken = TRUE; + i_warning("BAD CERT %s: %s",X509_verify_cert_error_string(ctx->error),buf); + } + else + { i_warning("CERT: %s",buf); } /* logging */ - return 1; + return preverify_ok; + /* HJHJ */ + } static int @@ -666,10 +684,20 @@ if (getenv("SSL_VERIFY_CLIENT_CERT") != N...
2008 Nov 21
2
[PATCH] drop root privileges on solaris, request for testing
...LE_CHOWN", + "PRIV_PROC_SETID", + "PRIV_PROC_CHROOT", + "PRIV_NET_PRIVADDR", + "PRIV_FILE_DAC_READ", + "PRIV_FILE_DAC_WRITE", + NULL + }, **p; + priv_set_t *priv_set; + int ret; + + priv_set = priv_allocset(); + if (priv_set == NULL) { + i_warning("Can't allocate memory for privilege set: %m"); + return; + } + + priv_emptyset(priv_set); + + for (p = privs; *p != NULL; p++) { + ret = priv_addset(priv_set, *p); + if (ret != 0) { + i_warning("Can't drop %s from privilege set: %m", *p); + } + } + + ret = setp...
2009 Mar 24
1
Making changes to dovecot log levels
...else { va_start(va, fmt); index->error = i_strdup_vprintf(fmt, va); va_end(va); i_error("%s", index->error); } return -1; } changing the line : i_error("%s", index->error); to i_warning("%s", index_error); and for the file src/lib-storage/index/mbox/mbox-sync.c changing this code if (rec == NULL && uid < sync_ctx->idx_next_uid) { /* this UID was already in index and it was expunged */ mbox_sync_set_critical(sync_ctx,...
2003 Apr 16
1
PATCH Add support for kqueue in ioloop subsystem
...oloop->handler_data; i_assert(fd >= 0); if (condition & IO_READ) filter |= EVFILT_READ; if (condition & IO_WRITE) filter |= EVFILT_WRITE; EV_SET(&data->event, fd, filter, EV_ADD, 0, 0, NULL); if (kevent(data->kq, &data->event, 1, NULL, 0, NULL) < 0) { i_warning("couldn't add filter with kqueue: %m"); } } void io_loop_handle_remove(struct ioloop *ioloop, int fd, int condition) { short filter; struct ioloop_handler_data *data = ioloop->handler_data; i_assert(fd >= 0); if (condition & IO_READ) filter |= EVFILT_READ; if (...
2019 Jan 12
2
Solr -> Xapian ?
...ts_results" structure: I am trying: I_ARRAY_INIT(&(RESULT->DEFINITE_UIDS),R->SIZE); I_ARRAY_INIT(&(RESULT->MAYBE_UIDS),0); uint32_t uid; for(i=0;i<r->size;i++) { try { uid=atol(backend->dbr->get_document(r->data[i]).get_value(1).c_str()); i_warning("Rresult UID=%d",uid); ARRAY_IDX_SET(&(RESULT->DEFINITE_UIDS),I,&UID); } catch(Xapian::Error e) { i_warning(e.get_msg().c_str()); } } I can see in hte log that UID are properly found on Xapian database, but no results are transmitted to dovecot and...
2004 Aug 30
0
[PATCH] [RFC] epoll based ioloop handler (now with patch)
...[fd] = list = + p_new(ioloop->pool, struct io_list, 1); + } + + iolist_add(list, io); + + event.data.ptr = list; + event.events = epoll_event_mask(list); + + op = (list->count == 1) ? EPOLL_CTL_ADD : EPOLL_CTL_MOD; + + ret = epoll_ctl(data->epfd, op, fd, &event); + if (ret < 0) + i_warning("epoll_ctl() : %m"); + + if (data->events_pos >= data->events_size) { + data->events_size = nearest_power(data->events_size + 1); + + p_free(ioloop->pool, data->events); + data->events = p_new(ioloop->pool, struct epoll_event, + data->events_siz...
2011 Jan 19
1
Rewrite the mailbox copy functions works in imap but don't work in doveadm import command
...); struct istream *input; const char *headerFile; char *bodyFile; int fd; int increment; ......Do some stuffs and verifications OK.... // GETTING THE FILE TO READ SOME STUFF FROM HEADER. if (zmail->super.get_stream(mail, NULL, NULL, &input) >= 0){ i_warning("GET STREAM COPY OK..."); }else{ i_warning("GET STREAM COPY NOT OK..."); } // REALLY COPY EMAIL copyret = zbox->super.copy(ctx, mail); } OK, when i use the IMAP , using a client and copy a email, it's works fine. But, when i use a doveadm im...
2019 Jan 14
3
[FTS Xapian] Beta release
...ude/dovecot -g -O2 -MT fts-backend-xapian.lo -MD -MP -MF .deps/fts-backend-xapian.Tpo -c fts-backend-xapian.cpp -fPIC -DPIC -o .libs/fts-backend-xapian.o fts-backend-xapian.cpp:486:14: warning: format string is not a string literal (potentially insecure) [-Wformat-security] i_warning(e.get_msg().c_str()); ^~~~~~~~~~~~~~~~~~~ fts-backend-xapian.cpp:486:14: note: treat the string as an argument to avoid this i_warning(e.get_msg().c_str()); ^ "%s&qu...
2006 Jun 22
1
Patch for rawlog.c
...home = "."; - /* see if we want rawlog */ - path = t_strconcat(home, "/dovecot.rawlog", NULL); - if (lstat(path, &st) < 0) { + if (lstat(RAWLOG_DIRNAME, &st) < 0) { if (errno != ENOENT) - i_warning("lstat() failed for %s: %m", path); + i_warning("lstat() failed for %s: %m", RAWLOG_DIRNAME); return; } if (!S_ISDIR(st.st_mode)) @@ -305,7 +300,7 @@ dec2str(getppid())));...
2015 Jan 22
2
[PATCH] increase fd_limit to max_client_limit automatically
...client_limit"; unsigned int max_client_limit = set->default_client_limit; #endif @@ -591,12 +592,18 @@ client_limit, max_anvil_client_processes); } #ifndef CONFIG_BINARY - if (restrict_get_fd_limit(&fd_limit) == 0 && - fd_limit < (rlim_t)max_client_limit) { - i_warning("fd limit (ulimit -n) is lower than required " - "under max. load (%u < %u), because of %s", - (unsigned int)fd_limit, max_client_limit, - max_client_limit_source); + if (getrlimit(RLIMIT_NOFILE, &fd_limit) == 0) { +#ifdef HAVE_SETRLIMIT + rlim_t old = fd_...
2019 Jan 13
0
Solr -> Xapian ?
...ying: > > I_ARRAY_INIT(&(RESULT->DEFINITE_UIDS),R->SIZE); > I_ARRAY_INIT(&(RESULT->MAYBE_UIDS),0); > > uint32_t uid; > for(i=0;i<r->size;i++) > { > try > { > uid=atol(backend->dbr->get_document(r->data[i]).get_value(1).c_str()); > i_warning("Rresult UID=%d",uid); > ARRAY_IDX_SET(&(RESULT->DEFINITE_UIDS),I,&UID); > } > catch(Xapian::Error e) > { > i_warning(e.get_msg().c_str()); > } > } > > I can see in hte log that UID are properly found on Xapian database, but no results are transm...
2017 Aug 03
2
proxy-dict with tcp connection
...rror_r = t_strdup_printf("Invalid IP: %s in URI: %s", args[0], uri); + return -1; + } + if (net_str2port(args[1], &port) < 0) { + *error_r = t_strdup_printf("Invalid port: %s in URI: %s", args[1], uri); + return -1; + } + dest_uri = strrchr(uri, ':'); + i_warning("using TCP URI: %s with %d args", uri, argc); + } 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, pat...
2015 Oct 13
2
TLS communication director -> backend with X.509 cert checks?
On 14 Oct 2015, at 00:34, Heiko Schlittermann <hs at schlittermann.de> wrote: > > Hi Timo, > > Heiko Schlittermann <hs at schlittermann.de> (Di 13 Okt 2015 22:33:23 CEST): >>> Does the attached patch work? Compiles, but untested. >> I'm about to test it. > > It seems to update the struct mail_host, but it looks as if the data > in mail_host
2017 Oct 07
0
Core Dumps with dovecot-2.2 -git as of 2.2.devel (eaf276b33)
...ibdovecot.so.0(o_stream_sendv+0xc7) [0x7f8bb657e765] -> /usr/lib64/dovecot/libdovecot.so.0(o_stream_nsendv+0x55) [0x7f8bb657e93f] -> /usr/lib64/dovecot/libdovecot.so.0(o_stream_nsend+0x61) [0x7f8bb657e8d3] -> dovecot/doveadm-server() [0x444a35] -> /usr/lib64/dovecot/libdovecot.so.0(i_warning+0xce) [0x7f8bb654afdc] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_destroy+0x2ca) [0x7f8bb656d8cd] -> dovecot/doveadm-server() [0x4454d1] -> dovecot/doveadm-server() [0x445793] -> dovecot/doveadm-server() [0x445dd6] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0xd6)...
2017 Oct 07
0
Core Dumps with dovecot-2.2 -git as of 2.2.devel (eaf276b33)
...ibdovecot.so.0(o_stream_sendv+0xc7) [0x7f8bb657e765] -> /usr/lib64/dovecot/libdovecot.so.0(o_stream_nsendv+0x55) [0x7f8bb657e93f] -> /usr/lib64/dovecot/libdovecot.so.0(o_stream_nsend+0x61) [0x7f8bb657e8d3] -> dovecot/doveadm-server() [0x444a35] -> /usr/lib64/dovecot/libdovecot.so.0(i_warning+0xce) [0x7f8bb654afdc] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_destroy+0x2ca) [0x7f8bb656d8cd] -> dovecot/doveadm-server() [0x4454d1] -> dovecot/doveadm-server() [0x445793] -> dovecot/doveadm-server() [0x445dd6] -> /usr/lib64/dovecot/libdovecot.so.0(io_loop_call_io+0xd6)...
2019 Jan 12
2
[FTS Xapian] Status & Questions
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> Did you remember to load fts first? </div> <div> <br> </div> <div> mail_plugins =$mail_plugins fts fts_xapian </div> <div> <br> </div> <div> Aki </div>
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
2019 Jan 14
2
[FTS Xapian] Beta release
...ts-backend-xapian.lo >> -MD -MP -MF .deps/fts-backend-xapian.Tpo -c fts-backend-xapian.cpp? >> -fPIC -DPIC -o .libs/fts-backend-xapian.o >> fts-backend-xapian.cpp:486:14: warning: format string is not a string >> literal (potentially insecure) [-Wformat-security] >> i_warning(e.get_msg().c_str()); >> ^~~~~~~~~~~~~~~~~~~ >> fts-backend-xapian.cpp:486:14: note: treat the string as an argument >> to avoid this >> i_warning(e.get_msg().c_str()); >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ >> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "%s"...
2019 Jan 12
2
Solr -> Xapian ?
THank you Now, for the results I see the member of fts_result is : ARRAY_TYPE(seq_range) definite_uids; I have the UID as a aray of uint32_t * How to put my UIDs into this "definite_uids" ? Obviously this is not a simple array/pointer. How to say someting similar to result->definite_uids[1]=my_uid ? On 2019-01-12 10:25, Timo Sirainen wrote: > On 11 Jan 2019, at 21.23,