From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/5810 Path: main.gmane.org!not-for-mail From: Hallvard B Furuseth Newsgroups: gmane.emacs.gnus.general Subject: Re: September Gnus 0.60 is released Date: Fri, 29 Mar 1996 17:39:27 +0100 Message-ID: <199603291639.RAA27896@durin.uio.no> References: NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035146359 1470 80.91.224.250 (20 Oct 2002 20:39:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:39:19 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id JAA06785 for ; Fri, 29 Mar 1996 09:09:54 -0800 Original-Received: from pat.uio.no (6089@pat.uio.no [129.240.2.50]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id ; Fri, 29 Mar 1996 17:39:44 +0100 Original-Received: from ulrik.uio.no by pat.uio.no with local-SMTP (PP) id <18652-0@pat.uio.no>; Fri, 29 Mar 1996 17:39:28 +0100 Original-Received: by durin.uio.no ; Fri, 29 Mar 1996 17:39:27 +0100 Original-To: Lars Magne Ingebrigtsen In-reply-to: Xref: main.gmane.org gmane.emacs.gnus.general:5810 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:5810 > Hallvard B Furuseth writes: > >> I'd like a user-mail-address-hook which programs (optionally) should run >> before they use user-mail-address. This is because the "official" mail >> address (as opposed to some "working" mail address) can be expensive to >> compute, so it should only be computed when it's needed, not in >> default.el. > > I thought most sites just did something like: > > (setq user-mail-address (concat (user-login-name) "@our.nice.site")) That doesn't work here at UiO outside ifi.uio. Well, this does work: (concat (user-login-name) "@any.ugly.uio-machine.name") but it does not yield the user's official address. The reason is that all of UiO (except ifi.uio) has a common user database, but UiO has several sub-domains (for the various departments). The *only* way to learn which sub-domain a user belongs to, is to ask the mail system. Example: my-user@my-host-name: hbf@durin.uio.no my-email-address: h.b.furuseth@usit.uio.no In outgoing mail, user@machine addresses are converted to the user's official address, so that recipients will never see anything else than the official address --- except in news messages. Ouch. > What did you have in mind that a typical `user-mail-address-hook' > would do? The one at UiO would set user-mail-address to the output of the shell command `pk address <>` Regards, Hallvard