Aaron Stone wrote:
> On Fri, May 11, 2007, Paul J Stevens <[EMAIL PROTECTED]> said:
> 
>> Aaron Stone wrote:
>>> 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...)
>> I don't follow. check_dbmail_mailbox uses a fake command string that
>> results in a correct args_array (circumventing build_args_array_ext).
> 
> Ah, ok. You "pre-parsed" those strings by hand!

Yep. Since it was for test-purposes only that was ok. But now we're
accepting data from the wild.

> 
>> I havent hooked up check_dbmail_mailbox into this new export capability.
>>
>> is this your code?
>>
>>>         if (search) {
>>>                 char **args;
> 
> Yes, and it doesn't work :0)
> 
> You've done the same thing, but, presumably, gotten it working ;-)

So you *need* build_args_array_ext which requires using a struct
ImapSession. After that the 'char **args' member of that struct is
filled and filled safely.

I had to add dbmail-imapsession.c and memblock.c to dbmail-exports's
source files to get it working of course.


-- 
  ________________________________________________________________
  Paul Stevens                                      paul at nfg.nl
  NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
  The Netherlands________________________________http://www.nfg.nl
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to