Displaying 20 results from an estimated 50 matches for "mail_search_arg".
2010 May 20
1
Patch for logging variables
...g/src/imap/imap-expunge.c 2010-01-24
16:14:17.000000000 -0700
--- dovecot-1.2.11/src/imap/imap-expunge.c 2010-05-19 16:26:31.529833893 -0600
***************
*** 5,18 ****
#include "mail-search-build.h"
#include "imap-expunge.h"
! int imap_expunge(struct mailbox *box, struct mail_search_arg *next_search_arg)
{
struct mail_search_context *ctx;
struct mailbox_transaction_context *t;
struct mail *mail;
struct mail_search_args *search_args;
bool expunges = FALSE;
if (mailbox_is_readonly(box)) {
/* silently ignore */
return 0;
--- 5,21 ----
#include &q...
2010 May 19
1
logging
I am looking through the logging options and wondering if there are a
couple of things that we can do
1. Logouts don't seem to show the IP address of the logout, we
typically see multiple sessions at a time and wondering if there is a
way to tie the logouts to an IP
2. POP logouts show the number of messages retrieved/deleted but I
don't see a way to do this with IMAP, is there a logout
2019 Jan 11
4
Solr -> Xapian ?
...sqlite=auto --with-solr=auto
--with-xapian=auto --with-gssapi=auto --with-libwrap=auto; \
rm -rf scan-reports; \
scan-build -o scan-reports make 2>&1 || exit 1; \
if ! rmdir scan-reports 2>/dev/null; then \
WHAT ABOUT THE OTHER QUESTIONS ?
1 - WHat does represent "subargs" in mail_search_args
2 - for rescan : who is responsible for passing again the new email ? Is
the Dovecot core sending again all the emails to index ? or the fts
shall somehow access the mailbox and read all emails ? Wouldn't just be
saying "delete all index and get_last_uid is now 0" the easy way ?...
2019 Jan 11
2
Solr -> Xapian ?
Also,
1 - WHat does represent "subargs" in mail_search_args
2 - I made my first code, and the error I get compiling within the
dovecot architecture is
"In file included from fts-xapian-plugin.c:4:
fts-xapian-plugin.h:6:1: error: unknown type name 'using'; did you mean
'uint'?
using namespace std;"
if I remove this, the Xapia...
2019 Jan 11
2
Solr -> Xapian ?
...<div>
I figured out the "namespace" issue
</div>
<div>
<br>
</div>
<div>
Remaining questions are :
</div>
<div>
<br>
</div>
<div>
1 - WHat does represent "subargs" in mail_search_args
</div>
<div>
<br>
</div>
<div>
2 - for rescan : who is responsible for passing again the new email ? Is
</div>
<div>
the Dovecot core sending again all the emails to index ? or the fts
</div>
<div>
shall...
2005 Aug 24
0
verbose imap logging
...cot-1.0.alpha1.orig/src/imap/imap-expunge.c 2005-03-29 10:38:42.000000000 +0200
+++ dovecot-1.0.alpha1/src/imap/imap-expunge.c 2005-08-23 10:39:08.000000000 +0200
@@ -5,7 +5,8 @@
#include "mail-search.h"
#include "imap-expunge.h"
-int imap_expunge(struct mailbox *box, struct mail_search_arg *next_search_arg)
+int imap_expunge(struct mailbox *box, struct mail_search_arg *next_search_arg,
+ struct client *client)
{
struct mail_search_context *ctx;
struct mailbox_transaction_context *t;
@@ -29,6 +30,7 @@
failed = TRUE;
break;
}
+ client->expunged_count++;...
2019 Jan 08
3
Solr -> Xapian ?
...("message body piece")
- build_more("message body piece2")
...
> Q3 : Searching/Lookup : THe fheader in which to llok for (must be a least among "cc, to, from, subject, body") is not appearing in the 'struct' data. WHere to find it ?
lookup() gets struct mail_search_arg *args, which contains the entire IMAP SEARCH query. This could be used for more or less complex query builders.
In case of a single header search, you should have args->args->hdr_field_name contain the header name and args->args->value.str contain the content you're searching for....
2019 Jan 11
0
Solr -> Xapian ?
...ror: conflicting declaration of
'ssize_t i_my_pwrite(int, const void*, size_t, __off_t)' with 'C'
linkage
# define pwrite i_my_pwrite
Any help welcome
Hi,
I figured out the "namespace" issue
Remaining questions are :
1 - WHat does represent "subargs" in mail_search_args
2 - for rescan : who is responsible for passing again the new email ? Is
the Dovecot core sending again all the emails to index ? or the fts
shall somehow access the mailbox and read all emails ? Wouldn't just be
saying "delete all index and get_last_uid is now 0" the easy way ? or...
2019 Jan 11
0
Solr -> Xapian ?
...39;
>> linkage
>> # define pwrite i_my_pwrite
>>
>> Any help welcome
>>
>> Hi,
>>
>> I figured out the "namespace" issue
>>
>> Remaining questions are :
>>
>> 1 - WHat does represent "subargs" in mail_search_args
>>
>> 2 - for rescan : who is responsible for passing again the new email ? Is
>> the Dovecot core sending again all the emails to index ? or the fts
>> shall somehow access the mailbox and read all emails ? Wouldn't just be
>> saying "delete all index a...
2019 Jan 12
2
[FTS Xapian] Status & Questions
...d required plugin
</div>
<div>
/usr/lib/dovecot/lib21_fts_xapian_plugin.so: dlopen() failed:
</div>
<div>
/usr/lib/dovecot/lib21_fts_xapian_plugin.so: undefined symbol:
</div>
<div>
_Z30fts_backend_default_can_lookupP11fts_backendPK15mail_search_arg
</div>
<div>
<br>
</div>
<div>
ldd shows that fts lib is properly linked:
</div>
<div>
# ldd /usr/lib/dovecot/lib21_fts_xapian_plugin.so
</div>
<div>
(...)
</div>
<div>
lib20_fts_plug...
2019 Jan 12
2
Solr -> Xapian ?
...gt;
>> + #ifdef __cplusplus
>> + extern "C" {
>> + #endif
>
> You should put this extern "C" into the C++ file you're creating. See for example how fts-lucene/lucene-wrapper.cc does this.
>
>> 1 - WHat does represent "subargs" in mail_search_args
>
> It's set only for SEARCH_OR and SEARCH_SUB. So for example:
>
> SEARCH TEXT foo TEXT bar TEXT baz
>
> results in:
>
> type=SEARCH_SUB
> value.subargs = (
> { type=SEARCH, value.str="foo" },
> { type=SEARCH, value.str="bar" },
> {...
2006 Dec 10
2
segfault in RC15
...et = 1
#5 0x8056e0b in cmd_fetch (cmd=0x80db044) at cmd-fetch.c:171
cmd = (struct client_command_context *) 0x80db044
client = (struct client *) 0x80db000
ctx = (struct imap_fetch_context *) 0x80de088
args = (struct imap_arg *) 0x80dc048
search_arg = (struct mail_search_arg *) 0x80de050
messageset = 0x25 <Address 0x25 out of bounds>
ret = 135099072
#6 0x805955a in cmd_uid (cmd=0x80db044) at cmd-uid.c:19
cmd = (struct client_command_context *) 0x80db044
cmd_name = 0x80dc0f8 "FETCH"
#7 0x8059f45 in client_handle_input (c...
2019 Jan 06
3
Solr -> Xapian ?
...why is that backend
dependent ?
Would- nt the below function below be the same for any backend ?
Waiting fro your feedback on all those questions
Thank you
JM
-----------------
static int fts_backend_xapian_lookup_multi(struct fts_backend *_backend,
struct mailbox *const boxes[], struct mail_search_arg *args, enum
fts_lookup_flags flags, struct fts_multi_result *result)
{
struct xapian_fts_backend_update_context *ctx =
(struct xapian_fts_backend_update_context *)_ctx;
int i=0;
while(boxes[i]!=NULL)
{
if(fts_backend_xapian_lookup(backend,box[i],args,flags,result->box_results[i])<0)
retur...
2008 Sep 16
1
another assertion failure in current 1.1 hg (1.1.3 was working fine) - file message-address.c: line 43 (parse_local_part): assertion failed: (ctx->parser.data != ctx->parser.end)
...0, full_value_offset = 4, continues =
0, continued = 0, eoh = 0, no_newline = 0, crlf_newline = 0,
use_full_value = 0}
ret = 0
#16 0x080b537a in search_arg_foreach (arg=0x90ef6c0,
callback=0x80abe09 <search_header_arg>, context=0xbfe92f80) at
mail-search.c:85
subarg = (struct mail_search_arg *) 0x0
__PRETTY_FUNCTION__ = "search_arg_foreach"
#17 0x080b53a4 in mail_search_args_foreach (args=0x90ef6c0,
callback=0x80abe09 <search_header_arg>, context=0xbfe92f80) at
mail-search.c:98
result = 1
#18 0x080ac2f7 in search_header (hdr=0x90fec80, ctx=0xbfe92f80) at...
2019 Jan 09
0
Solr -> Xapian ?
...uot;)
> - build_more("message body piece2")
> ...
>
>> Q3 : Searching/Lookup : THe fheader in which to llok for (must be a least among "cc, to, from, subject, body") is not appearing in the 'struct' data. WHere to find it ?
>
> lookup() gets struct mail_search_arg *args, which contains the entire IMAP SEARCH query. This could be used for more or less complex query builders.
>
> In case of a single header search, you should have args->args->hdr_field_name contain the header name and args->args->value.str contain the content you're searc...
2019 Jan 12
2
Solr -> Xapian ?
...);
> #endif
>
> + #ifdef __cplusplus
> + extern "C" {
> + #endif
>
> You should put this extern "C" into the C++ file you're creating. See for example how fts-lucene/lucene-wrapper.cc does this.
>
> 1 - WHat does represent "subargs" in mail_search_args
> It's set only for SEARCH_OR and SEARCH_SUB. So for example:
>
> SEARCH TEXT foo TEXT bar TEXT baz
>
> results in:
>
> type=SEARCH_SUB
> value.subargs = (
> { type=SEARCH, value.str="foo" },
> { type=SEARCH, value.str="bar" },
> { type=...
2019 Jan 12
0
[FTS Xapian] Status & Questions
...ike to start testing. However, there is an error when
starting dovecot (git) :
Error: Couldn't load required plugin
/usr/lib/dovecot/lib21_fts_xapian_plugin.so: dlopen() failed:
/usr/lib/dovecot/lib21_fts_xapian_plugin.so: undefined symbol:
_Z30fts_backend_default_can_lookupP11fts_backendPK15mail_search_arg
ldd shows that fts lib is properly linked:
# ldd /usr/lib/dovecot/lib21_fts_xapian_plugin.so
(...)
lib20_fts_plugin.so => /usr/lib/dovecot/lib20_fts_plugin.so
(0x00007f25f75e0000)
(...)
libxapian.so.30 => /usr/lib/libxapian.so.30 (0x00007fe3a51e2000)
Your help very welcome
PENDING...
2019 Jan 12
0
Solr -> Xapian ?
...t iov_len);
> #endif
>
> + #ifdef __cplusplus
> + extern "C" {
> + #endif
>
You should put this extern "C" into the C++ file you're creating. See for example how fts-lucene/lucene-wrapper.cc does this.
> 1 - WHat does represent "subargs" in mail_search_args
It's set only for SEARCH_OR and SEARCH_SUB. So for example:
SEARCH TEXT foo TEXT bar TEXT baz
results in:
type=SEARCH_SUB
value.subargs = (
{ type=SEARCH, value.str="foo" },
{ type=SEARCH, value.str="bar" },
{ type=SEARCH, value.str="baz" },
)
Or simila...
2019 Jan 12
0
[FTS Xapian] Status & Questions
...t;> starting dovecot (git) :
>>
>> Error: Couldn't load required plugin
>> /usr/lib/dovecot/lib21_fts_xapian_plugin.so: dlopen() failed:
>> /usr/lib/dovecot/lib21_fts_xapian_plugin.so: undefined symbol:
>> _Z30fts_backend_default_can_lookupP11fts_backendPK15mail_search_arg
>>
>> ldd shows that fts lib is properly linked:
>> # ldd /usr/lib/dovecot/lib21_fts_xapian_plugin.so
>> (...)
>> lib20_fts_plugin.so => /usr/lib/dovecot/lib20_fts_plugin.so
>> (0x00007f25f75e0000)
>> (...)
>> libxapian.so.30 => /usr/lib...
2019 Jan 12
0
Solr -> Xapian ?
...);
> #endif
>
> + #ifdef __cplusplus
> + extern "C" {
> + #endif
>
> You should put this extern "C" into the C++ file you're creating. See for example how fts-lucene/lucene-wrapper.cc does this.
>
> 1 - WHat does represent "subargs" in mail_search_args
> It's set only for SEARCH_OR and SEARCH_SUB. So for example:
>
> SEARCH TEXT foo TEXT bar TEXT baz
>
> results in:
>
> type=SEARCH_SUB
> value.subargs = (
> { type=SEARCH, value.str="foo" },
> { type=SEARCH, value.str="bar" },
> { type=...