From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Owens Newsgroups: gmane.emacs.help Subject: OS X (or other OS's): how to get a fully-qualified domain name? Date: Mon, 26 Jul 2004 21:59:46 +0000 (UTC) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1090879272 29901 80.91.224.253 (26 Jul 2004 22:01:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jul 2004 22:01:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 27 00:01:04 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BpDWq-0004pT-00 for ; Tue, 27 Jul 2004 00:01:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpDZt-0002Jo-Fd for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Jul 2004 18:04:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BpDZm-0002Jj-LB for help-gnu-emacs@gnu.org; Mon, 26 Jul 2004 18:04:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BpDZl-0002JX-40 for help-gnu-emacs@gnu.org; Mon, 26 Jul 2004 18:04:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BpDZl-0002JU-0d for help-gnu-emacs@gnu.org; Mon, 26 Jul 2004 18:04:05 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BpDWV-00007R-5A for help-gnu-emacs@gnu.org; Mon, 26 Jul 2004 18:00:43 -0400 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BpDWQ-0007aE-00 for ; Tue, 27 Jul 2004 00:00:41 +0200 Original-Received: from adsl-68-122-68-133.dsl.pltn13.pacbell.net ([68.122.68.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 00:00:38 +0200 Original-Received: from john_owens by adsl-68-122-68-133.dsl.pltn13.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 27 Jul 2004 00:00:38 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 68.122.68.133 (Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/125.2 (KHTML, like Gecko) Safari/125.8) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19808 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19808 Greetings, I'm using emacs 21.3.50 (built from CVS) on OS X 10.3. I would like it to use a fully-qualified domain name when sending mail. Instead, it uses system-name, which appears to just use my "computer name" (which is no way fully-qualified). What would be ideal is if I could use the system-name function to dynamically return where I am (since if I run emacs at home, then go to work, plug it in, and use emacs there, I'd like emacs to use the work machine's domain name, not the one from home). I figure that OS X knows its domain name (I can see it in the logs if I ssh somewhere, for instance), but I don't know how to get that information nor do I know how to make emacs use it. Suggestions? JDO