GNU bug report logs -
#8593
mail/mail-utils.el (mail-strip-quoted-names): check all whitespace address
Previous Next
Reported by: Jari Aalto <jari.aalto <at> cante.net>
Date: Sat, 30 Apr 2011 15:06:02 UTC
Severity: wishlist
Tags: patch, wontfix
Found in version 23.2+1-5.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8593 in the body.
You can then email your comments to 8593 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8593
; Package
emacs
.
(Sat, 30 Apr 2011 15:06:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jari Aalto <jari.aalto <at> cante.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 30 Apr 2011 15:06:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Package: emacs
Version: 23.2+1-5.1
Severity: wishlist
Tags: patch
The following is optimization for the mail-strip-quoted-names: it returns
immediately if there is nothing to do. The patch is against Git:
9344a2b 2010-12-17 Merge branch 'master' of git://git.sv.gnu.org/emacs
2010-12-17 Jari Aalto <jari.aalto <at> cante.net>
* mail/mail-utils.el (mail-strip-quoted-names): If address
is all whitespace, return immediately with nil.
(rmail-dont-reply-to): Add check that `naked-address' is a string.
Needed due to change in `mail-strip-quoted-names'.
-- System Information
Debian Release: squeeze/sid
APT Prefers testing
APT policy: (990, testing) (500, unstable) (1, experimental)
Architecture: amd64
Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux
Locale: LANG=en_DK.UTF-8
-- Versions of packages `emacs depends on'.
Depends:
emacs23 23.2+1-5.1 GNU Emacs is the extensible self-documenting
emacs23-lucid 23.2+1-5.1 GNU Emacs is the extensible self-documenting
emacs23-nox 23.2+1-5.1 GNU Emacs is the extensible self-documenting
[0001-mail-mail-utils.el-mail-strip-quoted-names-Return-on.patch (text/x-diff, inline)]
From 3d3737886b7f39556cddf0804521a1c44a6f81e3 Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aalto <at> cante.net>
Date: Fri, 17 Dec 2010 20:12:54 +0200
Subject: [PATCH] mail/mail-utils.el (mail-strip-quoted-names): Return on all whitespace
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
In ` (mail-strip-quoted-names)' if address is all whitespace, return
immediately with nil. In `rmail-dont-reply-to' Add check that
`naked-address' is a string. Needed due to change in
`mail-strip-quoted-names'.
Signed-off-by: Jari Aalto <jari.aalto <at> cante.net>
---
lisp/mail/mail-utils.el | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/mail/mail-utils.el b/lisp/mail/mail-utils.el
index a8d8451..7e87276 100644
--- a/lisp/mail/mail-utils.el
+++ b/lisp/mail/mail-utils.el
@@ -175,7 +175,10 @@ as Rmail does."
"Delete comments and quoted strings in an address list ADDRESS.
Also delete leading/trailing whitespace and replace FOO <BAR> with just BAR.
Return a modified address list."
- (if (null address)
+ (if (or (null address)
+ (and (stringp address)
+ ;; Effectively empty
+ (string-match "^[[:space:]]*\\'" address)))
nil
(if mail-use-rfc822
(progn (require 'rfc822)
@@ -284,7 +287,8 @@ the comma-separated list. The pruned list is returned."
(setq cur-pos start-pos)))
(let* ((address (substring destinations start-pos cur-pos))
(naked-address (mail-strip-quoted-names address)))
- (if (string-match rmail-dont-reply-to-names naked-address)
+ (if (and (stringp naked-address)
+ (string-match rmail-dont-reply-to-names naked-address))
(setq destinations (concat (substring destinations 0 start-pos)
(and cur-pos (substring destinations
(1+ cur-pos))))
--
1.7.2.3
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8593
; Package
emacs
.
(Mon, 02 May 2011 14:19:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 8593 <at> debbugs.gnu.org (full text, mbox):
> The following is optimization for the mail-strip-quoted-names: it returns
> immediately if there is nothing to do. The patch is against Git:
What for?
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#8593
; Package
emacs
.
(Thu, 12 Apr 2012 19:29:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 8593 <at> debbugs.gnu.org (full text, mbox):
Jari Aalto <jari.aalto <at> cante.net> writes:
> The following is optimization for the mail-strip-quoted-names: it returns
> immediately if there is nothing to do.
I don't quite see what's the point of this, so I'm closing the report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Added tag(s) wontfix.
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 12 Apr 2012 19:29:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
8593 <at> debbugs.gnu.org and Jari Aalto <jari.aalto <at> cante.net>
Request was from
Lars Magne Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Thu, 12 Apr 2012 19:29:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 11 May 2012 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 36 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.