Option Argument Types
Each option’s argument is restricted to a single type. The allowable types are the following:
- Boolean
A Boolean-type argument can have only one of two possible values: true or false. If the Boolean argument is present, its first letter is compared to the four letters
T
,t
,Y
, andy
. If that first letter matches any of those four, the option is set to true; otherwise, it is set to false. If a Boolean argument is absent, the option defaults to true. For example:O HoldExpensive ← Boolean absent, option is set to true O HoldExpensive=True ← Boolean=`T'rue, option is set to true O HoldExpensive=False ← Boolean=`F'alse, option is set to false
- Character
A character type is a single ASCII character. Options that take a single character as an argument can also take a whole word or sentence, but in that instance, only the first character is recognized:
O DeliveryMode=b ← b for background mode O DeliveryMode=background ← same
The argument is case-sensitive—that is, the character
b
is considered to be different from the characterB
:O DeliveryMode=b ← b for background mode O DeliveryMode=B ← meaningless
- Numeric
A numeric type is an ASCII representation of an integer value. It can be positive, zero, or negative. The base is determined after any leading sign is handled. A leading 0 causes the octal base to be used. A leading 0x or 0X causes the hexadecimal base to be used. Decimal is best to use for options such as the hop count (option
MaxHopCount
):O MaxHopCount=15 ← decimal for ...
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.