From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25436: 25.1; sendmail does not add a Date: header in FCC Date: Fri, 13 Jan 2017 17:30:58 +0200 Message-ID: <83y3yfasel.fsf@gnu.org> References: <831sw7c9xx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1484321549 7084 195.159.176.226 (13 Jan 2017 15:32:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Jan 2017 15:32:29 +0000 (UTC) Cc: 25436@debbugs.gnu.org To: Francesco =?UTF-8?Q?Potort=C3=AC?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 13 16:32:25 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cS3pv-0000dq-RP for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jan 2017 16:32:15 +0100 Original-Received: from localhost ([::1]:42016 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cS3py-0005G1-Ot for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Jan 2017 10:32:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cS3po-0005Er-A8 for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2017 10:32:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cS3pi-0002Hx-Oo for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2017 10:32:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cS3pi-0002Ht-Lm for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2017 10:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cS3pi-0008C9-H6 for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2017 10:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jan 2017 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25436 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25436-submit@debbugs.gnu.org id=B25436.148432146528762 (code B ref 25436); Fri, 13 Jan 2017 15:32:02 +0000 Original-Received: (at 25436) by debbugs.gnu.org; 13 Jan 2017 15:31:05 +0000 Original-Received: from localhost ([127.0.0.1]:53032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cS3on-0007Tj-1x for submit@debbugs.gnu.org; Fri, 13 Jan 2017 10:31:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cS3om-0007NW-20 for 25436@debbugs.gnu.org; Fri, 13 Jan 2017 10:31:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cS3og-00020J-7W for 25436@debbugs.gnu.org; Fri, 13 Jan 2017 10:30:59 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cS3oY-0001zH-2Q; Fri, 13 Jan 2017 10:30:50 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3516 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cS3oX-0003qy-DC; Fri, 13 Jan 2017 10:30:49 -0500 In-reply-to: (message from Francesco =?UTF-8?Q?Potort=C3=AC?= on Fri, 13 Jan 2017 15:41:07 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:128078 Archived-At: > Date: Fri, 13 Jan 2017 15:41:07 +0100 > From: Francesco Potortì > Cc: 25436@debbugs.gnu.org > > $ emacs -Q > M-: (setq mail-user-agent 'sendmail-user-agent) > C-xm > add a recipient, subject and text at will > C-cC-fC-f > specify an FCC file at will > C-cC-c > transport RET > > Now if I look at the FCC file, I see that the sent mail does not contain > a Date: header. I did the above, and I do see the "Date" header. However, I needed a few additional settings before I could proceed after "C-c C-c". Here are the variables I needed to set: user-full-name user-mail-address smtpmail-smtp-server smtpmail-smtp-service smtpmail-stream-type Not sure if any of the above is relevant to the issue at hand. Can you step through sendmail-send-it, and see what happens there with the date header? According to my reading of the code, by the time mail-do-fcc is invoked, the Date header is supposed to be already in the mail buffer, and that buffer is inserted verbatim into FCC.