• What exactly is a token in a ruleset?

    From Marco Moock@21:1/5 to All on Wed Mar 12 12:45:58 2025
    Hello!

    sendmail 4th edition says:

    In rules, when sendmail expands a macro, it also tokenizes it. For
    example, placing the earlier $D in the following rule’s LHS:
    R$+ @ $D $1
    causes the LHS to contain seven tokens rather than three:
    R$+ @ xxx . yyy . zzz $1

    What exactly is a token and how is it delimited?

    --
    kind regards
    Marco

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Martin Neitzel@21:1/5 to All on Fri Mar 28 15:32:36 2025
    What exactly is a token and how is it delimited?

    op.me:

    5.2. D -- Define Macro

    [...]
    The following macros are defined and/or used
    internally by sendmail for interpolation into argv's
    for mailers or for other contexts. The ones marked *
    are information passed into sendmail[16],
    [...]

    $o* (Obsolete: use OperatorChars option instead.)
    The set of "operators" in addresses. A list of
    characters which will be considered tokens and
    which will separate tokens when doing parsing.
    For example, if "@" were in the $o macro, then
    the input "a@b" would be scanned as three tokens:
    "a," "@," and "b." Defaults to ".:@[]", which is
    the minimum set necessary to do RFC 822 parsing;
    a richer set of operators is ".:%@!/[]", which
    adds support for UUCP, the %-hack, and X.400
    addresses.
    [...]

    Martin Neitzel

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)