<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] ME's SMTP relay patch ported to CVS



* On 2005.09.07, in <20050907150236.GB8839@xxxxxxxxxxxxxxxxxxx>,
*       "Brendan Cully" <brendan@xxxxxxxxxx> wrote:
> 
> It'd be tempting to make $envelope_from an address (possibly renaming
> the current $envelope_from to $use_envelope_from). This is a simple
> thing to do, but why is it specific to the SMTP relay? ie why
> didn't/don't we do this for the regular old sendmail interface?


I think this would be nice, perhaps even wise.  Two approaches come to
mind:

- use the existing % notation -- e.g, %f in $sendmail expands to the
  value of $envelope_from.  But this suggests that %f expansion should
  have boolean functionality, so that you can say
  set sendmail="/usr/lib/sendmail %?f?-f %f?"

  What is the scope of such an expansion?  I suspect that a %f expansion
  would apply within all variables; this might be suboptimal.  An
  artificial scope value could be created and bound to the option as an
  enumerated parameter of option_t, and this would provide extensible
  expandos to a variety of options that frankly could use it, without
  conflict.  (Just choose the appropriate scope value, or create a new
  one.)

- allow expansion of config variables within config variables. :)  E.g.,
  set sendmail="/usr/lib/sendmail -f $envelope_from".

-- 
 -D.    dgc@xxxxxxxxxxxx        NSIT    University of Chicago