LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Doubt regarding the Sendmail Line? (https://www.linuxquestions.org/questions/linux-newbie-8/doubt-regarding-the-sendmail-line-759019/)

your_shadow03 10-01-2009 12:26 PM

Doubt regarding the Sendmail Line?
 
Code:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to this:
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

May I know what does:
Code:

dnl #
<....> dnl

or
 simply dnl

means.

What is the correct syntax?

jeremy 10-01-2009 02:43 PM

The "dnl" is a built-in macro of m4 meaning "Delete to New Line", which reads and discards all characters, up to and including the first newline.

--jeremy

your_shadow03 10-01-2009 09:51 PM

If I say:

Code:


define(`confDOMAIN_NAME', `example.com')dnl
FEATURE(`relay_entire_domain')dnl

And then

Code:


dnl # define(`confDOMAIN_NAME', `example.com')
dnl #FEATURE(`relay_entire_domain')

Is there any difference?

jeremy 10-02-2009 09:14 AM

Yes they are different, in the second example you are completely commenting them out.

--jeremy

your_shadow03 10-02-2009 11:35 AM

So it means the first one means uncommnted.
Right?

jeremy 10-02-2009 11:49 AM

Correct.

--jeremy


All times are GMT -5. The time now is 12:01 PM.