imap 2.0.7 and installsieve

2000-11-17 Thread Rob Tanner

Hi,

I am trying to build the installsieve utility, but seem to be at a loss.  Configure 
creates sieve/Makefile, it does not build a installsieve/Makefile, and so far I 
have been at odds to build a Makefile by hand (the installsieve directory does 
contain a Makefile.in).  There seems to be a conflict between declarations in 
isieve.h and installscript.c, and so the build will not complete.

There's really no documentation to guide me along in this process -- can someone 
offer some help.

Thanks,
Rob

   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  UNIX and Networks Manager
  Linfield College, McMinnville OR
  (503) 434-2558 [EMAIL PROTECTED]




Re: Sieve redirect works but vacation doesn't

2000-11-17 Thread Ken Murchison



Gary Mills wrote:
 
 Well, I found a bug in sieve/script.c that seems related to my
 problem.  The patch below fixes it.  The bug is that the snprintf()
 will never be executed.  When I tested the new lmtpd, I expected
 to see either "Sent vacation reply\n" or "Vacation reply suppressed\n",
 but neither of those messages appeared in any log.  Where are they
 supposed to go?  The patch is for cyrus-imapd-2.0.7.
 
 
 *** script.Oc   Mon Sep  4 23:15:35 2000
 --- script.cThu Nov 16 20:45:43 2000
 ***
 *** 929,938 
  "Sent vacation reply\n");
 
 } else if (ret == SIEVE_DONE) {
 !   if (ret == SIEVE_OK)
 !   snprintf(actions_string+strlen(actions_string),
 !sizeof(actions_string)-strlen(actions_string),
 !"Vacation reply suppressed\n");
 
 ret = SIEVE_OK;
 }
 --- 929,937 
  "Sent vacation reply\n");
 
 } else if (ret == SIEVE_DONE) {
 !   snprintf(actions_string+strlen(actions_string),
 !sizeof(actions_string)-strlen(actions_string),
 !"Vacation reply suppressed\n");
 
 ret = SIEVE_OK;
 }
 

Ummm...  Yeah, this is kinda stupid  -- looks like a cut-n-paste was
done without regards to the semantics  I'll fix this in CVS.  This
couldn't have been causing your problem, just made it harder to find,
right?

BTW, what notification mechanism are you using to see these messages,
Zephyr?

Thanks,
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: error making cyrus-imapd-1.6.24

2000-11-17 Thread Ken Murchison



Chris Blackstone wrote:
 
 I'm trying to install cyrus-imapd-1.6.24 on a FreeBSD 4.1 machine using
 TcL 8.3
 
 I can configure cyrus just fine, but when I make it, I get an error
 making the sieve part of it saying
 
 "In file included from comparator.h:34,
 from ./sieve.y:33:
 /usr/include/regex.h:46: syntax error before 'regoff_t'
 /usr/include/regex.h:46: warning: data definition has no type of storage class
 /usr/include/regex.h:56: syntax error before 'regoff_t'
 **Error code 1
 "
 
 I have no clue what the problem is.
 this is a clean install of freebsd 4.1
 
 any help is greatly appreciated.

Try applying the following patch to sieve/comparator.h.  This has been
fixed in CVS.

***
*** 31,36 
--- 31,37 
  #ifdef HAVE_RX
  #include rxposix.h
  #else
+ #include sys/types.h
  #include regex.h
  #endif
  #endif



-- 
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



about MYSQL..

2000-11-17 Thread Jorge A. Rodríguez Suárez.

Hi friends:

Two question:

1. Where to put and what to put to MySQL up at reboot...
2. mysqladmin is not in /var/bin, where is, or what can i use to admin
MySQL?

thanks a lot, have a good day...

===
Lic. Jorge A. Rodríguez Suárez
Grupo de Administracion de Redes.
Universidad de Ciego de Avila.
CUBA, email: [EMAIL PROTECTED]
===




Re: Sieve redirect works but vacation doesn't

2000-11-17 Thread mills

Kenneth Murchison writes:

I think you're right, but before I make any changes, I want to make sure
that I don't break anything else.

Yes, I'm just about to change a few strcmp() to strcasecmp() in
my copy of sieve/script.c and test it.

Issues that come to mind:

- do we compare the entire addresses case-independently or just the
domain?
- should the same be done for loop control mechanisms (ie, comparing
envelope 'from' and envelope 'to', or comparing envelope 'from' and
:addresses)?

I notice a comment:

/* first, is it from me? really should use a
   compare_address function */

That might be a good idea, and yes, the same comparison should be used
everywhere to be consistent.  As for the left-hand-side
right-hand-side question, I notice that the standard vacation program,
or at least the Solaris version, only compares the left-hand-side of
an e-mail address.  In fact, it only wants userids on the command
line, not complete e-mail addresses.  This behavior may only be
because of the antiquity of the program.  There are some comments in
the BSD source on this.  If sieve is to compare the right-hand-side,
it should do it in a case-independant manner because domain names are
supposed to be case-independant.  A quick fix and reasonably adequate
solution would be to use strcasecmp() for the entire e-mail address.
An exact solution would be to compare the left-hand-side in a manner
consistent with Cyrus' handling of mailbox names.


-- 
-Gary Mills--Unix Support--U of M Academic Computing and Networking-



Re: about MYSQL..

2000-11-17 Thread Rob Tanner

I'm not sure of the context of your questions, so I'll simply address them at face 
value.

1. The startup file is support-files/mysql.server in the source distribution. Where it 
goes for booting is entirely dependent on the OS which is not a piece of information 
you included in your post, and so I have no idea.

2. If you simply run the configure program, the build defaults to /usr/local, meanign 
the executables go into /usr/local/bin and the data dir in /usr/local/var. To put it 
wherecer you want, specify a prefix (type ./configure --help).

-- Rob


--On Friday, November 17, 2000 11:16:38 AM -0500 "Jorge A. Rodríguez Suárez." 
[EMAIL PROTECTED] wrote:

 Hi friends:

 Two question:

 1. Where to put and what to put to MySQL up at reboot...
 2. mysqladmin is not in /var/bin, where is, or what can i use to admin
 MySQL?

 thanks a lot, have a good day...

 ===
 Lic. Jorge A. Rodríguez Suárez
 Grupo de Administracion de Redes.
 Universidad de Ciego de Avila.
 CUBA, email: [EMAIL PROTECTED]
 ===





   _ _ _ _   __ _ _ _ _
  /\_\_\_\_\/\_\ /\_\_\_\_\_\
 /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
   /\/_/_/_/_/ /\_\  /\/_//\/_/
  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)

  Rob Tanner
  UNIX and Networks Manager
  Linfield College, McMinnville OR
  (503) 434-2558 [EMAIL PROTECTED]