Try commenting out auth_connect() and see if that fixes it. Unless Roel checked my patch into the CVS (and you're using that CVS), things get hairy if you call both db_connect and auth_connect. Hopefully my patch will be accepted soon and thus prevent the situation.
Aaron On Wed, 25 Dec 2002 [EMAIL PROTECTED] wrote: > Hi all, > > I'm whacking together a Cyrus-DBMail converter and I'm getting closer but > I need to be able to get at DBMail's internals to do this as I need to > create a tool that will replicate an already existing folder structure. > > I have code that looks like this: > > int main(void) > { > u64_t userid, mbox1, mbox2; > > db_connect(); > auth_connect(); > > userid = auth_user_exists(USERNAME); > mbox1 = db_get_mailboxid(userid, MBOX1NAME); > mbox2 = db_get_mailboxid(userid, MBOX2NAME); > > return 0; > } > > Looking at this in GDB, userid always gets set to about 1.8 billion, even > though the mysql client lists the userid as 1 and mbox1 and mbox2 always > get set to 0. Both mailboxes being looked for already exist. Any hints? > > Chris > > > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail >