From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: worley@alum.mit.edu (Dale R. Worley) Newsgroups: gmane.emacs.bugs Subject: bug#19088: 24.3; rmail-summary-by-regexp only searches the raw Subject: header Date: Mon, 17 Nov 2014 14:32:10 -0500 Message-ID: <201411171932.sAHJWAaS027581@hobgoblin.ariadne.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1416253295 20483 80.91.229.3 (17 Nov 2014 19:41:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 19:41:35 +0000 (UTC) To: 19088@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 20:41:29 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XqSAy-0006Vj-4K for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 20:41:28 +0100 Original-Received: from localhost ([::1]:49926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqSAx-0007bV-Mn for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 14:41:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqSAn-0007aA-BE for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 14:41:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqSAZ-0001c7-Ks for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 14:41:17 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39400) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqSAZ-0001bg-Hu for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 14:41:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XqSAZ-00065u-8Z for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 14:41:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: worley@alum.mit.edu (Dale R. Worley) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Nov 2014 19:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19088 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141625325423388 (code B ref -1); Mon, 17 Nov 2014 19:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2014 19:40:54 +0000 Original-Received: from localhost ([127.0.0.1]:36613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqSAP-000653-61 for submit@debbugs.gnu.org; Mon, 17 Nov 2014 14:40:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56726) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqSAK-00064l-OU for submit@debbugs.gnu.org; Mon, 17 Nov 2014 14:40:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqS9z-0001JK-TM for submit@debbugs.gnu.org; Mon, 17 Nov 2014 14:40:48 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:55084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqS9z-0001EH-R2 for submit@debbugs.gnu.org; Mon, 17 Nov 2014 14:40:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqS27-0003E1-N1 for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 14:32:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqS20-0007IC-QL for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 14:32:19 -0500 Original-Received: from resqmta-ch2-01v.sys.comcast.net ([69.252.207.33]:57339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqS20-0007I8-LA for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 14:32:12 -0500 Original-Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-01v.sys.comcast.net with comcast id GjWn1p00J2LrikM01jYBhE; Mon, 17 Nov 2014 19:32:11 +0000 Original-Received: from hobgoblin.ariadne.com ([24.34.72.61]) by resomta-ch2-12v.sys.comcast.net with comcast id GjYA1p00S1KKtkw01jYBqv; Mon, 17 Nov 2014 19:32:11 +0000 Original-Received: from hobgoblin.ariadne.com (hobgoblin.ariadne.com [127.0.0.1]) by hobgoblin.ariadne.com (8.14.7/8.14.7) with ESMTP id sAHJWADh027584 for ; Mon, 17 Nov 2014 14:32:10 -0500 Original-Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id sAHJWAaS027581; Mon, 17 Nov 2014 14:32:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1416252731; bh=RJgTlQZh5vs2oN1oyeGTEDusCxo783VtLpQg/Ivr5jc=; h=Received:Received:Received:Received:Date:Message-Id:From:To: Subject:MIME-version:Content-type; b=rXmvQGJ/CORwUqJNuNGtEiRyMs+Djir6cRLv18MNkWb/9eOYS2IQWEuSJlD4on0MH MfEnEcevFeCPy8U5wJT+p6sUxbo1AwDK2BoQeqqubYpIJz+z1mvMknrE4MTJMJ7IgK 7A5JNQWFIkFXHYLe3Tn4S9OeuG68ONsVb6kZmAYR3uo13UluqpkccCwq0kn0l0Qk7u 1k/aY7vf5pcMp1wW1BP7GsTC6A12blhVrLw80DIP2A7AKUjEfrzwTU2+XE7ZjxQ9e+ Jta4DhRXr0+TR21Ndg317uVNwjZo+MGbnfJZ+dxK3b3fRek9dB6dz3uQ3QsZXGWhFN XwOUjkVWEt8Rw== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96175 rmail-summary-by-regexp searches the headers of the messages in an Rmail buffer and displays those that contain a header that matches the user-provided regexp. However, in regard to the Subject: header, the search is done against the "raw" header, not against the string after encoded-words (=?...?= constructions) are processed. Given that in all situations (other than when rmail-mime is in effect), Rmail shows the decoded Subject: rather than the raw header, the search can easily not find messages that the user expects to match. In extreme cases, the user can copy the text of a message's Subject: header for use as the argument to rmail-summary-by-regexp but no messages will be reported in the RMAIL-summary buffer. To demonstrate this, put one message in a mailbox file and replace its Subject: line with: Subject: =?UTF-8?Q?Re=3A_=5Bgit=2Dusers=5D_Re=3A_git_1=2E9=2E4=E2=80=8F_for_window_prompt_s?= =?UTF-8?Q?h=2Eexe=3A_=2Fdev=2Fnull_No_such_file_or_dirctory?= this decodes to: Subject: Re: [git-users] Re: git 1.9.4‏ for window prompt sh.exe: /dev/null No such file or dirctory Now execute: C-M-s /dev/null RET The user will expect to see the one message listed in the RMAIL-summary buffer. But it will not be. In GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on buildvm-15.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11404000 System Description: Fedora release 19 (Schrödinger’s Cat) Configured using: `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk3' '--with-gpm=no' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Apropos Minor modes in effect: shell-dirtrack-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t Recent input: C-x b t e m p * ! g C-p C-p C-p o M-< M-> C-x o C-p o M-< M-> C-x o C-p C-p o M-< M-> C-x o C-x b R M t C-x 1 C-s s u b j e c t C-s C-s C-a C-x 2 C-x o C-x b M-| C-x I R M y C-x o C-p C-p C-p M-f M-f M-f M-b C-s C-w C-w C-w C-w C-w C-x o M-> C-r C-r C-a M-v M-v M-v M-v C-u C-p C-p C-p C-p C-p C-n C-SPC C-M-s f r o m SPC C-s C-s C-s C-s C-a C-x C-x C-M-s ^ f r o m SPC C-s C-a M-w C-x C-f ~ / t e m p / R 1 C-y M-< C-x C-b C-x o C-n f C-x n w M-> C-x 0 C-s s u b j e c t : SPC C-a M-> M-< C-x C-s C-s g i t SPC f o r SPC w i n d C-a C-n C-n C-n M-x b u g C-g C-x M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-n M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p M-p C-g M-x s u b m C-g M-x a p r o p o s C-g C-h a b u g C-x o C-n C-n C-n C-n C-n C-n C-n C-n C-M-s \ < b u g \ > C-s C-s C-s C-s C-s C-s C-a C-l M-x r e m p o r Recent messages: Mark saved where search started Mark set [2 times] Saving file /home/worley/temp/R1... Wrote /home/worley/temp/R1 Mark saved where search started Quit user-error: Beginning of history; no preceding item [14 times] Quit [3 times] Type C-x 1 to remove help window. Mark saved where search started Load-path shadows: None found. Features: (apropos mail-extr timezone rmailsort shadow emacsbug vc-git rect pcmpl-linux pp wid-edit descr-text doc-view jka-compr image-mode vc-dispatcher vc-svn pcmpl-gnu tar-mode sgml-mode rmailkwd compare-w arc-mode archive-mode edmacro two-column kmacro iso-transl etags tramp-cache tramp-sh tramp warnings tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util password-cache tramp-loaddefs cl-macs gv advice help-fns advice-preload rmailedit rmailout cookie1 pcmpl-unix teco perl-mode sh-script smie executable conf-mode tabify ispell ebuff-menu electric mule-util help-mode qp rmailsum rmailmm rmail cl cl-lib message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader mailalias sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils man shell pcomplete comint ansi-color ring misearch multi-isearch dired-aux dired time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)