home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / mail / misc / 3615 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.mail.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
  3. From: dattier@ddsw1.mcs.com (DWT)
  4. Subject: Re: Appending .sig to outgoing email automatically
  5. Message-ID: <BxD2EA.2zs@ddsw1.mcs.com>
  6. Date: Sat, 7 Nov 1992 19:34:57 GMT
  7. References: <1992Nov6.001501.21652@mnemosyne.cs.du.edu>
  8. Organization: Contributor Account at ddsw1, Chicago, Illinois  60657
  9. Lines: 27
  10.  
  11. jdhossei@nyx.cs.du.edu (Joshua Hosseinoff) wrote in
  12. <1992Nov6.001501.21652@mnemosyne.cs.du.edu>:
  13.  
  14. | This may sound like a naive question, but how can one get the
  15. | mailx program in the Korn Shell to automatically append
  16. | a .sig file to every outgoing message?  I know
  17. | about using ~(tilde)r .sig to include the file manually, but
  18. | is there any way that this can be made automatic when i press
  19. | ^D or . on a blank line?  Do i have to add something to
  20. | my .mailrc file?  Any help would be appreciated.
  21.  
  22. It can be a little easier: define the variable $sign to contain the text of
  23. your signature [for example, sign="`cat /path/to/sigfile`" ; export sign
  24. in your .profile or set sign = "{entire text of your signature}" in your
  25. .mailrc].  Then ~a will append it to your outgoing letter.  It's still not
  26. automatic, but it's an improvement over typing out the name of the signature
  27. file, especially when it's in a different directory from the one in which you
  28. started mailx.
  29.  
  30. Note that the sign variable must contain the text itself, not the name of a
  31. file containing the text.  You can have a second signature available by
  32. defining the variable Sign; you append $sign with ~a and $Sign with ~A.
  33.  
  34. It's in the manual pages.
  35.  
  36. David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  37. dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  38.