Gnus development mailing list
 help / color / mirror / Atom feed
From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Re: Message.el questions
Date: 11 Apr 1996 22:14:24 +0200	[thread overview]
Message-ID: <rjpw9ev7q7.fsf@babbage.dina.kvl.dk> (raw)
In-Reply-To: labrown@dg-rtp.dg.com's message of Thu, 11 Apr 1996 15:29:13 -0400

>>>>> "LAB" == Lance A Brown <labrown@dg-rtp.dg.com> writes:

LAB> 1.  I want to specify my real name instead of having message.el pull
LAB>     it out of the system.

(setq user-full-name "God Emperor Lance")

LAB> 2.  message-make-fqdm looks like:

LAB>     ...
LAB>      ;; We try `user-mail-address' as a backup.
LAB>      ((string-match "@\\([^\\s-]+\\)\\(\\'\\|\\W\\)" user-mail-address)
LAB>       (match-string 1 user-mail-address))
LAB>     ...

LAB> My canonical email address is labrown@dg-rtp.dg.com, resulting in
LAB> message-make-fqdm returning 'dg' as my fqdm. :-(  do we really need to
LAB> not include dashes in the matched portion of the domain name?  I've
LAB> removed it.

This replacement code should be more reliable:

(let ((real (nth 1 (mail-extract-address-components user-mail-address))))
  (and (string-match "@\\(.*\\)\\'" real)
       (match-string 1 real)))


  reply	other threads:[~1996-04-11 20:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-11 19:29 Lance A. Brown
1996-04-11 20:14 ` Per Abrahamsen [this message]
1996-04-12  3:16   ` Lars Magne Ingebrigtsen

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

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

  git send-email \
    --in-reply-to=rjpw9ev7q7.fsf@babbage.dina.kvl.dk \
    --to=abraham@dina.kvl.dk \
    /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 NNTP newsgroup(s).