info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Found error - Re: not able to send mail with message.el from release of


From: dont-send-any-spams-to-me
Subject: Found error - Re: not able to send mail with message.el from release of emacs v.22
Date: Wed, 01 Aug 2007 17:05:20 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Found the cause.  Its an old fix of message.el from 2003, nevertheless
has escaped me until now for various reasons.

When running message.el at work 'user-mail-address has only included
local machine-names, ie. "user@bruno" or "user@leon" etc., wo. any
period and a domainname.

Down in message.el's function 'message-user-mail-address theres a
"new" check whether theres a period in the user's mail-address (after
the @-sign), returning nil in my case.

The change in lisp/gnus/message.el is from 2003, but this doesnt seem
to have been included in released emacser before v.22 from this june.

I guess there are reasons for checking for a valid emailname
(w. domain etc.), so now i have used the EMAIL environment-variable to
set up a mail-address w. domainname included one.  This seems to work.

;;; message.el, L5016:

(defun message-user-mail-address ()
  "Return the pertinent part of `user-mail-address'."
  (when (and user-mail-address
             (string-match "@.*\\." user-mail-address))
    (if (string-match " " user-mail-address)
        (nth 1 (mail-extract-address-components user-mail-address))
      user-mail-address)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]