I looked through check_dbmail_mailbox.c and found that you were not
going through the imap arguments parser, just g_strsplit (but that does
not quite seem to work, as below...)
if (search) {
char **args;
u64_t idx = 0;
args = g_strsplit(search, " ", 0);
if (!args) {
qerrorf("g_strsplit returned null\n");
}
result = dbmail_mailbox_build_imap_search(mb, args,
&idx, 1);
if (result) {
qerrorf("dbmail_mailbox_build_imap_search
returned %d\n", result);
}
result = dbmail_mailbox_search(mb);
if (result) {
qerrorf("dbmail_mailbox_search returned %d\n",
result);
}
if (! mb->ids || (g_tree_nnodes(mb->ids) == 0)) {
qerrorf("Search parameters did not match any
messages in mailbox\n");
result = 1;
goto cleanup;
}
}
On Wed, 2007-05-02 at 12:14 +0200, Paul J Stevens wrote:
> ---
> Makefile.am | 2 +-
> db.c | 11 +++-----
> dbmail-imapsession.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++-
> dbmail-mailbox.c | 21 +++++++++++---
> dbmailtypes.h | 1 +
> dm_imaputil.c | 72
> --------------------------------------------------
> dm_imaputil.h | 5 ---
> export.c | 56 ++++++++++++++++++++++++++++++++-------
> imap4.c | 3 --
> modules/dbmysql.c | 5 +++-
> modules/dbpgsql.c | 5 +++-
> modules/dbsqlite.c | 5 +++-
> 12 files changed, 150 insertions(+), 107 deletions(-)
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev