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#19083: 24.3; RMAIL-summary should get message date from "From " line if there is no "Date:" header Date: Mon, 17 Nov 2014 12:25:50 -0500 Message-ID: <201411171725.sAHHPoT4011696@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 1416245249 13074 80.91.229.3 (17 Nov 2014 17:27:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2014 17:27:29 +0000 (UTC) To: 19083@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 18:27:23 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 1XqQ5C-0005nT-3h for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 18:27:22 +0100 Original-Received: from localhost ([::1]:49415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqQ5B-0006Yd-Mp for geb-bug-gnu-emacs@m.gmane.org; Mon, 17 Nov 2014 12:27:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46547) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqQ50-0006Kg-GQ for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 12:27:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqQ4s-00052q-OE for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 12:27:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqQ4s-00052Q-HI for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 12:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XqQ4s-0007G4-1f for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 12:27:02 -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 17:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19083 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.141624517927747 (code B ref -1); Mon, 17 Nov 2014 17:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2014 17:26:19 +0000 Original-Received: from localhost ([127.0.0.1]:36510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqQ4A-0007DQ-Jd for submit@debbugs.gnu.org; Mon, 17 Nov 2014 12:26:19 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44158) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XqQ48-0007DD-2H for submit@debbugs.gnu.org; Mon, 17 Nov 2014 12:26:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqQ40-0004e6-6g for submit@debbugs.gnu.org; Mon, 17 Nov 2014 12:26:15 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:33815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqQ40-0004dw-40 for submit@debbugs.gnu.org; Mon, 17 Nov 2014 12:26:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqQ3t-0005g3-DJ for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 12:26:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqQ3m-0004Mi-5y for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 12:26:01 -0500 Original-Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]:39233) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqQ3l-0004L9-Q8 for bug-gnu-emacs@gnu.org; Mon, 17 Nov 2014 12:25:54 -0500 Original-Received: from resomta-po-11v.sys.comcast.net ([96.114.154.235]) by resqmta-po-01v.sys.comcast.net with comcast id GhQz1p00154zqzk01hRsbS; Mon, 17 Nov 2014 17:25:52 +0000 Original-Received: from hobgoblin.ariadne.com ([24.34.72.61]) by resomta-po-11v.sys.comcast.net with comcast id GhRr1p00F1KKtkw01hRsQ1; Mon, 17 Nov 2014 17:25:52 +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 sAHHPo88011701 for ; Mon, 17 Nov 2014 12:25:50 -0500 Original-Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id sAHHPoT4011696; Mon, 17 Nov 2014 12:25:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1416245152; bh=eLt4YPC4OuNx6bn+MPZ+ObAwvHweEzf9y3P7trOYiE0=; h=Received:Received:Received:Received:Date:Message-Id:From:To: Subject:MIME-version:Content-type; b=OTztBZHcWlk19d42iTXU3u1cW3w37gkUAjJCMvNNhtOpF/qkDwblNbQ2bv4YaoTHM djS2/RnO/5pqxEBTaeY14gUVXV4Z3UgzjfHHNHlrIsRF/bZkKDnPYVywS+Nj+pr+nF e+KJHiCFg7UZOtJ+9r3hqWFVPpX40+8hYamiLTCCnVM0RYAAU/5nkeQG2l/LOB2oFw gPlrUNnBhb7jJHtDtaTgfnNIm0OpgEJVGeCkFt7NICYPdatSv0/7sY99Pt/ivhdA1W P7zfJCbarpJHZYx722E6xSCIquALSnuCuM6rqPTLRxOd+Fh1Zaw4hoh0DXruGs5WhE SDSnYfrd8Zc/Q== 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:96165 I have been putting messages in a file using the Fcc: quasi-header. This generates a file containg messages (in the current mailbox format) that looks like this: From worley Sat Nov 15 10:34:18 -0500 2014 From: worley@alum.mit.edu (Dale R. Worley) To: worley Subject: Re: Reference [body] From worley Sun Nov 16 14:42:22 -0500 2014 From: worley@alum.mit.edu (Dale R. Worley) Sender: worley@alum.mit.edu (Dale R. Worley) To: Duffy O'Craven Subject: Do you know of an opportunity like this? [body] I can read and manipulate this file using Rmail, with one exception: The RMAIL-summary buffer does not show dates for these messages. (If I display the message in the RMAIL buffer, no "Date:" header is shown, but that is something I would expect. Using the "t" command (rmail-toggle-header) reveals the initial "From " line, which shows the date, so there is no loss of usability.) While in some sense it is correct to not show a date for these messages in the summary buffer, it would be much more useful if the summary buffer processing would extract the date from the "From " line if there is no "Date:" header. The only way I know to avoid this effect is, instead of using "Fcc:", to add "Bcc: [myself]", and then use rmail-output to move the bcc copy (which has a "Date:" header added somewhere in mail processing) to the file I wish to save the sent message in. In addition, the rmail-sort-by-date function should use the date in the "From " line if there is no "Date:" header. Currently, messages without a "Date:" header sort to the beginning, regardless of when they were actually sent. 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: RMAIL 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: M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> M-< M-> C-x b M-| C-x I R M y M-> C-M-r ^ g f r o m SPC C-r C-r C-r C-r C-r C-e C-x 2 C-x o C-s d a t e : C-a C-x o C-M-s C-s C-s C-s C-s C-s C-s C-a C-x C-b C-x o C-n C-n o > p p p p p p p p p p p p p p p p p t t C-x o C-x b a c c M-< C-s s a v a n n a h C-a M-< C-s d e b b u g C-a C-x b R M > C-x 1 > C-d C-d C-d C-x C-b C-x o C-n f M-< C-s m e d i a c t r l C-a C-x 0 C-d C-d C-d C-d C-d C-d C-d C-d C-d C-d C-d C-M-s f a c e b o o k C-x o C-x b a c c M-< C-s f a c e b o o C-a C-x o . C-x o d M-< M-> C-p Q p n C-h c C-M-t M-x r e p o r t - e m a c s - b u g Recent messages: Mark set Mark saved where search started Mark set Mark saved where search started Computing summary lines...done Mark set Mark saved where search started Mark set [2 times] No following nondeleted message C-M-t runs the command rmail-summary-by-topic Load-path shadows: None found. Features: (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)