| Description: |
The current man page for the smtp command documents the "-header" parameter like so:
-header
A list of keywords and their values (may occur zero or more times).
From the phrasing of the statement (list of keywords (plural) and their values (plural)) and the position of the parenthetical, the docs appear to state that a single "-header" option can accept a list of plural headers and plural values. I.e.: "-header [ list To [email protected] From [email protected] Subject Hi ]".
However, this is not the case, looking at the code in smtp, each individual "-header" parameter takes a list of exactly two elements, nothing more, nothing less.
While I think that allowing a single "-header" option to accept a list of plural headers and values is a superior fix, for now I simply propose that the documentation be edited to more accurately reflect the current implimentation. Something like so:
-header
A list containing two elements, an smtp header and its associated value (the -header option may occur zero or more times).
|