Tk Library Source Code

View Ticket
Login
Ticket UUID: 3011581
Title: Doc bug w/ -header option
Type: Bug Version: None
Submitter: rich123 Created on: 2010-06-04 16:07:43
Subsystem: smtp Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2010-07-07 02:49:22
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2010-07-06 19:49:22
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).
User Comments: andreas_kupries added on 2010-07-07 02:49:22:

allow_comments - 1

Accepted the proposed documentation change as is.
Committed to CVS now.