compose.html (html::compose)

For display to the user:

  • $protoarticle.from$ (string) the From line that will be used
  • $posting.error$ (string) an error message

For use as default values in the appropriate input boxes:

  • $protoarticle.subject$ (string) the suggested Subject
  • $protoarticle.references$ (string) the suggested References (may be undefined)
  • $protoarticle.body$ the suggested body

For use in the group selection thingy:

  • $posting.grouplist$ (sequence of structs) enumerates possible groups
    • $group.name$ (string) the Netnews name of the group
    • $group.description$ (string) the Netnews description of the group
    • $group.protoarticle.newsgroup$ (empty string) is defined if this group is suggested as (one of) the group(s) to post to
    • $group.protoarticle.followup$ (empty string( is defined if this group is suggested as (one of) the target group(s) for further followups

For use in the form, not show to the user:

  • $posting.action$ (string) the required action attribute value
  • $posting.method$ (string) the required method attribute value
  • $posting.enctype$ (string) the required enctype attribute value
  • $posting.accept_charlist$ (string) the required accept-charlist attribute value

Form data requirements:

  • "subject" should contain the user provided Subject
  • "body" should contain the user provided body
  • "references" should contain the post References (initialized from ‰protoarticle.references$ and typically a hidden field)
  • "newsgroups" should contain the user provided Newsgroups (repeat the field to provide more than one group)
  • "followups" should contain the user provided Followups-To (repeat the field to provide more than one group)
  • "post_button" should be produced by the button that the user presses to actually post the protoarticle

One of the following query parameters are required on initial access:

  • "group" names the group that becomes the suggested Newsgroups line
  • "precursor" contains the Message-ID of the article that a followup is to be constructed to