home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / vn.jan.88 / part04 / head.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-01-30  |  2.5 KB  |  64 lines

  1. /*
  2. ** vn news reader.
  3. **
  4. ** head.h - header line structure
  5. **
  6. ** see copyright disclaimer / history in vn.c source file
  7. */
  8.  
  9. /*
  10. ** How this thing works:
  11. **
  12. ** this structure is filled in by vns_aopen when opening an article.
  13. ** lines & hlines items will be used in providing percentage read prompts
  14. **
  15. ** show_num & show are the article information lines presented for the user
  16. ** when the "show headers" flag is turned off.
  17. **
  18. ** from and artid are used for mail salutations, etc.
  19. **
  20. ** The items used for mail replies, FOLLOWING the call to the mail massager
  21. ** if there is one, are mailcmd, mail_num, and mail.  These are the items
  22. ** the massager should fill in.  If no massager exists, vns_aopen will
  23. ** fill these in directly.  If mail_err is non-null, the user won't be
  24. ** able to mail a reply to the article, and the item should be an error
  25. ** message explaining why.  If there is a mailer function, the mailcmd
  26. ** item is not used.
  27. **
  28. ** The priv and priv_num items are for sole use of the server layer in
  29. ** the mail massager, mailer and poster functions.
  30. **
  31. ** The postcmd, post_num, and post arguments are used in treatment of
  32. ** followups.  If post_err is non-null, followup won't be allowed, for
  33. ** the reason described therein.  If there is a poster function, the
  34. ** postcmd item isn't used.
  35. **
  36. ** The header lines for inclusion in mail / followup files will open
  37. ** the file, and will be followed by one blank line.  The lines are literal -
  38. ** all appropriate headers should be prepended, etc.
  39. **
  40. ** postcmd / mailcmd are used as format strings which are assumed to have a
  41. ** single %s in them some place for the placement of the users editted file.
  42. ** The result will be spawned as a command.
  43. */
  44.  
  45. typedef struct
  46. {
  47.     int lines;        /* number of lines in article */
  48.     int hlines;        /* number of header lines in article */
  49.     char *from;        /* authors name */
  50.     char *artid;        /* article id */
  51.     int show_num;        /* number of extra lines for reader display */
  52.     char **show;        /* extra header lines */
  53.     int priv_num;        /* number of private arguments */
  54.     char **priv;        /* private server arguments */
  55.     char *mail_err;        /* mail reply error message */
  56.     char *mailcmd;        /* command line for mailer */
  57.     int mail_num;        /* number of header lines in mail reply file */
  58.     char **mail;        /* mail reply header lines */
  59.     char *post_err;        /* follow-up posting error message */
  60.     char *postcmd;        /* command line for followup poster */
  61.     int post_num;        /* number of header lines for followup file */
  62.     char **post;        /* followup header lines */
  63. } ARTHEADER;
  64.