aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-07-01 21:42:23 +0000
committerRichard M. Stallman1994-07-01 21:42:23 +0000
commit0b43140039de6594305469f9e90e822fee122dbf (patch)
tree2b632d05520be51108fbad05d138342cb559abc4
parent3c24374d1455125915edae88c6408ecdb4bbbf48 (diff)
downloademacs-0b43140039de6594305469f9e90e822fee122dbf.tar.gz
emacs-0b43140039de6594305469f9e90e822fee122dbf.zip
(gnus-inews-domain-name): Once again test gnus-your-domain.
-rw-r--r--lisp/gnuspost.el45
1 files changed, 24 insertions, 21 deletions
diff --git a/lisp/gnuspost.el b/lisp/gnuspost.el
index 48b7cc9084e..ea2a0c97ee6 100644
--- a/lisp/gnuspost.el
+++ b/lisp/gnuspost.el
@@ -663,27 +663,30 @@ If optional argument GENERICFROM is a string, use it as the domain
663name; if it is non-nil, strip of local host name from the domain name. 663name; if it is non-nil, strip of local host name from the domain name.
664If the function `system-name' returns full internet name and the 664If the function `system-name' returns full internet name and the
665domain is undefined, the domain name is got from it." 665domain is undefined, the domain name is got from it."
666 (if (or genericfrom gnus-local-domain (getenv "DOMAINNAME")) 666 (and (null gnus-local-domain)
667 (let ((domain (or (if (stringp genericfrom) genericfrom) 667 (boundp 'gnus-your-domain)
668 (getenv "DOMAINNAME") 668 (setq gnus-local-domain gnus-your-domain))
669 gnus-local-domain 669 (if (or genericfrom gnus-local-domain (getenv "DOMAINNAME"))
670 ;; Function `system-name' may return full internet name. 670 (let ((domain (or (if (stringp genericfrom) genericfrom)
671 ;; Suggested by Mike DeCorte <mrd@sun.soe.clarkson.edu>. 671 (getenv "DOMAINNAME")
672 (if (string-match "\\." (system-name)) 672 gnus-local-domain
673 (substring (system-name) (match-end 0))) 673 ;; Function `system-name' may return full internet name.
674 (read-string "Domain name (no host): "))) 674 ;; Suggested by Mike DeCorte <mrd@sun.soe.clarkson.edu>.
675 (host (or (if (string-match "\\." (system-name)) 675 (if (string-match "\\." (system-name))
676 (substring (system-name) 0 (match-beginning 0))) 676 (substring (system-name) (match-end 0)))
677 (system-name)))) 677 (read-string "Domain name (no host): ")))
678 (if (string-equal "." (substring domain 0 1)) 678 (host (or (if (string-match "\\." (system-name))
679 (setq domain (substring domain 1))) 679 (substring (system-name) 0 (match-beginning 0)))
680 ;; Support GENERICFROM as same as standard Bnews system. 680 (system-name))))
681 ;; Suggested by ohm@kaba.junet and vixie@decwrl.dec.com. 681 (if (string-equal "." (substring domain 0 1))
682 (cond ((null genericfrom) 682 (setq domain (substring domain 1)))
683 (concat host "." domain)) 683 ;; Support GENERICFROM as same as standard Bnews system.
684 ;;((stringp genericfrom) genericfrom) 684 ;; Suggested by ohm@kaba.junet and vixie@decwrl.dec.com.
685 (t domain))) 685 (cond ((null genericfrom)
686 (substring user-mail-address (1+ (string-match "@" user-mail-address))))) 686 (concat host "." domain))
687 ;;((stringp genericfrom) genericfrom)
688 (t domain)))
689 (substring user-mail-address (1+ (string-match "@" user-mail-address)))))
687 690
688(defun gnus-inews-message-id () 691(defun gnus-inews-message-id ()
689 "Generate unique Message-ID for user." 692 "Generate unique Message-ID for user."