Re: [Exim] [PATCH] exim-4.04 support non-HASH db files

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Kevin P. Fleming
CC: exim-users
Assunto: Re: [Exim] [PATCH] exim-4.04 support non-HASH db files
On Thu, 6 Jun 2002, Kevin P. Fleming wrote:

> Well, I found the problem I was having doing a db lookup into a Cyrus IMAPD
> mailboxes.db file... Cyrus uses BTREE-style files, and Exim uses only
> HASH-style files, and assumes that's all you'd ever want to look into.


Aha! I'd never considered that possibility.

> The attached patch modifies the behavior of exim-4.04 (only for when db3 is
> in use) to allow the file to be any format if it's being opened in read-only
> mode, but specify DB_HASH if it's not (like when exim is actually creating a
> new db file). This works great for me, exim has no trouble reading
> previously created exim db files, but now can also read Cyrus db files.


Please send me the patch privately, and I'll take a look at it. It
didn't make it onto the mailing list, because you attached it rather
than including it inline.

> [ exim-dblookup-patch of type application/octet-stream deleted ]


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.