From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: niels@s3.kth.se (=?iso-8859-1?q?Niels_M=F6ller?=) Newsgroups: gmane.emacs.bugs Subject: Handling of default value of message-dont-reply-to-names should respect the user-mail-address setting Date: 06 Jul 2006 12:43:46 +0200 Message-ID: <877j2rvwrh.fsf@maskros.s3.kth.se> Reply-To: nisse@lysator.liu.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152275178 4578 80.91.229.2 (7 Jul 2006 12:26:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jul 2006 12:26:18 +0000 (UTC) Cc: nisse@lysator.liu.se Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 07 14:26:14 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FypPN-00015x-1g for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jul 2006 14:26:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FypPM-0006lk-Dy for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Jul 2006 08:26:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyRm4-0002m2-N1 for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2006 07:12:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyRm2-0002jh-Fd for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2006 07:11:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyRm2-0002jd-AR for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2006 07:11:58 -0400 Original-Received: from [130.237.43.158] (helo=maskros.s3.kth.se) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FyRmC-0006E1-W7 for bug-gnu-emacs@gnu.org; Thu, 06 Jul 2006 07:12:09 -0400 Original-Received: by maskros.s3.kth.se (Postfix, from userid 1000) id D64BE49F75; Thu, 6 Jul 2006 12:43:46 +0200 (CEST) Original-To: bug-gnu-emacs@gnu.org Original-Lines: 67 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-Mailman-Approved-At: Fri, 07 Jul 2006 08:26:06 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15199 Archived-At: I have the login name "nisse", user-mail-address set to "niels@s3.kth.se", and message-dont-reply-to-names set to the default value, nil. According to the documentation string for message-dont-reply-to-names, "A value of nil means exclude your own name only.". This doesn't work for me, when I use gnus-summary-followup in a Gnus *Summary*-buffer, my own email address is added to the Cc:-header of the reply. A little digging reveals that the function message-get-reply-headers in message.el calls rmail-dont-reply-to to do the work, (let ((rmail-dont-reply-to-names message-dont-reply-to-names)) (insert (prog1 (rmail-dont-reply-to (buffer-string)) (erase-buffer)))) Next, rmail-dont-reply-to, in mail-utils.el, handles the default behavior (rmail-dont-reply-to-names nil) as follows: (if (null rmail-dont-reply-to-names) (setq rmail-dont-reply-to-names (concat (if rmail-default-dont-reply-to-names (concat rmail-default-dont-reply-to-names "\\|") "") (concat (regexp-quote (user-login-name)) "\\>")))) That is, it uses (user-login-name), which returns "nisse". I see two problems with this: 1. It means that if mail address and local user name doesn't match (that's the problem in my case), setting user-mail-address is not sufficient configuration to make emacs to do the right thing. I need to set message-dont-reply-to-names too. 2. As far as I can see, one can get false positives. Say nisse@foo.org sends email to a mailing list that nisse@bar.org is subscribed to. nisse@bar.org wants to make a wide reply both to the sender and to the list. Then the sender's address will be removed, just because the two different persons use mail addresses based on the same local login name, each within his or her own domain. I think the sanest way to remove addresses would be to match on the email addresses only, including the host part, but excluding any human name that precede , and also excluding any RFC 2822 comments. Regards, /Niels Version information (from M-x report-emacs-bug): In GNU Emacs 21.4.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2005-03-17 on trouble, modified by Debian configured using `configure '--build=i386-linux' '--host=i386-linux' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--with-x=yes' '--with-x-toolkit=athena' 'CFLAGS=-DDEBIAN -g -O2' 'build_alias=i386-linux' 'host_alias=i386-linux'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t