home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-08-16 | 33.3 KB | 1,006 lines |
- Newsgroups: comp.sources.misc
- From: iain%anl433.uucp@Germany.EU.net (Iain Lea)
- Subject: v31i086: tin - threaded full screen newsreader v1.1, Patch05g/7
- Message-ID: <1992Aug16.012805.12948@sparky.imd.sterling.com>
- X-Md4-Signature: e0a9b0028c19b33b58ea50d40e560f06
- Date: Sun, 16 Aug 1992 01:28:05 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: iain%anl433.uucp@Germany.EU.net (Iain Lea)
- Posting-number: Volume 31, Issue 86
- Archive-name: tin/patch05g
- Environment: BSD, SCO, ISC, SUNOS, SYSVR3, SYSVR4, ULTRIX, XENIX
- Patch-To: tin: Volume 31, Issue 1-15
-
- #!/bin/sh
- # this is patch-1.15.shar.07 (part 7 of tin-1.15)
- # do not concatenate these parts, unpack them in order with /bin/sh
- # file tin-1.15.patch continued
- #
- if test ! -r _shar_seq_.tmp; then
- echo 'Please unpack part 1 first!'
- exit 1
- fi
- (read Scheck
- if test "$Scheck" != 7; then
- echo Please unpack part "$Scheck" next!
- exit 1
- else
- exit 0
- fi
- ) < _shar_seq_.tmp || exit 1
- if test ! -f _shar_wnt_.tmp; then
- echo 'x - still skipping tin-1.15.patch'
- else
- echo 'x - continuing file tin-1.15.patch'
- sed 's/^X//' << 'SHAR_EOF' >> 'tin-1.15.patch' &&
- X .ds ]W \*(mo \n(dy, 19\n(yr
- X .nh
- X .SH NAME
- --- 17,23 ----
- X .if \n(mo=10 .ds mo October
- X .if \n(mo=11 .ds mo November
- X .if \n(mo=12 .ds mo December
- ! .TH TIN 1 "Version 1.1 PL5" "" "LOCAL"
- X .ds ]W \*(mo \n(dy, 19\n(yr
- X .nh
- X .SH NAME
- ***************
- *** 77,87 ****
- X mail unread articles to specified user for later reading. For more
- X information read section Automatic Mailing and Saving New News.
- X .TP
- - .B -n
- - notify the user of any newly created newsgroups since the last session.
- - .TP
- X .BI -p " file"
- ! print program with options.\fP.
- X .TP
- X .B -r
- X read news remotely from the default NNTP server specified in the
- --- 77,87 ----
- X mail unread articles to specified user for later reading. For more
- X information read section Automatic Mailing and Saving New News.
- X .TP
- X .BI -p " file"
- ! print program with options.
- ! .TP
- ! .BI -q
- ! quick start without checking for new newsgroups.
- X .TP
- X .B -r
- X read news remotely from the default NNTP server specified in the
- ***************
- *** 117,123 ****
- X in login file.
- X .TP
- X .B -Z
- ! check if there is any new/unread news and exit with appropiate status.
- X If -v option is specified the number of unread articles in each group
- X is printed. An exit code 0 indicates no news, 1 that an error occurred
- X and 2 that new/unread news exists. Useful for writing scripts.
- --- 117,123 ----
- X in login file.
- X .TP
- X .B -Z
- ! check if there is any new/unread news and exit with appropriate status.
- X If -v option is specified the number of unread articles in each group
- X is printed. An exit code 0 indicates no news, 1 that an error occurred
- X and 2 that new/unread news exists. Useful for writing scripts.
- ***************
- *** 168,174 ****
- X This has the advantage that there will only be one copy of the index files on
- X the NNTP server for the whole of your network and tin clients must not be
- X setuid news, but the disadvantage is that you will have to install my NNTP
- ! server patches to allow tin to retreive index file from your NNTP server and
- X and you must install an entry in the cron batcher system to have tind
- X regularly update index files (Note that this is the method we use on our
- X network of 40-50 machines and have not had any problems).
- --- 168,174 ----
- X This has the advantage that there will only be one copy of the index files on
- X the NNTP server for the whole of your network and tin clients must not be
- X setuid news, but the disadvantage is that you will have to install my NNTP
- ! server patches to allow tin to retrieve index file from your NNTP server and
- X and you must install an entry in the cron batcher system to have tind
- X regularly update index files (Note that this is the method we use on our
- X network of 40-50 machines and have not had any problems).
- ***************
- *** 194,201 ****
- X statistics.
- X .PP
- X A user starting tin for the first time can be automatically subscribed to a
- ! list of newsgroups that are deemed appropiate by the news administrator. At
- ! our site the subscriptions file has 125 groups (our active file conatains
- X over 400 groups with many only being marginally interesting to most people).
- X The subscriptions file should be created in your news lib directory (i.e.
- X /usr/lib/news/subscriptions) and should have file permissions set to 0644.
- --- 194,201 ----
- X statistics.
- X .PP
- X A user starting tin for the first time can be automatically subscribed to a
- ! list of newsgroups that are deemed appropriate by the news administrator. At
- ! our site the subscriptions file has 125 groups (our active file contains
- X over 400 groups with many only being marginally interesting to most people).
- X The subscriptions file should be created in your news lib directory (i.e.
- X /usr/lib/news/subscriptions) and should have file permissions set to 0644.
- ***************
- *** 308,314 ****
- X .PP
- X .TP 10
- X \fB^A,^E\fP
- ! move to beginnning or end of line, respectively.
- X .TP
- X \fB^F,^B\fP
- X nondestructive move forward or back one location, respectively.
- --- 308,314 ----
- X .PP
- X .TP 10
- X \fB^A,^E\fP
- ! move to beginning or end of line, respectively.
- X .TP
- X \fB^F,^B\fP
- X nondestructive move forward or back one location, respectively.
- ***************
- *** 353,359 ****
- X Read current group.
- X .TP
- X \fB<TAB>\fP
- ! View next unread group.
- X .TP
- X \fBB\fP
- X Mail a bug report or comment to the author. This is the best way of
- --- 353,360 ----
- X Read current group.
- X .TP
- X \fB<TAB>\fP
- ! View next group withg unread news. Will wrap around to the beginning of the
- ! group selection list looking for unread groups.
- X .TP
- X \fBB\fP
- X Mail a bug report or comment to the author. This is the best way of
- ***************
- *** 400,405 ****
- --- 401,410 ----
- X \fBQ\fP
- X Quit tin.
- X .TP
- + \fBr\fP
- + Toggle display of all subscribed to groups and just the subscribed to groups
- + containing unread articles.
- + .TP
- X \fBs\fP
- X Subscribe to current group.
- X .TP
- ***************
- *** 503,510 ****
- X Mark all articles as read with confirmation.
- X .TP
- X \fBC\fP
- ! Cancel current article. It must have been posted by the same user. The
- ! cancel message can be seen in the newsgroup 'control'.
- X .TP
- X \fBd\fP
- X Toggle display to show just the subject or the subject and author.
- --- 508,514 ----
- X Mark all articles as read with confirmation.
- X .TP
- X \fBC\fP
- ! Mark all articles as read and goto next group with unread news.
- X .TP
- X \fBd\fP
- X Toggle display to show just the subject or the subject and author.
- ***************
- *** 619,625 ****
- X \fB*\fP
- X Select current thread for later processing.
- X .TP
- ! \fB.\fP
- X Toggle selection of current thread. If at least one unread art,
- X but not all unread arts, in thread is selected, then all unread
- X arts become selected.
- --- 623,629 ----
- X \fB*\fP
- X Select current thread for later processing.
- X .TP
- ! \fB\.\fP
- X Toggle selection of current thread. If at least one unread art,
- X but not all unread arts, in thread is selected, then all unread
- X arts become selected.
- ***************
- *** 668,673 ****
- --- 672,681 ----
- X \fBc\fP
- X Mark thread as read after confirmation and return to previous level.
- X .TP
- + \fBC\fP
- + Cancel current article. It must have been posted by the same user. The
- + cancel message can be seen in the newsgroup 'control'.
- + .TP
- X \fBd\fP
- X Toggle display to show just the subject or the subject and author.
- X .TP
- ***************
- *** 853,859 ****
- X \fB*\fP
- X Select current thread for later processing.
- X .TP
- ! \fB.\fP
- X Toggle selection of current article.
- X .TP
- X \fB@\fP
- --- 861,867 ----
- X \fB*\fP
- X Select current thread for later processing.
- X .TP
- ! \fB\.\fP
- X Toggle selection of current article.
- X .TP
- X \fB@\fP
- ***************
- *** 861,867 ****
- X .TP
- X \fB~\fP
- X Undo all selections on current thread.
- ! .SH "OPTIONS MENU"
- X This menu is accessed by pressing 'M' at all levels. It allows the user
- X to customize the behaviour of tin. The options are saved to the file
- X \fI$HOME/.tin/tinrc\fP. Use <SPACE> to toggle the required option and
- --- 869,875 ----
- X .TP
- X \fB~\fP
- X Undo all selections on current thread.
- ! .SH "GLOBAL OPTIONS MENU"
- X This menu is accessed by pressing 'M' at all levels. It allows the user
- X to customize the behaviour of tin. The options are saved to the file
- X \fI$HOME/.tin/tinrc\fP. Use <SPACE> to toggle the required option and
- ***************
- *** 968,985 ****
- X \fBPrinter\fP
- X The printer program with options that is to be used to print
- X articles. Default is lpr for BSD machines and lp for SysV machines.
- ! .SH "KILL ARTICLE MENU"
- X This menu is accessed by pressing '^K' at the group and page levels. It
- ! allows the user to kill an article that matches the current ``Subject:''
- ! line, ``From:'' line or a string entered by the user. The user entered string
- ! can be applied to the ``Subject:'' or ``From:'' lines of an article. The kill
- ! description can be limited to the current newsgroup or it can apply to all newsgroups.
- ! Once entered the user can abort the command and not save the kill
- ! description, edit the kill file or save the kill description.
- X .PP
- X On starting tin the users killfile \fI$HOME/.tin/kill\fP is read and
- ! on entering a newsgroup any kill descriptions are applied. Articles
- ! that match a kill description are marked killed and are not displayed.
- X .SH "POSTING ARTICLES"
- X Tin allows posting of articles, follow-up to already posted articles
- X and replying direct through mail to the author of an article.
- --- 976,1047 ----
- X \fBPrinter\fP
- X The printer program with options that is to be used to print
- X articles. Default is lpr for BSD machines and lp for SysV machines.
- ! .SH "GROUP ATTRIBUTES"
- ! Tin allows certain attributes to be set on a per group basis. These
- ! group attributes are read from the file \fI$HOME/.tin/attributes\fP.
- ! A later version of Tin will provide a menu interface to set all the
- ! attributes. At present you will have to edit the file with your
- ! editor :-(. The following group attributes are available:
- !
- ! .RS
- ! .nf
- ! .ft CW
- ! newsgroup=alt.sources
- ! maildir=/usr/iain/Mail/sources
- ! savedir=/usr/iain/News/alt.sources
- ! sigfile=/usr/iain/.funny_sig
- ! followup_to=alt.sources.d
- ! auto_save=ON
- ! batch_save=ON
- ! show_only_unread=ON
- ! thread_arts=ON
- ! show_author=1
- ! sort_art_type=5
- ! post_proc_type=1
- ! .ft P
- ! .fi
- ! .RE
- !
- ! Note that the ''newsgroup=<groupname>'' line has to be specified
- ! before the attributes are specified for that group.
- ! .PP
- ! All attributes are set to a reasonable default so you only have to
- ! specify the attribute that you want to change (ie. savedir).
- ! .PP
- ! All toggle attributes are set by specifying ON/OFF.
- ! .PP
- ! The show_author attribute is specified by a number from the following
- ! range: 0=none, 1=username, 2=network address, 3=both.
- ! .PP
- ! The sort_art_type attribute is specified by a number from the following
- ! range: 0=none, 1=subject descending, 2=subject ascending, 3=from descending,
- ! 4=from ascending, 5=date descending, 6=date ascending.
- ! .PP
- ! The post_proc_type attribute is specified by a number from the following
- ! range: 0=none, 1=shar, 2=uudecode, 3=uudecode & list zoo, 4=uudecode &
- ! extract zoo.
- ! .SH "AUTOMATIC KILL AND SELECTION"
- ! When there is a subject or an author which you are either very
- ! interested in, or find completely uninteresting, you can easily
- ! instruct \fITin\fP to \fIauto-select\fP or \fIauto-kill\fP articles
- ! with specific subjects or from specific authors. These instructions
- ! are stored in a \fIkill file\fP.
- ! .PP
- X This menu is accessed by pressing '^K' at the group and page levels. It
- ! allows the user to kill or select an article that matches the current
- ! ``Subject:'' line, ``From:'' line or a string entered by the user.
- ! The user entered string can be applied to the ``Subject:'' or ``From:''
- ! lines of an article. The kill description can be limited to the current
- ! newsgroup or it can apply to all newsgroups. Once entered the user can
- ! abort the command and not save the kill description, edit the kill file
- ! or save the kill description.
- X .PP
- X On starting tin the users killfile \fI$HOME/.tin/kill\fP is read and
- ! on entering a newsgroup any kill or select descriptions are applied.
- ! .PP
- ! Articles that match a kill description are marked killed and are not
- ! displayed. Articles that match an auto-select description are marked
- ! with a ''*'' when displayed.
- X .SH "POSTING ARTICLES"
- X Tin allows posting of articles, follow-up to already posted articles
- X and replying direct through mail to the author of an article.
- ***************
- *** 1055,1061 ****
- X tin -S -f newsrc.save (save any unread articles in newgroups specified
- X in file newsrc.save)
- X .PP
- ! tin -R (read any unread articles saved by tin -S option)
- X .SH SIGNATURES
- X Tin will recognize a signature in either \fI$HOME/.signature\fP or
- X \fI$HOME/.Sig\fP. If \fI$HOME/.signature\fP exists, then the signature
- --- 1117,1123 ----
- X tin -S -f newsrc.save (save any unread articles in newgroups specified
- X in file newsrc.save)
- X .PP
- ! tin -R (read any articles saved by tin -S option)
- X .SH SIGNATURES
- X Tin will recognize a signature in either \fI$HOME/.signature\fP or
- X \fI$HOME/.Sig\fP. If \fI$HOME/.signature\fP exists, then the signature
- ***************
- *** 1104,1110 ****
- X Set the article header field ``Reply-To:'' to the return address specified
- X by the variable.
- X This is useful if the machine is not registered in the UUCP mail maps
- ! or if you wish to recieve replies at a different machine.
- X This variable has precedence over the file \fI$HOME/.tin/replyto\fP
- X that may also contain a return address.
- X .TP
- --- 1166,1172 ----
- X Set the article header field ``Reply-To:'' to the return address specified
- X by the variable.
- X This is useful if the machine is not registered in the UUCP mail maps
- ! or if you wish to receive replies at a different machine.
- X This variable has precedence over the file \fI$HOME/.tin/replyto\fP
- X that may also contain a return address.
- X .TP
- ***************
- *** 1113,1119 ****
- X directly through mail to somebody whose mail address is not directly
- X recognized by the local host. For example say the return address is
- X \fIuser@bigvax\fP, but \fIbigvax\fP is not recognized by your host, so
- ! therfore the mail will not reach \fIuser\fP. But the host \fIlittevax\fP
- X is known to recognize your host and \fIbigvax\fP, so if ADD_ADDRESS is set
- X (i.e. 'setenv ADD_ADDRESS @littevax' for csh or 'set ADD_ADDRESS @littevax'
- X and 'export ADD_ADDRESS' for sh) the address \fIuser@bigvax@littlevax\fP will
- --- 1175,1181 ----
- X directly through mail to somebody whose mail address is not directly
- X recognized by the local host. For example say the return address is
- X \fIuser@bigvax\fP, but \fIbigvax\fP is not recognized by your host, so
- ! therefore the mail will not reach \fIuser\fP. But the host \fIlittevax\fP
- X is known to recognize your host and \fIbigvax\fP, so if ADD_ADDRESS is set
- X (i.e. 'setenv ADD_ADDRESS @littevax' for csh or 'set ADD_ADDRESS @littevax'
- X and 'export ADD_ADDRESS' for sh) the address \fIuser@bigvax@littlevax\fP will
- ***************
- *** 1162,1167 ****
- --- 1224,1232 ----
- X $HOME/.tin/tinrc
- X options.
- X .TP 2i
- + $HOME/.tin/attributes
- + contains user specified group attributes.
- + .TP 2i
- X $HOME/.tin/.index
- X newsgroup index files directory.
- X .TP 2i
- ***************
- *** 1168,1176 ****
- X $HOME/.tin/add_address
- X address to add to when replying through mail.
- X .TP 2i
- - $HOME/.tin/active
- - used by -n option for notifying user of new groups.
- - .TP 2i
- X $HOME/.tin/bug_address
- X address to send bug reports to.
- X .TP 2i
- --- 1233,1238 ----
- ***************
- *** 1186,1194 ****
- X $HOME/.tin/replyto
- X host address to use in ``Reply-To:'' mail header.
- X .TP 2i
- - $HOME/.tin/unthread
- - contains groups that are not to be threaded.
- - .TP 2i
- X $HOME/.signature
- X signature.
- X .TP 2i
- --- 1248,1253 ----
- ***************
- *** 1205,1211 ****
- X Does not yet handle ``Xref:'' headers for cross-posted articles.
- X .SH HISTORY
- X Based on the tass newsreader that was developed by Rich Skrenta and posted
- ! to alt.sources in March 1991. Tass was itself heavily infleuenced by NOTES
- X which was developed at the University of Illinois by Ray Essick and
- X Rob Kolstad in 1982.
- X .PP
- --- 1264,1270 ----
- X Does not yet handle ``Xref:'' headers for cross-posted articles.
- X .SH HISTORY
- X Based on the tass newsreader that was developed by Rich Skrenta and posted
- ! to alt.sources in March 1991. Tass was itself heavily influenced by NOTES
- X which was developed at the University of Illinois by Ray Essick and
- X Rob Kolstad in 1982.
- X .PP
- ***************
- *** 1234,1239 ****
- --- 1293,1300 ----
- X Tin v1.1 PL3 (full distribution) was posted in 15 parts to alt.sources on 13 May 1992.
- X .br
- X Tin v1.1 PL4 (full distribution) was posted in 15 parts to alt.sources on 22 Jun 1992.
- + .br
- + Tin v1.1 PL5 (patch) was posted in 7 parts to alt.sources on 11 Aug 1992.
- X .SH CREDITS
- X .TP
- X Rich Skrenta
- ***************
- *** 1254,1267 ****
- X .PP
- X I wish to thank the following people for supplying patchs:
- X .PP
- ! Anton Aylward, Paul Bauwens, Dieter Becker, Dan Berry, Marc Boucher, Leila Burrell-Davis,
- ! Robert Claeson, Steven Cogswell, Ned Danieley, Chris Davies, Brent Ermlick,
- ! Callum Gibson, Carl Hage, Paul Halsema, Ed Hanway, Daniel Hermans, Tom Hite, Torsten Homeyer,
- ! Nelson Kading, Fritz Kleeman, Karl-Koenig Koenigsson, Kris Kugel, Hakan Lennestal,
- ! Clifford Luke, Michael Faurot, David MacKenzie, James Nugen, Jeb Palmer, Tom Parry,
- ! Bill Poitras, Wolfgang Prediger, Jim Robinson, Stephen Roseman, Nickolay Saukh,
- ! Rich Salz, John Sauter, Bart Sears, Karl-Olav Serrander, Doug Sewell, Cliff Stanford,
- ! Steve Starck, Michael Traub, Adri Verhoef, Paul Vickers, Cary Whitney, Greg Woods,
- X Lloyd Wright
- X .PP
- X I wish to thank the following people for bug reports/comments:
- --- 1315,1331 ----
- X .PP
- X I wish to thank the following people for supplying patchs:
- X .PP
- ! Anton Aylward, Paul Bauwens, Dieter Becker, Dan Berry, Marc Boucher,
- ! Leila Burrell-Davis, Peter Castro, Robert Claeson, Steven Cogswell,
- ! Don Costello, Ned Danieley, Chris Davies, Craig Durland, Kirk Edson, Rob Engle,
- ! Brent Ermlick, Callum Gibson, Carl Hage, Paul Halsema, Ed Hanway, Scott Hauck,
- ! Daniel Hermans, Tom Hite, Torsten Homeyer, Nelson Kading, Fritz Kleeman,
- ! Karl-Koenig Koenigsson, Kris Kugel, Alex Lange, Hakan Lennestal, Clifford Luke,
- ! Michael Faurot, David MacKenzie, James Nugen, Jeb Palmer, Tom Parry,
- ! Bill Poitras, Wolfgang Prediger, Jim Robinson, Stephen Roseman,
- ! Nickolay Saukh, Rich Salz, John Sauter, Bart Sears, Karl-Olav Serrander,
- ! Doug Sewell, Steve Spearman, Cliff Stanford, Steve Starck, Mark Tomlin,
- ! Michael Traub, Adri Verhoef, Paul Vickers, Cary Whitney, Greg Woods,
- X Lloyd Wright
- X .PP
- X I wish to thank the following people for bug reports/comments:
- ***************
- *** 1268,1283 ****
- X .PP
- X Klaus Arzig, Scott Babb, Reiner Balling, Preston Bannister, Bill de Beabien,
- X Volker Beyer, Etienne Bido, Roger Binns, Georg Biehler, Jean-Marc Bonnaudet,
- ! Sean Brady, Ian Brown, Andreas Brosig, Tom Czarnik, David Donovan, Peter Dressler,
- ! Gerhard Ermer, Hugh Fader, Joachim Feld, Paul Fox, Bernhard Gmelch, Viet Hoang,
- ! Andy Jackson, Joe Johnson, Cyrill Jung, Kuo-Chein Kai, Hans-Juergen Knopp,
- ! Bernhard Kroenung, Murray Laing, Marty Leisner, Per Lindqvist, Bob Lukas,
- ! Kazushi Marukawa, Phillip Molloy, Toni Metz, Greg Miller, Klaus Neuberger,
- ! Otto Niesser, Reiner Oelhaf, Alex Pakter, John Palkovic, Wolf Paul, Andrew Phillips,
- ! Stefan Rathmann, Ted Richards, David Ross, Jonas Rwgmyr, Daemon Schaefer, John Schmitz,
- ! Dean Schrimpf, Klamer Schutte, Fredy Schwatz, Bernd Schwerin, Chris Smith,
- ! Daniel Smith, Steve Spearman, Hironobu Takahashi, Ken Taylor, Tony Travis,
- ! Sven Werner, G. Woodbury, Orest Zboroski
- X .SH AUTHOR
- X .TP
- X Iain Lea
- --- 1332,1348 ----
- X .PP
- X Klaus Arzig, Scott Babb, Reiner Balling, Preston Bannister, Bill de Beabien,
- X Volker Beyer, Etienne Bido, Roger Binns, Georg Biehler, Jean-Marc Bonnaudet,
- ! Sean Brady, Ian Brown, Andreas Brosig, Craig Bruce, Tom Czarnik, David Donovan,
- ! Peter Dressler, Gerhard Ermer, Hugh Fader, Joachim Feld, Paul Fox, Jay Geertsen,
- ! Bernhard Gmelch, Viet Hoang, Andy Jackson, Joe Johnson, Cyrill Jung, Kuo-Chein Kai,
- ! Hans-Juergen Knopp, Tom Kovar, Bernhard Kroenung, Murray Laing, Marty Leisner,
- ! Per Lindqvist, Eric Litman, Bob Lukas, Michael Marshall, Kazushi Marukawa,
- ! Phillip Molloy, Toni Metz, Greg Miller, Deeptendu Majumder, Klaus Neuberger,
- ! Otto Niesser, Reiner Oelhaf, Alex Pakter, John Palkovic, Wolf Paul, Andrew Phillips,
- ! Stefan Rathmann, Ted Richards, David Ross, Jonas Rwgmyr, Daemon Schaefer,
- ! John Schmitz, Dean Schrimpf, Klamer Schutte, Fredy Schwatz, Dave Schweisguth,
- ! Bernd Schwerin, Chris Smith, Daniel Smith, Hironobu Takahashi, Ken Taylor,
- ! Tony Travis, Paul Verket, Sven Werner, Paul Wood, Gregory Woodbury, Orest Zboroski
- X .SH AUTHOR
- X .TP
- X Iain Lea
- diff -rcs ../1.14/tin.h ./tin.h
- *** ../1.14/tin.h Tue Aug 11 21:23:27 1992
- --- ./tin.h Sat Aug 8 15:42:36 1992
- ***************
- *** 3,9 ****
- X * Module : tin.h
- X * Author : I.Lea & R.Skrenta
- X * Created : 01-04-91
- ! * Updated : 22-06-92
- X * Notes : #include files, #defines & struct's
- X * Copyright : (c) Copyright 1991-92 by Iain Lea & Rich Skrenta
- X * You may freely copy or redistribute this software,
- --- 3,9 ----
- X * Module : tin.h
- X * Author : I.Lea & R.Skrenta
- X * Created : 01-04-91
- ! * Updated : 08-08-92
- X * Notes : #include files, #defines & struct's
- X * Copyright : (c) Copyright 1991-92 by Iain Lea & Rich Skrenta
- X * You may freely copy or redistribute this software,
- ***************
- *** 17,30 ****
- X #include <errno.h>
- X #ifdef apollo
- X # include </bsd4.3/usr/include/sys/types.h>
- X #else
- X # include <sys/types.h>
- X #endif
- - #include <sys/stat.h>
- X #include <pwd.h>
- X #include <ctype.h>
- X #include <time.h>
- ! #if !defined(apollo) && !defined(__NeXT__)
- X # include <unistd.h>
- X #endif
- X
- --- 17,33 ----
- X #include <errno.h>
- X #ifdef apollo
- X # include </bsd4.3/usr/include/sys/types.h>
- + # include </bsd4.3/usr/include/sys/stat.h>
- + # include </bsd4.3/usr/include/time.h>
- X #else
- X # include <sys/types.h>
- + # include <sys/stat.h>
- + # include <time.h>
- X #endif
- X #include <pwd.h>
- X #include <ctype.h>
- X #include <time.h>
- ! #if !defined(__NeXT__) && !defined(apollo) && !defined(gould) && !defined(mips)
- X # include <unistd.h>
- X #endif
- X
- ***************
- *** 32,38 ****
- X # include <strings.h>
- X # include <fcntl.h>
- X #else
- ! # ifndef apollo
- X # include <stdlib.h>
- X # endif
- X # include <string.h>
- --- 35,41 ----
- X # include <strings.h>
- X # include <fcntl.h>
- X #else
- ! # if !defined(apollo) && !defined(sysV68) && !defined(UTS)
- X # include <stdlib.h>
- X # endif
- X # include <string.h>
- ***************
- *** 58,64 ****
- X * Needed for catching child processes
- X */
- X
- ! #ifdef SIGCHLD
- X # include <sys/wait.h>
- X #endif
- X
- --- 61,67 ----
- X * Needed for catching child processes
- X */
- X
- ! #if defined(SIGCHLD) && !defined(apollo)
- X # include <sys/wait.h>
- X #endif
- X
- ***************
- *** 66,73 ****
- X * Needed for resizing under an xterm
- X */
- X
- ! #if defined(SIGWINCH)
- ! # ifndef SCO_UNIX
- X # include <termios.h>
- X # endif
- X # if !defined(TIOCGWINSZ) && !defined(TIOCGSIZE)
- --- 69,76 ----
- X * Needed for resizing under an xterm
- X */
- X
- ! #if defined(SIGWINCH) && !defined(__NeXT__)
- ! # ifdef SVR4
- X # include <termios.h>
- X # endif
- X # if !defined(TIOCGWINSZ) && !defined(TIOCGSIZE)
- ***************
- *** 144,151 ****
- X # if defined(sony)
- X typedef int sigtype_t;
- X # else
- ! # if __STDC__ || defined(SVR4) || defined(sinix) || defined(sun) || \
- ! defined(ultrix) || defined(atthcx) || defined(PTX) || defined(sgi)
- X typedef void sigtype_t;
- X # else
- X typedef int sigtype_t;
- --- 147,156 ----
- X # if defined(sony)
- X typedef int sigtype_t;
- X # else
- ! # if __STDC__ || defined(atthcx) || defined(PTX) || \
- ! defined(RS6000) || defined(sgi) || defined(sinix) || \
- ! defined(sysV68) || defined(sun) || defined(SVR4) || \
- ! defined(ultrix)
- X typedef void sigtype_t;
- X # else
- X typedef int sigtype_t;
- ***************
- *** 172,178 ****
- X */
- X
- X #ifdef BSD
- ! # if defined(_SEQUENT_) || defined(pyr)
- X # define memcmp(s1, s2, n) bcmp(s2, s1, n)
- X # endif
- X # define strchr(str, ch) index(str, ch)
- --- 177,183 ----
- X */
- X
- X #ifdef BSD
- ! # if defined(sequent) || defined(pyr)
- X # define memcmp(s1, s2, n) bcmp(s2, s1, n)
- X # endif
- X # define strchr(str, ch) index(str, ch)
- ***************
- *** 181,196 ****
- X # define DEFAULT_PRINTER "/usr/ucb/lpr"
- X # define DEFAULT_SUM "sum"
- X # ifdef DGUX
- - # define DEFAULT_MAILER "/bin/mail"
- X # define DEFAULT_MAILBOX "/usr/mail"
- X # define POSIX_JOB_CONTROL
- X # define USE_INVERSE_HACK
- X # endif
- X # ifdef pyr
- ! # define DEFAULT_MAILER "/usr/.attbin/mailx"
- X # endif
- X # ifndef DEFAULT_MAILER
- ! # define DEFAULT_MAILER "/usr/ucb/Mail"
- X # endif
- X # ifndef DEFAULT_MAILBOX
- X # define DEFAULT_MAILBOX "/usr/spool/mail"
- --- 186,200 ----
- X # define DEFAULT_PRINTER "/usr/ucb/lpr"
- X # define DEFAULT_SUM "sum"
- X # ifdef DGUX
- X # define DEFAULT_MAILBOX "/usr/mail"
- X # define POSIX_JOB_CONTROL
- X # define USE_INVERSE_HACK
- X # endif
- X # ifdef pyr
- ! # define DEFAULT_MAILER "/usr/.ucbbin/mail"
- X # endif
- X # ifndef DEFAULT_MAILER
- ! # define DEFAULT_MAILER "/usr/lib/sendmail"
- X # endif
- X # ifndef DEFAULT_MAILBOX
- X # define DEFAULT_MAILBOX "/usr/spool/mail"
- ***************
- *** 199,234 ****
- X # define USE_LONG_FILENAMES
- X # endif
- X #else
- ! # ifdef M_XENIX
- ! # define DEFAULT_EDITOR "/bin/vi"
- ! # define DEFAULT_MAILER "/usr/bin/mail"
- ! # define DEFAULT_MAILBOX "/usr/spool/mail"
- ! # endif
- ! # if defined(NCR) || defined(atthcx) || defined(HPUX)
- X # define DEFAULT_MAILER "/usr/bin/mailx"
- X # endif
- ! # ifdef PTX
- ! # define DEFAULT_MAILER "/usr/bin/mailx"
- X # ifndef USE_LONG_FILENAMES
- X # define USE_LONG_FILENAMES
- X # endif
- X # endif
- X # ifdef RS6000
- X # define DEFAULT_MAILER "/usr/bin/mail"
- X # define DEFAULT_PRINTER "/bin/lp"
- X # endif
- X # ifdef sinix
- - # define DEFAULT_MAILER "/bin/rmail"
- X # define DEFAULT_PRINTER "/bin/lpr"
- ! # ifndef USE_LONG_FILENAMES
- ! # define USE_LONG_FILENAMES
- ! # endif
- X # endif
- X # ifdef SVR4
- X # define POSIX_JOB_CONTROL
- - # ifndef USE_LONG_FILENAMES
- - # define USE_LONG_FILENAMES
- - # endif
- X # endif
- X # ifdef UNIXPC
- X # define DEFAULT_MAILER "/bin/rmail"
- --- 203,235 ----
- X # define USE_LONG_FILENAMES
- X # endif
- X #else
- ! # if defined(NCR) || defined(atthcx) || defined(HPUX) || defined(PTX) || \
- ! defined(sinix)
- X # define DEFAULT_MAILER "/usr/bin/mailx"
- X # endif
- ! # if defined(PTX) || defined(RS6000) || defined(SVR4) || defined(sinix) || \
- ! defined(AUX)
- X # ifndef USE_LONG_FILENAMES
- X # define USE_LONG_FILENAMES
- X # endif
- X # endif
- + # ifdef M_XENIX
- + # define DEFAULT_EDITOR "/bin/vi"
- + # define DEFAULT_MAILER "/usr/bin/mail"
- + # define DEFAULT_MAILBOX "/usr/spool/mail"
- + # endif
- X # ifdef RS6000
- X # define DEFAULT_MAILER "/usr/bin/mail"
- X # define DEFAULT_PRINTER "/bin/lp"
- X # endif
- X # ifdef sinix
- X # define DEFAULT_PRINTER "/bin/lpr"
- ! # endif
- ! # ifdef sysV68
- ! # define DEFAULT_MAILER "/bin/rmail"
- X # endif
- X # ifdef SVR4
- X # define POSIX_JOB_CONTROL
- X # endif
- X # ifdef UNIXPC
- X # define DEFAULT_MAILER "/bin/rmail"
- ***************
- *** 268,279 ****
- X #endif
- X
- X /*
- ! * Should active file be rereaf for new news & if so how often
- X */
- X
- ! #ifndef NO_RESYNC_ACTIVE_FILE
- ! # ifndef RESYNC_ACTIVE_SECS
- ! # define RESYNC_ACTIVE_SECS 300 /* reread active every n secs */
- X # endif
- X #endif
- X
- --- 269,280 ----
- X #endif
- X
- X /*
- ! * Should active file be reread for new news & if so how often
- X */
- X
- ! #ifndef NO_REREAD_ACTIVE_FILE
- ! # ifndef REREAD_ACTIVE_FILE_SECS
- ! # define REREAD_ACTIVE_FILE_SECS 300 /* seconds */
- X # endif
- X #endif
- X
- ***************
- *** 286,301 ****
- --- 287,307 ----
- X # define DEFAULT_ARTICLE_NUM 400
- X # define DEFAULT_KILL_NUM 10
- X # define DEFAULT_SAVE_NUM 10
- + # define DEFAULT_SPOOLDIR_NUM 5
- + # define DEFAULT_ACTIVE_SIZE_NUM 5
- X #else
- X # define DEFAULT_ACTIVE_NUM 1800
- X # define DEFAULT_ARTICLE_NUM 1200
- X # define DEFAULT_KILL_NUM 30
- X # define DEFAULT_SAVE_NUM 30
- + # define DEFAULT_SPOOLDIR_NUM 10
- + # define DEFAULT_ACTIVE_SIZE_NUM 10
- X #endif
- X
- X #define RCDIR ".tin"
- X #define RCFILE "tinrc"
- X #define INDEXDIR ".index"
- + #define ACTIVEDIR ".active"
- X #define KILLFILE "kill"
- X #define POSTFILE "posted"
- X #define UNTHREADFILE "unthread"
- ***************
- *** 390,400 ****
- X */
- X
- X #define SORT_BY_NOTHING 0 /* sort types on arts[] array */
- ! #define SORT_BY_SUBJ_DESCEND 1
- X #define SORT_BY_SUBJ_ASCEND 2
- ! #define SORT_BY_FROM_DESCEND 3
- X #define SORT_BY_FROM_ASCEND 4
- ! #define SORT_BY_DATE_DESCEND 5
- X #define SORT_BY_DATE_ASCEND 6
- X
- X #define SHOW_FROM_NONE 0
- --- 396,406 ----
- X */
- X
- X #define SORT_BY_NOTHING 0 /* sort types on arts[] array */
- ! #define SORT_BY_SUBJ_DESCEND 1
- X #define SORT_BY_SUBJ_ASCEND 2
- ! #define SORT_BY_FROM_DESCEND 3
- X #define SORT_BY_FROM_ASCEND 4
- ! #define SORT_BY_DATE_DESCEND 5
- X #define SORT_BY_DATE_ASCEND 6
- X
- X #define SHOW_FROM_NONE 0
- ***************
- *** 470,476 ****
- X
- X #define ART_READ 0
- X #define ART_UNREAD 1
- ! #define ART_WILL_RETURN 2
- X
- X /*
- X * used by group_t & my_group[]
- --- 476,482 ----
- X
- X #define ART_READ 0
- X #define ART_UNREAD 1
- ! #define ART_WILL_RETURN 2
- X
- X /*
- X * used by group_t & my_group[]
- ***************
- *** 477,483 ****
- X */
- X
- X #define UNSUBSCRIBED 0x01 /* haven't put in my_group[] yet */
- ! #define SUBSCRIBED 0x02 /* subscribed to */
- X
- X /*
- X * kill_type used in struct kill_t
- --- 483,489 ----
- X */
- X
- X #define UNSUBSCRIBED 0x01 /* haven't put in my_group[] yet */
- ! #define SUBSCRIBED 0x02 /* subscribed to */
- X
- X /*
- X * kill_type used in struct kill_t
- ***************
- *** 571,588 ****
- X */
- X
- X struct attribute_t {
- ! char *server; /* read group locally/via nntp server */
- ! char *maildir; /* mail dir if other than ~/Mail */
- ! char *savedir; /* save dir if other than ~/News */
- ! char *sigfile; /* sig file if other than ~/.Sig */
- ! unsigned int read:1; /* marked TRUE if group was entered during session */
- ! unsigned int showall:1; /* 0 = only unread, 1 = all */
- ! unsigned int thread:1; /* 0 = unthread, 1 = thread */
- ! unsigned int sortby:4; /* 0 = none, 1 = , 2 = , 3 = , 4 = , */
- ! unsigned int author:4; /* 0 = none, 1 = name, 2 = addr, 3 = both */
- ! unsigned int autosave:1; /* 0 = none, 1 = save */
- ! unsigned int process:4; /* 0 = none, 1 = shar, 2 = uudecode,
- ! 3 = uud & list zoo, 4 = uud & ext zoo*/
- X };
- X
- X /*
- --- 577,597 ----
- X */
- X
- X struct attribute_t {
- ! char *maildir; /* mail dir if other than ~/Mail */
- ! char *savedir; /* save dir if other than ~/News */
- ! char *sigfile; /* sig file if other than ~/.Sig */
- ! char *followup_to; /* where posts should be redirected */
- ! unsigned int read_during_session:1; /* marked TRUE if group entered during session */
- ! unsigned int auto_save:1; /* 0=none, 1=save */
- ! unsigned int batch_save:1; /* 0=none, 1=save -S/mail -M */
- ! unsigned int show_only_unread:1; /* 0=all, 1=only unread */
- ! unsigned int thread_arts:1; /* 0=unthread, 1=thread */
- ! unsigned int show_author:4; /* 0=none, 1=name, 2=addr, 3=both */
- ! unsigned int sort_art_type:4; /* 0=none, 1=subj descend, 2=subj ascend,
- ! 3=from descend, 4=from ascend,
- ! 5=date descend, 6=date ascend */
- ! unsigned int post_proc_type:4; /* 0=none, 1=shar, 2=uudecode,
- ! 3=uud & list zoo, 4=uud & ext zoo*/
- X };
- X
- X /*
- ***************
- *** 596,602 ****
- X long min;
- X char moderated;
- X int next; /* next active entry in hash chain */
- ! int flag;
- X struct attribute_t attribute; /* per group attributes */
- X };
- X
- --- 605,612 ----
- X long min;
- X char moderated;
- X int next; /* next active entry in hash chain */
- ! int my_group; /* subscribed/unsubscribed to group */
- ! int unread; /* unread articles in group */
- X struct attribute_t attribute; /* per group attributes */
- X };
- X
- ***************
- *** 654,663 ****
- --- 664,686 ----
- X char art_mark; /* mark to use for this thread - not used for groups */
- X };
- X
- + /*
- + * Used by spooldir command
- + */
- +
- X struct spooldir_t {
- X int state;
- X char *name;
- X char *comment;
- + };
- +
- + /*
- + * Used for auto-detecting changes in active file size on different news servers
- + */
- +
- + struct active_size_t {
- + char *server;
- + char *attribute;
- X };
- X
- X /*
- Binary files ../1.14/tin.nrf and ./tin.nrf differ
- Only in .: tin.tar
- Files ../1.14/wildmat.3 and ./wildmat.3 are identical
- Files ../1.14/wildmat.c and ./wildmat.c are identical
- Files ../1.14/xindex.c and ./xindex.c are identical
- Files ../1.14/xuser.c and ./xuser.c are identical
- SHAR_EOF
- echo 'File tin-1.15.patch is complete' &&
- chmod 0644 tin-1.15.patch ||
- echo 'restore of tin-1.15.patch failed'
- Wc_c="`wc -c < 'tin-1.15.patch'`"
- test 386903 -eq "$Wc_c" ||
- echo 'tin-1.15.patch: original size 386903, current size' "$Wc_c"
- rm -f _shar_wnt_.tmp
- fi
- rm -f _shar_seq_.tmp
- echo You have unpacked the last part
- exit 0
-
- --
- NAME Iain Lea
- EMAIL iain%anl433.uucp@Germany.EU.net
- SNAIL Siemens AG, ANL A433SZ, Gruendlacher Str. 248, 8510 Fuerth, Germany.
- PHONE +49-911-3089-407 (work) +49-911-331963 (home) +49-911-3089-290 (FAX)
- exit 0 # Just in case...
-