home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / trn_197b.zip / HINTS.TRN < prev    next >
Text File  |  1994-03-27  |  7KB  |  172 lines

  1. You can specify trn environment variables in an initialization file with all
  2. the options.  See the first hint for details on that.  Certain environment
  3. variables, like RNINIT, must be set in your shell (how else does trn know
  4. to look there for the rest?).  Others, like REPLYTO may be useful in other
  5. programs, so you could consider putting that in your shell startup file too.
  6. But most of them are specific, like MAILHEADER, so you might as well set them
  7. in the init file with the -E option.  That's why most of them look like
  8. -EMAILHEADER=xx rather than MAILHEADER=xx -- to remind you.
  9.  
  10. Helpful hints:
  11.   o You can make a file that contains all the flags and initialization that
  12.     trn will use at startup.  When you're done, point an environment variable
  13.     TRNINIT to the file.  A good choice is "TRNINIT=~/.trninit".  You can put
  14.     multiple lines in this init file and/or separate options by spaces.
  15.  
  16.   o Two new and useful flags are the -p and -G flags.  -p means automatically
  17.     select any thread that you have posted a message to.  This makes it very
  18.     easy to track replies to your insightful comments :-) (to automatically
  19.     select other threads, try the 'T' command).  -G tells the 'g' command
  20.     to use a loose match algorithm on groups it can't find.  So if you type
  21.     "g news.softwre.raeders.genrl", it will assume that you meant to type
  22.     news.software.readers and take you there.  It is usually easier to type
  23.     "/reader" than using a 'g' command, but use -G too.
  24.  
  25.   o The 'X' command in the selector (kinda like catchup/yes) can be made the
  26.     default action on the last page of selections by using the command-line
  27.     option:  -XX.  This lets you browse all the pages, making selections as
  28.     you go, and then mark everything that was not selected as read when you
  29.     press space at the last page.
  30.  
  31.   o If you like to select a little, read a little, and then select a little
  32.     more, try using the command-line option:  -XDD.  This makes the 'D'
  33.     command the default on all pages of the selector.  Thus you can select
  34.     the things you want to read on the current page, press space, and you
  35.     will read the selected articles immediately (if there were any).  All
  36.     other articles on the current page will be marked as read.
  37.  
  38.   o To use mush to send all R)eplies:
  39.     -EMAILPOSTER="mush -h %h"
  40.  
  41.   o To use elm to send all R)eplies:
  42.     -EMAILHEADER="\\000"
  43.     -EMAILPOSTER="elm -i %h -s \"Re: %S\" %t"
  44.  
  45.   o To tailor the time field:
  46.     A good example is -ELOCALTIMEFMT="%A, %B %e %Y, %r %Z" which becomes:
  47.     Date: Saturday, June 12 1993, 08:15:32 PM PDT.  (The default is
  48.     "%a %b %e %X %Z %Y", which is like the date(1) command).  See the
  49.     strftime(3C) man page for more details on other % characters.
  50.  
  51.   o To tailor the "In article <blahblahblah>, joe@user (Joe User)" line:
  52.     person's name only: %)f
  53.     person's address only: %>f
  54.     For example: -EATTRIBUTION='According to %)f <%>f>:'
  55.  
  56.   o A better kill file scheme than the default (which creates obtuse
  57.     directories all over your ~/News directory) is to use the following:
  58.     -EKILLGLOBAL="%p/Kill/Global"
  59.     -EKILLLOCAL="%p/Kill/%C"
  60.     Where %p is your news directory, usually ~/News, and %C is the full name
  61.     of the group, like sci.bio.  This means the kill file for sci.bio is in
  62.     ~/News/Kill/sci.bio instead of ~/News/sci/bio/KILL.  Think about this
  63.     next time you subscribe to alt.swedish.chef.bork.bork.bork :-)
  64.  
  65.     Note that you need a file system that allows long file names to make
  66.     this work.
  67.  
  68.   o If you're tired of endless subscription notices to newsgroups you could
  69.     care less about, look at the AUTOUNSUBSCRIBE variable.  There's a
  70.     companion AUTOSUBSCRIBE function too.  For example, to automatically
  71.     unsubscribe all NEW alt groups, use ^alt.*.  More dramatic, to
  72.     unsubscribe to everything BUT certain groups, use "*,!^local.*,!^comp.*",
  73.     for example.  If you're REALLY tired of them, use -q to tell trn to not
  74.     even check for new groups at all.
  75.  
  76.   o If you want replies to your postings to go to a machine other than the
  77.     machine you're posting from, set the REPLYTO environment variable.  For
  78.     example, you might set this if you were trn's author:
  79.     -EREPLYTO="davison@borland.com (Wayne Davison)"
  80.  
  81.   o You might like to redefine the 'u' keys in the following way:  'u' visits
  82.     the "Set unread?" prompt (except in the thread selector), 'U' goes
  83.     directly to the already-read article selector, and Ctrl-U unsubscribes
  84.     from the group (even while in the thread selector).  Put the following
  85.     3 macros in your .rnmac file to accomplish this (or change TRNMACROS to
  86.     .trnmac and put them there):
  87.  
  88.     u    %(%m=[aefnp]?U:u)
  89.     U    %(%m=[aefnp]?U+:U)
  90.     ^U    %(%m=t?+u:u)
  91.  
  92.   o If you like to be able to move forward/backward by article number more
  93.     often than you need to search by subject, redefine ^N and ^P to be _N
  94.     and _P by putting these lines into your macro file:
  95.  
  96.     ^P    %(%m=[aep]?_P:^P)
  97.     ^N    %(%m=[aep]?_N:^N)
  98.  
  99.   o If you like the way that 'q' worked in the thread selector in trn 1.x,
  100.     put the following macro in your macro file:
  101.  
  102.     q    %(%m=t?+:q)
  103.  
  104.   o If you would like the 'f' command to always answer yes to the "Are you
  105.     starting an unreleated topic?" question, put this line into your macro
  106.     file:
  107.  
  108.     f    %(%m=[ap]?fy^m:f)
  109.  
  110.   o If you want to be able to save your shar headers in a file as they are
  111.     extracted and you have access to "unshar" (a program that can extract
  112.     shar files while saving the headers in UNSHAR.HDR), twiddle the external
  113.     extract command to send the entire article:
  114.  
  115.     -EEXSAVER="%e <%A"
  116.  
  117.     and then point the UNSHAR variable at unshar instead of /bin/sh:
  118.  
  119.     -EUNSHAR="unshar -s"
  120.  
  121.     Note that this assumes that any other commands you execute with
  122.     "e dir|command" can also handle the entire article as input
  123.     (uuencoded and shipped files are not affected).
  124.  
  125.   o The following lines represent trn's default headers for posting an
  126.     article.  If you want to customize your header copy this to your
  127.     .trninit file and modify it (and _don't_ use Pnews directly to post,
  128.     use trn -- the ".f" command from newsgroup prompt works well for this).
  129.     Note: remove the initial tab from these lines:
  130.  
  131.     -ENEWSHEADER="%(%[followup-to]=^$?:X-ORIGINAL-NEWSGROUPS: %n
  132.     )Newsgroups: %(%F=^$?%C:%F)
  133.     Subject: %(%S=^$?%\"
  134.  
  135.     Subject: \":Re: %S)
  136.     Summary: 
  137.     Expires: 
  138.     %(%R=^$?:References: %R
  139.     )Sender: 
  140.     Followup-To: 
  141.     %(%{REPLYTO}=^$?:Reply-To: %{REPLYTO}
  142.     )Distribution: %(%i=^$?%\"Distribution: \":%D)
  143.     Organization: %o
  144.     Keywords: %[keywords]
  145.     Cc: %(%F=poster?%t:%(%F!=@?:%F))
  146.  
  147.     "
  148.  
  149. If you're curious, trn's author has the following .trninit file:
  150. ----------------------------------------------------------------------
  151. -XX -B -N -e -f +m -x11ms "-F> " -p -G -u
  152. -hunrecognized
  153. -ELOCALTIMEFMT="%A, %B %e %Y, %r %Z"
  154. -ESELECTCHARS="abdefgijlmorstuvwxyz1234567890BCFGHIKVW"
  155. -EKILLLOCAL="%p/Kill/%C"
  156. -EKILLGLOBAL="%p/Kill/Global"
  157. -EMAILPOSTER="mush -h %h"
  158. -EATTRIBUTION="According to %)f <%>f>:"
  159. ----------------------------------------------------------------------
  160.  
  161. and the following .trnmac file:
  162. ----------------------------------------------------------------------
  163. u    %(%m=[aenp]?U:u)
  164. U    %(%m=[aenp]?U+:U)
  165. ^U    %(%m=t?+u:u)
  166. o    %(%m=[nf]?O:o)
  167. O    %(%m=[nf]?o:O)
  168. ~T    s ~/Mail/trn
  169. ~M    | /bin/mail davison
  170. ^[^[    ^[
  171. ----------------------------------------------------------------------
  172.