* gnus-msg.el (gnus-discouraged-post-methods): New variable.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 16 Feb 2002 23:15:14 +0000 (23:15 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 16 Feb 2002 23:15:14 +0000 (23:15 +0000)
(gnus-post-method): Use it.

lisp/ChangeLog
lisp/gnus-msg.el

index 407d151..2d9f7d4 100644 (file)
@@ -1,7 +1,12 @@
 2002-02-16  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
+       * gnus-msg.el (gnus-discouraged-post-methods): New variable.
+       (gnus-post-method): Use it.
+
        * gnus-soup.el (gnus-soup-send-packet): Via ... using ...
        * message.el (message-send-news): Ditto.
+       Suggested by Lloyd Zusman <ljz@asfast.com> and IPmonger
+       <ipmonger@delamancha.org>
 
        * gnus.el (gnus-select-method): Fix doc.
        (gnus-server-string): Use 'using nntp'.
index 0486e71..a766aa7 100644 (file)
@@ -211,6 +211,14 @@ use this option with care."
   :group 'gnus-message
   :type '(repeat (symbol :tab "Variable")))
 
+(defcustom gnus-discouraged-post-methods 
+  '(nndraft nnml nnimap nnmaildir)
+  "A list of back ends that are not used in \"real\" newsgroups.
+This variable is used only when `gnus-post-method' is `current'."
+  :version "21.3"
+  :group 'gnus-group-foreign
+  :type '(repeat (symbol :tab "Back end")))
+
 ;;; Internal variables.
 
 (defvar gnus-inhibit-posting-styles nil
@@ -892,7 +900,7 @@ If SILENT, don't prompt the user."
          method-alist))))
      ;; Override normal method.
      ((and (eq gnus-post-method 'current)
-          (not (eq (car group-method) 'nndraft))
+          (not (memq (car group-method) gnus-discouraged-post-methods))
           (gnus-get-function group-method 'request-post t))
       (assert (not arg))
       group-method)