From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: RMAIL settings [was: Re: w32 does not have emacsclient/server] Date: Sun, 7 Aug 2005 01:38:07 +0000 (UTC) Message-ID: References: <42F4FA90.9080600@student.lu.se> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1123380015 17041 80.91.229.2 (7 Aug 2005 02:00:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2005 02:00:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 07 04:00:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E1aRB-0003pV-SX for ged-emacs-devel@m.gmane.org; Sun, 07 Aug 2005 03:58:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1aU7-0003yG-N8 for ged-emacs-devel@m.gmane.org; Sat, 06 Aug 2005 22:01:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E1aTz-0003wq-Eo for emacs-devel@gnu.org; Sat, 06 Aug 2005 22:01:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E1aRK-0003VK-N1 for emacs-devel@gnu.org; Sat, 06 Aug 2005 21:59:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E1aRG-0003Ix-1c for emacs-devel@gnu.org; Sat, 06 Aug 2005 21:58:58 -0400 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E1aKZ-0004Ml-D1 for emacs-devel@gnu.org; Sat, 06 Aug 2005 21:52:03 -0400 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Sun, 7 Aug 2005 01:38:07 +0000 (UTC) Original-To: Lennart Borgman In-reply-to: <42F4FA90.9080600@student.lu.se> (message from Lennart Borgman on Sat, 06 Aug 2005 19:59:44 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:41643 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:41643 > ;; Set this value so that the From field is correct > (setq mail-host-address "bob@rattlesnake.com") Thanks for the code. Could you give me a hint why the first should be set? Thank you for causing me to look into `mail-host-address' more thoroughly. Actually, I am not sure why that expression has the user name in it. It has been in my .emacs file for a long time. It is a mistake. The reason I set the value was that From fields have been wrong and that string, which is the email address, has not caused me trouble. But the documentation points out that it is only the name of the machine. Looking at the code in emacs/lisp/startup.el, the reason it has not caused me trouble is that I also set `user-mail-address'. I am going to change `mail-host-address' to get rid of the user name. Indeed, if you let `user-mail-address' define itself using `mail-host-address', that variable had better be only the part of the address after the `@'. Otherwise, you will get a second user name and `@' in the `user-mail-address'. The code for `user-mail-address' is to (concat (user-login-name) "@" (or mail-host-address (system-name))) or else set the `user-mail-address' variable yourself. On my system, `(system-name)' regularly gives a name I do not want; and when I am running as `root' or some other user, (user-login-name) also is undesired. So I cannot let `user-mail-address' be set automatically. As far as I can see, `mail-host-address' is irrelevant when `user-mail-address' is set. Perhaps, I should just avoid setting it at all. Then the variables that that I think are salient to a .emacs file and that should be the same regardless of operating system would be: user-mail-address mail-default-reply-to rmail-delete-after-output rmail-confirm-expunge rmail-display-summary rmail-pop-password-required rmail-pop-password rmail-preserve-inbox -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc