unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: OS X (or other OS's): how to get a fully-qualified domain name?
Date: Mon, 26 Jul 2004 17:11:22 -0600	[thread overview]
Message-ID: <41058F9A.90905@yahoo.com> (raw)
In-Reply-To: mailman.1622.1090879447.1960.help-gnu-emacs@gnu.org

John Owens wrote:
 > 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.

C-h v user-mail-address
C-h v mail-host-address

To get the domain name in Emacs on Unix, try this:

(shell-command-to-string "awk '/^domain/ {printf $2}' /etc/resolv.conf")

-- 
Kevin Rodgers

       reply	other threads:[~2004-07-26 23:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1622.1090879447.1960.help-gnu-emacs@gnu.org>
2004-07-26 23:11 ` Kevin Rodgers [this message]
2004-07-26 23:59   ` OS X (or other OS's): how to get a fully-qualified domain name? John Owens
     [not found]   ` <mailman.1631.1090886583.1960.help-gnu-emacs@gnu.org>
2004-07-27  1:22     ` Barry Margolin
2004-07-27  1:37       ` John Owens
     [not found]       ` <mailman.1641.1090892436.1960.help-gnu-emacs@gnu.org>
2004-07-27 15:16         ` Stefan Monnier
2004-07-27 17:03           ` John Owens
     [not found]           ` <mailman.1759.1090947989.1960.help-gnu-emacs@gnu.org>
2004-07-27 18:06             ` Stefan Monnier
2004-07-27 18:29               ` John Owens
     [not found]               ` <mailman.1770.1090954587.1960.help-gnu-emacs@gnu.org>
2004-07-27 19:46                 ` Stefan Monnier
2004-07-27 20:30                   ` John Owens
2004-07-27 19:48                 ` Kevin Rodgers
2004-07-27 20:49                   ` John Owens
2004-07-26 21:59 John Owens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41058F9A.90905@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).