From unknown Sun Jun 22 11:36:19 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4525: 23.1; RMAIL file carbon copy bug Reply-To: "Lane A. Hemaspaandra" , 4525@debbugs.gnu.org Resent-From: "Lane A. Hemaspaandra" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 22 Sep 2009 18:45:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4525 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12536447353456 (code B ref -1); Tue, 22 Sep 2009 18:45:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 22 Sep 2009 18:38:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.2 required=4.0 tests=FOURLA,MDO_DATING14 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MIcsfu003445 for ; Tue, 22 Sep 2009 11:38:55 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqAGL-0006so-Ld for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqAGH-0006sW-5x for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:53 -0400 Received: from [199.232.76.173] (port=43522 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqAGG-0006sT-Uu for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:48 -0400 Received: from slate.cs.rochester.edu ([192.5.53.101]:57165) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqAGG-0001Oi-Je for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:48 -0400 Received: from e19.cs.rochester.edu (e19.cs.rochester.edu [128.151.67.229]) by slate.cs.rochester.edu (8.13.8/8.13.8) with ESMTP id n8MIaiA6001442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Sep 2009 14:36:44 -0400 Received: from e19.cs.rochester.edu (localhost [127.0.0.1]) by e19.cs.rochester.edu (8.14.3/8.14.3) with ESMTP id n8MIaiIR030142; Tue, 22 Sep 2009 14:36:44 -0400 Received: (from lane@localhost) by e19.cs.rochester.edu (8.14.3/8.14.3/Submit) id n8MIairs030140; Tue, 22 Sep 2009 14:36:44 -0400 Date: Tue, 22 Sep 2009 14:36:44 -0400 Message-Id: <200909221836.n8MIairs030140@e19.cs.rochester.edu> From: "Lane A. Hemaspaandra" To: bug-gnu-emacs@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Ever since we switched to Emacs 23 here, RMAIL has problems when trying to reply (via rmail-summary-reply-to-sender-only, so I am in a summary buffer, but the same happens if one is not in summary and is on the message itself and types reply) to an email that itself was written by "FCC" (file-carbon-copy). The behavior is repeatable and the same each time. One hits the key that means reply, and emacs beeps and the error line says: Wrong type argument: char-or-string-p, nil and then one is in a mail-message-creation buffer but the special separator line between the header and the rest of the message is NOT on a line by itself but comes right after "References: " and on the same line as that "References: ". I'm not wise in the ways of emacs, but my guess is that things that are written to mailfiles via the FCC path don't have enough "Reference" information to when replying to them fill in the reference line in the standard way (in fact, looking at the messages being replied to, they in the mbox-format mailfile don't even HAVE any References line or any ID info or so on), and that some routine that tries to do this somehow chokes. This behavior happens to me both on messages I FCC'ed to myself under emacs 23 and also under messages I FCC'ed to myself long before emacs 23. (So I've now turned off FCC, but still I have this happen, namely, when I reply to an old message.) That this behavior has to do with "References:" generation is suggested also by the fact that when I reply to FCC'ed-to-me-by-me messages that DO have themselves a Reference line (because I was myself replying in that to some email), this problem does not happen. It happens whether the mailfile is in babyl or whether the mailfile has been converted to mbox. for example, here is what the start of an mbox message is that has this problem when i try to reply to it. If I turn on debug-on-error, and have this error, here is what I get in the Backtrace window: Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) sendmail-user-agent-compose("\"Lane A. Hemaspaandra\" " "Re: critical room reservation: Theory Canal Seminar, room CSB 703" (("in-reply-to" . "\"lane@cs.rochester.edu\"'s message of 19 Jul 2009 11:33:26 -0400") ("cc") ("References")) nil switch-to-buffer-other-window (insert-buffer #) ((rmail-mark-message # (117) 0))) compose-mail("\"Lane A. Hemaspaandra\" " "Re: critical room reservation: Theory Canal Seminar, room CSB 703" (("in-reply-to" . "\"lane@cs.rochester.edu\"'s message of 19 Jul 2009 11:33:26 -0400") ("cc") ("References")) nil switch-to-buffer-other-window (insert-buffer #) ((rmail-mark-message # (117) 0))) rmail-start-mail(nil "\"Lane A. Hemaspaandra\" " "Re: critical room reservation: Theory Canal Seminar, room CSB 703" "\"lane@cs.rochester.edu\"'s message of 19 Jul 2009 11:33:26 -0400" nil # ((rmail-mark-message # (117) 0)) nil (("References"))) rmail-reply(t) rmail-summary-reply(t) rmail-summary-reply-to-sender-only() call-interactively(rmail-summary-reply-to-sender-only nil nil) I can easily send a sample file that generates this behavior. Thank you very, very much. In GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5) of 2009-08-26 on x86-2.fedora.phx.redhat.com configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--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=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables'' 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.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Mail Minor modes in effect: flyspell-mode: t shell-dirtrack-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 4 2 ; 0 c C-x r p a t r SPC RET p p p p p p p p p p q C-x r = s h SPC p a t r SPC RET p d y e s RET u q C-x r p a t r i SPC C-g C-g C-x r = s h SPC p a t r SPC RET d u p p p p p p p p p r ESC x r e p o r t - e m a c s - b u g RET Recent messages: Replacing BABYL format with mbox format...done Computing summary lines...done After this, patriciam<2> would be saved in mbox format. Proceed? Saving file /u/lane/=shortCutToOldEmail/patriciam... Wrote /u/lane/=shortCutToOldEmail/patriciam Quit [2 times] Computing summary lines...done Starting new Ispell process [default] ... compose-mail: Wrong type argument: char-or-string-p, nil Auto-saving... From unknown Sun Jun 22 11:36:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: "Lane A. Hemaspaandra" Subject: bug#4525 closed by Glenn Morris (Re: bug#4525: 23.1; RMAIL file carbon copy bug) Message-ID: References: <200909221836.n8MIairs030140@e19.cs.rochester.edu> X-Emacs-PR-Message: they-closed 4525 X-Emacs-PR-Package: emacs Reply-To: 4525@debbugs.gnu.org Date: Wed, 23 Sep 2009 06:25:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1253687105-979-1" This is a multi-part message in MIME format... ------------=_1253687105-979-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #4525: 23.1; RMAIL file carbon copy bug It has been closed by Glenn Morris . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Glenn Morris by replying to this email. --=20 4525: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4525 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1253687105-979-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4525-done) by emacsbugs.donarmstrong.com; 23 Sep 2009 06:20:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-7.6 required=4.0 tests=AWL,HAS_BUG_NUMBER, X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8N6KIpd000606 for <4525-done@emacsbugs.donarmstrong.com>; Tue, 22 Sep 2009 23:20:19 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MqLD6-0003zF-Jc; Wed, 23 Sep 2009 02:20:16 -0400 From: Glenn Morris To: 4525-done@debbugs.gnu.org Subject: Re: bug#4525: 23.1; RMAIL file carbon copy bug References: <200909221836.n8MIairs030140@e19.cs.rochester.edu> X-Spook: ISEC bullion CID digicash tempest weapons of mass X-Ran: Iq!(]hkK (Lane A. Hemaspaandra's message of "Tue, 22 Sep 2009 14:36:44 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Thank you; fixed. * mail/rmail.el (rmail-reply): Don't try to add a References header when replying to mail without References or Message-Id. ------------=_1253687105-979-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 22 Sep 2009 18:38:55 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.2 required=4.0 tests=FOURLA,MDO_DATING14 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8MIcsfu003445 for ; Tue, 22 Sep 2009 11:38:55 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqAGL-0006so-Ld for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:53 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqAGH-0006sW-5x for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:53 -0400 Received: from [199.232.76.173] (port=43522 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqAGG-0006sT-Uu for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:48 -0400 Received: from slate.cs.rochester.edu ([192.5.53.101]:57165) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MqAGG-0001Oi-Je for bug-gnu-emacs@gnu.org; Tue, 22 Sep 2009 14:38:48 -0400 Received: from e19.cs.rochester.edu (e19.cs.rochester.edu [128.151.67.229]) by slate.cs.rochester.edu (8.13.8/8.13.8) with ESMTP id n8MIaiA6001442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 22 Sep 2009 14:36:44 -0400 Received: from e19.cs.rochester.edu (localhost [127.0.0.1]) by e19.cs.rochester.edu (8.14.3/8.14.3) with ESMTP id n8MIaiIR030142; Tue, 22 Sep 2009 14:36:44 -0400 Received: (from lane@localhost) by e19.cs.rochester.edu (8.14.3/8.14.3/Submit) id n8MIairs030140; Tue, 22 Sep 2009 14:36:44 -0400 Date: Tue, 22 Sep 2009 14:36:44 -0400 Message-Id: <200909221836.n8MIairs030140@e19.cs.rochester.edu> From: "Lane A. Hemaspaandra" To: bug-gnu-emacs@gnu.org Subject: 23.1; RMAIL file carbon copy bug X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Ever since we switched to Emacs 23 here, RMAIL has problems when trying to reply (via rmail-summary-reply-to-sender-only, so I am in a summary buffer, but the same happens if one is not in summary and is on the message itself and types reply) to an email that itself was written by "FCC" (file-carbon-copy). The behavior is repeatable and the same each time. One hits the key that means reply, and emacs beeps and the error line says: Wrong type argument: char-or-string-p, nil and then one is in a mail-message-creation buffer but the special separator line between the header and the rest of the message is NOT on a line by itself but comes right after "References: " and on the same line as that "References: ". I'm not wise in the ways of emacs, but my guess is that things that are written to mailfiles via the FCC path don't have enough "Reference" information to when replying to them fill in the reference line in the standard way (in fact, looking at the messages being replied to, they in the mbox-format mailfile don't even HAVE any References line or any ID info or so on), and that some routine that tries to do this somehow chokes. This behavior happens to me both on messages I FCC'ed to myself under emacs 23 and also under messages I FCC'ed to myself long before emacs 23. (So I've now turned off FCC, but still I have this happen, namely, when I reply to an old message.) That this behavior has to do with "References:" generation is suggested also by the fact that when I reply to FCC'ed-to-me-by-me messages that DO have themselves a Reference line (because I was myself replying in that to some email), this problem does not happen. It happens whether the mailfile is in babyl or whether the mailfile has been converted to mbox. for example, here is what the start of an mbox message is that has this problem when i try to reply to it. If I turn on debug-on-error, and have this error, here is what I get in the Backtrace window: Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) sendmail-user-agent-compose("\"Lane A. Hemaspaandra\" " "Re: critical room reservation: Theory Canal Seminar, room CSB 703" (("in-reply-to" . "\"lane@cs.rochester.edu\"'s message of 19 Jul 2009 11:33:26 -0400") ("cc") ("References")) nil switch-to-buffer-other-window (insert-buffer #) ((rmail-mark-message # (117) 0))) compose-mail("\"Lane A. Hemaspaandra\" " "Re: critical room reservation: Theory Canal Seminar, room CSB 703" (("in-reply-to" . "\"lane@cs.rochester.edu\"'s message of 19 Jul 2009 11:33:26 -0400") ("cc") ("References")) nil switch-to-buffer-other-window (insert-buffer #) ((rmail-mark-message # (117) 0))) rmail-start-mail(nil "\"Lane A. Hemaspaandra\" " "Re: critical room reservation: Theory Canal Seminar, room CSB 703" "\"lane@cs.rochester.edu\"'s message of 19 Jul 2009 11:33:26 -0400" nil # ((rmail-mark-message # (117) 0)) nil (("References"))) rmail-reply(t) rmail-summary-reply(t) rmail-summary-reply-to-sender-only() call-interactively(rmail-summary-reply-to-sender-only nil nil) I can easily send a sample file that generates this behavior. Thank you very, very much. In GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5) of 2009-08-26 on x86-2.fedora.phx.redhat.com configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--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=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables'' 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.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Mail Minor modes in effect: flyspell-mode: t shell-dirtrack-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 4 2 ; 0 c C-x r p a t r SPC RET p p p p p p p p p p q C-x r = s h SPC p a t r SPC RET p d y e s RET u q C-x r p a t r i SPC C-g C-g C-x r = s h SPC p a t r SPC RET d u p p p p p p p p p r ESC x r e p o r t - e m a c s - b u g RET Recent messages: Replacing BABYL format with mbox format...done Computing summary lines...done After this, patriciam<2> would be saved in mbox format. Proceed? Saving file /u/lane/=shortCutToOldEmail/patriciam... Wrote /u/lane/=shortCutToOldEmail/patriciam Quit [2 times] Computing summary lines...done Starting new Ispell process [default] ... compose-mail: Wrong type argument: char-or-string-p, nil Auto-saving... ------------=_1253687105-979-1--