home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / gnus / 1023 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.9 KB  |  50 lines

  1. Newsgroups: gnu.emacs.gnus
  2. Path: sparky!uunet!pipex!demon!edscom.demon.co.uk!kevin
  3. From: kevin@edscom.demon.co.uk (Kevin Broadey)
  4. Subject: Getting 2 ~/.signatures - problem with my fix
  5. Message-ID: <KEVIN.92Aug20103257@buffalobill.edscom.demon.co.uk>
  6. Sender: kevin@edscom.demon.co.uk (Kevin Broadey)
  7. Organization: EDS-Scicon, Milton Keynes, UK
  8. Date: Thu, 20 Aug 1992 10:32:57 GMT
  9. Lines: 39
  10.  
  11. A while ago I posted a question about how to stop articles posted using GNUS
  12. from getting 2 copies of ~/.signature appended.  After a bit of investigation
  13. into what "inews" does, I posted a suggestion which bypassed it, calling
  14. "relaynews" directly.  i.e.
  15.  
  16.     (setq nnspool-inews-program (substitute-in-file-name "$NEWSBIN/relaynews"))
  17.     (setq nnspool-inews-switches '("-r"))
  18.  
  19. This works fine until you try to post to a moderated newsgroup, because it is
  20. "inews" that spots this and mails the article to the newsgroup moderator.
  21.  
  22. To get around the problem I've had to resort to hacking "inews" itself.  I
  23. simply added a new flag "-nosig", and checked for it before appending the
  24. ~/.signature file.  I put it in /usr/local/gnu/emacs/etc to keep it out of the
  25. way, although it could go in the regular place because it's
  26. backward-compatible.
  27.  
  28. My .emacs file now has:-
  29.  
  30.     (setq nnspool-inews-program (concat exec-directory "inews"))
  31.     (setq nnspool-inews-switches '("-h" "-nosig"))
  32.  
  33.  
  34. Sorry I couldn't come up with a more elegant solution.
  35.  
  36.  
  37. BTW Someone suggested
  38.  
  39.     (setq gnus-signature-file "~/.signature-GNUS")
  40.  
  41. and using ~/.signature-GNUS-DISTRIBUTION for distribution-specific sig files,
  42. scrapping the ~/.signature altogether.  The trouble with that is that I do
  43. occasionally use programs outside emacs, and I'd like them all to work properly
  44. too.
  45. --
  46. Kevin Broadey <kbroadey@edscom.demon.co.uk>
  47. EDS-Scicon, Wavendon Tower, Wavendon, Milton Keynes, MK17 8LX, England.
  48. Phone: +44 908 284198 (direct) or +44 908 585858 ext 4198
  49. These opinions are mine: others available on request.
  50.