[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cfengine] Re: cfexecd mail

From: Bas van der Vlies
Subject: Re: [Cfengine] Re: cfexecd mail
Date: Tue, 29 Jul 2003 15:49:53 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624

Andrew Stribblehill wrote:

Quoting Mark Burgess <address@hidden> (2003-07-29 13:07:44 BST):

Go, boy, go!
On 29 Jul, Bas van der Vlies wrote:

Sounds good, shall i implement it?

I was wondering ... wouldn't it be better if cfagent -z was an
interactive command which, when given a variable name would return
its value (possibly prefixed by the number of characters it was
sending, for ease of parsing). This way, only Cfexecd needs to be
changed to do something like this.

BTW, if you choose not to go for this (and I'm willing to code the
generic interface) I added some cruft at around cfexecd.c:432 which
copes with old cfagents who didn't send EmailMaxLines. Since you're
in the area, I'd be obliged if you removed the compatibility code if
it's not too much bother.

Sorry but i do not understand it. Do you mean:
   # cfagent -z sysadm

   # cfagent -z smtpfrom

In this situation we still need to change cfagent.c and cfexecd.c to support new variables.

I have made a patch against 2.0.7p3 (debian). It is a simple patch, but
if we choose another approach is fine for me. The patch now behaves as
follows if NO 'smtpfrom' variable is set it uses the default one:

I am now in the testing fase ;-)

*                                                                  *
*  Bas van der Vlies                     e-mail: address@hidden      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                                               *
*                                                                  *

reply via email to

[Prev in Thread] Current Thread [Next in Thread]