RE: IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14

2002-01-13 Thread ???


I slightly modified IMAPD 2.1 to work with Berkeley Version 4.0.x
It works well.
I will post the cyrusdb_db3.c asap.


-Original Message-
From: Amos Gouaux [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 2:30 AM
To: [EMAIL PROTECTED]
Subject: Re: IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14


> On Sun, 13 Jan 2002 10:03:41 -0500,
> Ken Murchison <[EMAIL PROTECTED]> (km) writes:

km> Try this patch as submitted by Larry Rosenbaum:

So, what do those that have tried this think of db 4.x so far?
Any problems encountered, that is after this compile problem is
resolved?

-- 
Amos




Re: IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14

2002-01-13 Thread Amos Gouaux

> On Sun, 13 Jan 2002 10:03:41 -0500,
> Ken Murchison <[EMAIL PROTECTED]> (km) writes:

km> Try this patch as submitted by Larry Rosenbaum:

So, what do those that have tried this think of db 4.x so far?
Any problems encountered, that is after this compile problem is
resolved?

-- 
Amos




Re: a question on cyrus-imap version 2.1 (mailbox creation)

2002-01-13 Thread Ken Murchison



¿øÅÂȯ wrote:
> 
> Hi,
> I am testing cyrus imap  2.1beta.
> In the basic configuration, it works well. But, i found a different thing from the 
>other  imap server. for example
> MS Exchange Server.
> 
> For example, MS Exchange server allows user to make a folder at the same level of 
>INBOX.
> So, client program (like outlook express) can arrange it with INBOX at the same 
>level of folder hierarchy.
> 
> Is it possible in cyrus IMAP ?

Turn on 'altnamespace' in imapd.conf.  Keep in mind that this is an
either/or option.  Either all folders are children of INBOX, or they are
at the same level as INBOX.  You CAN'T have both.  This is because the
server treats them the same internally, and does the translation on the
fly as it speaks IMAP.

Ken
-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



Re: IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14

2002-01-13 Thread Ken Murchison

Try this patch as submitted by Larry Rosenbaum:

*** cyrusdb_db3.c.orig  Wed Sep 19 20:13:43 2001
--- cyrusdb_db3.c   Thu Jan 10 10:31:22 2002
***
*** 71,76 
--- 71,81 
  
  /* --- cut here --- */
  
+ #if DB_VERSION_MAJOR >= 4
+ #define txn_checkpoint(xx1,xx2,xx3,xx4)
(xx1)->txn_checkpoint(xx1,xx2,xx3,xx4)
+ #define txn_id(xx1) (xx1)->id(xx1)
+ #endif
+ 
  static int dbinit = 0;
  static DB_ENV *dbenv;
  
***
*** 145,151 
   retry:
  flags |= DB_INIT_LOCK | DB_INIT_MPOOL | 
 DB_INIT_LOG | DB_INIT_TXN;
! #if DB_VERSION_MINOR > 0
  r = dbenv->open(dbenv, dbdir, flags, 0644); 
  #else
  r = dbenv->open(dbenv, dbdir, NULL, flags, 0644); 
--- 150,156 
   retry:
  flags |= DB_INIT_LOCK | DB_INIT_MPOOL | 
 DB_INIT_LOG | DB_INIT_TXN;
! #if (DB_VERSION_MAJOR > 3) || ((DB_VERSION_MAJOR == 3) &&
(DB_VERSION_MINOR > 0))
  r = dbenv->open(dbenv, dbdir, flags, 0644); 
  #else
  r = dbenv->open(dbenv, dbdir, NULL, flags, 0644); 
***
*** 205,211 
  assert(dbinit);
  
  do {
! #if DB_VERSION_MINOR > 0
r = txn_checkpoint(dbenv, 0, 0, 0);
  #else
r = txn_checkpoint(dbenv, 0, 0);
--- 210,216 
  assert(dbinit);
  
  do {
! #if (DB_VERSION_MAJOR > 3) || ((DB_VERSION_MAJOR == 3) &&
(DB_VERSION_MINOR > 0))
r = txn_checkpoint(dbenv, 0, 0, 0);
  #else
r = txn_checkpoint(dbenv, 0, 0);




> Ilya Sedelnikov wrote:
> 
> Hi,
> 
>   when trying to compile IMAPD-2.1.0-BETA with cyrus-sasl-2.0.5-BETA
> and BerkeleyDB 4.0.14 installed
> 
>   on Solaris 8,
> 
>   I get following error:
> 
>   cyrusdb_db3.c: In function `init'
> 
>   cyrusdb_db3.c:151: too many arguments to function
> 
>   Corresponding lines in cyrusdb_db3.c are
> 
> #if DB_VERSION_MINOR > 0
> 
> r = dbenv->open(dbenv, dbdir, flags, 0644);
> 
> #else
> 
> r = dbenv->open(dbenv, dbdir, NULL, flags, 0644);
> 
> #endif
> 
> 
> 
>Definition of type DB_ERR, found in include file "db.h" created
> when installing BerkeleyDB 4.0.14 and
> 
>used by "cyrusdb_db3.c" includes declaration of function "open":
> 
>int  (*open) __P((DB_ENV *, const char *, u_int32_t, int));
> 
> 
> 
>Note that this function has 4 parameters.
> 
>   Also, "db.h"  contains following definition
> 
>  # define DB_VERSION_MINOR 0
> 
>  So, reason for the error message I get when trying to compile
> "cyrusdb_db3.c" is clear.
> 
>  Did anyone have similar problem ?
> 
>  Does anybody know how to solve the problem ?
> 
> 
> 
>  Regards,
> 
> Ilya Sedelnikov
> 
> P.S.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



a question on cyrus-imap version 2.1 (mailbox creation)

2002-01-13 Thread 원태환

Hi,
I am testing cyrus imap  2.1beta.
In the basic configuration, it works well. But, i found a different thing from the 
other  imap server. for example 
MS Exchange Server.

For example, MS Exchange server allows user to make a folder at the same level of 
INBOX.
So, client program (like outlook express) can arrange it with INBOX at the same level 
of folder hierarchy.

Is it possible in cyrus IMAP ?

I tried the following naming to make such a folder:
00-tag  CREATE USER.TEST.SUBFOLDER  ==> which is displayed under INBOX in 
outlook express
00-tag   CREATE SUBFOLDER   ==> which would be visible to 
other user, at least to admin.
Any hint would be appreciated.

-
Tawan Won




IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14

2002-01-13 Thread Ilya Sedelnikov
Title: IMAPD 2.1.0 compilation with BerkeleyDB 4.0.14







Hi,

  when trying to compile IMAPD-2.1.0-BETA with cyrus-sasl-2.0.5-BETA and BerkeleyDB 4.0.14 installed

  on Solaris 8,

  I get following error:

  cyrusdb_db3.c: In function `init'

  cyrusdb_db3.c:151: too many arguments to function

  Corresponding lines in cyrusdb_db3.c are

#if DB_VERSION_MINOR > 0

    r = dbenv->open(dbenv, dbdir, flags, 0644); 

#else

    r = dbenv->open(dbenv, dbdir, NULL, flags, 0644); 

#endif

 

   Definition of type DB_ERR, found in include file "db.h" created when installing BerkeleyDB 4.0.14 and

   used by "cyrusdb_db3.c" includes declaration of function "open":

   int  (*open) __P((DB_ENV *, const char *, u_int32_t, int));

    

   Note that this function has 4 parameters.

  Also, "db.h"  contains following definition

 # define DB_VERSION_MINOR 0

 So, reason for the error message I get when trying to compile "cyrusdb_db3.c" is clear.

 Did anyone have similar problem ?

 Does anybody know how to solve the problem ? 

 

 Regards,

Ilya Sedelnikov

P.S.