Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: m4 user needed

2006-06-07 by Ugo Bellavance

--- In milter-greylist@yahoogroups.com, manu@... wrote:
>
> Ugo Bellavance <iolubik@...> wrote:
> 
> > According to Howe, the define() statements replace the previous
> > values, overriding values needed by other software.
> 
> So the question is what should we use instead of define so that the
> macros are added instead of removing. It seems that
> define(`foo', foo`bar') happily append bar to foo definition. 
> 
> Any m4 user for testing what happens with things like this:
> define(`confMILTER_MACROS_CONNECT', confMILTER_MACROS_CONNECT`j,
> {if_addr}')
> 
> What happens if if_addr or j was already defined? It will end up
> duplicated in sendmail.cf, does sendmail actually cope with that?
> 
> Maybe a m4 hacker in the room knows how to avoid the duplicates?
> 

I'd be eager to help, but I don't understand exactly what you need to
do.  JUst put 

define(`confMILTER_MACROS_CONNECT', confMILTER_MACROS_CONNECT`j,
{if_addr}')

In my sendmail.mc file , do a m4 sendmail.mc>sendmail.cf and do a diff
on the sendmail.cf file?

-- 
Ugo

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.