[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 2/4] 00debian.el: set gnus-nntpserver-file and mail-host-address



As of 3.0.0, these are no longer handled by emacsen-common.
---
 debian/00debian.el | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/debian/00debian.el b/debian/00debian.el
index 681afea..87508d5 100644
--- a/debian/00debian.el
+++ b/debian/00debian.el
@@ -6,6 +6,17 @@
   emacs-program-version
   "XEmacs' Full Version as string")
 
+(setq gnus-nntpserver-file "/etc/news/server")
+
+(setq mail-host-address (let ((name (expand-file-name "/etc/mailname")))
+                          (if (not (file-readable-p name))
+                              nil
+                            (with-temp-buffer
+                              (insert-file-contents-literally name)
+                              (while (search-forward "\n" nil t)
+                                (replace-match "" nil t))
+                              (buffer-string)))))
+
 (loop for entry in load-history
   if (string-match "^/home/.*xemacs21/xemacs\\(21\\)?-\\([.0-9]+/\\)"
                    (car entry))
-- 
2.15.1


Reply to: