1: 2: /* @(#)extern.h 1.4 92/02/17 3: * 4: * Contains all the external definitions used by mp. 5: * 6: * Copyright (c) Steve Holden and Rich Burridge. 7: * All rights reserved. 8: * 9: * Permission is given to distribute these sources, as long as the 10: * copyright messages are not removed, and no monies are exchanged. 11: * 12: * No responsibility is taken for any errors or inaccuracies inherent 13: * either to the comments or the code of this program, but if 14: * reported to me then an attempt will be made to fix them. 15: */ 16: 17: extern char *APP_FROMHDR ; 18: extern char *APP_TOHDR ; 19: extern char *CCHDR ; 20: extern char *CONTENT_LEN ; 21: extern char *DATEHDR ; 22: extern char *FROMHDR ; 23: extern char *FROM_HDR ; /* UNIX From header */ 24: extern char *NEWSGROUPSHDR ; 25: extern char *NEWSGROUPHDR ; 26: extern char *REPLYHDR ; 27: extern char *SUBJECTHDR ; 28: extern char *TOHDR ; 29: 30: extern char *apparently_from ; /* Apparently_from: */ 31: extern char *apparently_to ; /* Apparently_to: */ 32: extern char *cc[] ; /* Cc: (can have multiple lines) */ 33: extern char *content_len ; /* Content-Length: */ 34: extern char *date ; /* Date: */ 35: extern char *from ; /* From: */ 36: extern char *from_ ; /* From_ (UNIX from) */ 37: extern char *gsubject ; /* Global Subject set from command line. */ 38: extern char *newsgroups ; /* Newsgroups: (news articles only) */ 39: extern char *reply_to ; /* Reply-to: */ 40: extern char *subject ; /* Subject: (can be set from command line) */ 41: extern char *to[] ; /* To: (can have multiple lines) */ 42: 43: extern char curfname[] ; /* Current file being printed. */ 44: extern char *message_for ; /* "[Mail,News,Listing] for " line */ 45: extern char *nameptr ; /* Used to getenv the NAME variable. */ 46: extern char nextline[] ; /* Read-ahead of the mail message, minus nl */ 47: extern char *optarg ; /* Optional command line argument. */ 48: extern char *owner ; /* Name of owner (usually equal to 'to') */ 49: extern char *progname ; /* Name of this program. */ 50: extern char *prologue ; /* Name of PostScript prologue file. */ 51: extern char proname[] ; /* Full pathname of the prologue file. */ 52: extern char *whoami ; /* Login name of user. */ 53: 54: extern int clen ; /* Current line length (including newline). */ 55: extern int colct ; /* Column count on current page. */ 56: extern int cmdfiles ; /* Set if file to print given on command line. */ 57: extern int linect ; /* Line count on current page. */ 58: extern int llen ; /* Number of characters per line. */ 59: extern int mlen ; /* Number of characters in message (-C). */ 60: extern int numcols ; /* Number of columns per page */ 61: extern int optind ; /* Optional command line argument indicator. */ 62: extern int pageno ; /* Page number within message. */ 63: extern int plen ; /* Number of lines per page. */ 64: extern int tpn ; /* Total number of pages printed. */ 65: 66: extern bool article ; /* Set for news in "Article from " format. */ 67: extern bool content ; /* Set if Content-Length: has message length. */ 68: extern bool digest ; /* Are we are printing a mail digest (-d) */ 69: extern bool elm_if ; /* Elm mail frontend intermediate file. */ 70: extern bool folder ; /* Set if we are printing a mail folder. */ 71: extern bool landscape ; /* Set if we are printing in landscape mode. */ 72: extern bool print_orig ; /* Print originators name rather then Mail for. */ 73: extern bool print_ps ; /* Print PostScript files if set. */ 74: extern bool text_doc ; /* Printing normal text (-o) */ 75: 76: extern bool end_of_file ; /* EOF indicator */ 77: extern bool end_of_line ; /* Is a newline removed from this line */ 78: extern bool end_of_page ; /* end-of-page indicator - ^L on input */ 79: 80: extern document_type doc_type ; /* Printing type - default mail */ 81: extern paper_type paper_size ; /* Paper size - default US */ 82: 83: extern FILE *fp ; /* File pointer for current file. */