From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Lillibridge Newsgroups: gmane.emacs.devel Subject: Re: Change in rmail-insert-mime-forwarded-message Date: Tue, 08 Jan 2013 08:32:15 -0800 Message-ID: <87a9sjtz3k.fsf@foil.strangled.net> References: <87vcb89em4.fsf@uwakimon.sk.tsukuba.ac.jp> Reply-To: mdl@alum.mit.edu NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357662748 23254 80.91.229.3 (8 Jan 2013 16:32:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2013 16:32:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 08 17:32:45 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Tsc6T-0003H4-T2 for ged-emacs-devel@m.gmane.org; Tue, 08 Jan 2013 17:32:42 +0100 Original-Received: from localhost ([::1]:57116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsc6E-0007qn-AX for ged-emacs-devel@m.gmane.org; Tue, 08 Jan 2013 11:32:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60770) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsc68-0007nZ-RY for emacs-devel@gnu.org; Tue, 08 Jan 2013 11:32:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tsc64-0004pH-DH for emacs-devel@gnu.org; Tue, 08 Jan 2013 11:32:20 -0500 Original-Received: from alum-mailsec-scanner-7.mit.edu ([18.7.68.19]:64689) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tsc64-0004pC-9J for emacs-devel@gnu.org; Tue, 08 Jan 2013 11:32:16 -0500 X-AuditID: 12074413-b7f786d0000008bb-cc-50ec4a0fdaac Original-Received: from outgoing-alum.mit.edu (OUTGOING-ALUM.MIT.EDU [18.7.68.33]) by alum-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP id 38.85.02235.F0A4CE05; Tue, 8 Jan 2013 11:32:15 -0500 (EST) Original-Received: from foil.strangled.net (c-67-188-235-212.hsd1.ca.comcast.net [67.188.235.212]) (authenticated bits=0) (User authenticated as mdl@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.13.8/8.12.4) with ESMTP id r08GWCUB022304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 8 Jan 2013 11:32:13 -0500 In-Reply-To: <87vcb89em4.fsf@uwakimon.sk.tsukuba.ac.jp> (stephen@xemacs.org) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsUixO6iqMvv9SbAYPJRWYvHC56wWkz9eIbN on36WUYHZo+/7z8webRNM/PY8+4GSwBzFLdNUmJJWXBmep6+XQJ3xpRDM9gLznBVbL01ja2B cQpHFyMHh4SAicS+q9pdjJxAppjEhXvr2boYuTiEBC4zSvRe+MUM4VxhkliwahkrSBWbgKbE 9Gff2UFsEQE9iQvPvjKB2MwC4hI/7vaB1QgLWEnsfNnBCGJzCvhIzNrcBFYvJCAlsXTRCXaQ xSwCqhI7doOFeQX0JaZ8Oc8IYQtKnJz5hAVipITEwRcvmCcw8s1CkpqFJLWAkWkVo1xiTmmu bm5iZk5xarJucXJiXl5qka65Xm5miV5qSukmRkjICe9g3HVS7hCjAAejEg9vZdTrACHWxLLi ytxDjJIcTEqivCkebwKE+JLyUyozEosz4otKc1KLDzFKcDArifDa7wMq501JrKxKLcqHSUlz sCiJ86otUfcTEkhPLEnNTk0tSC2CycpwcChJ8G4DGSpYlJqeWpGWmVOCkGbi4AQZziUlUpya l5JalFhakhEPiq/4YmCEgaR4gPaeAGnnLS5IzAWKQrSeYtTl+LXy5lNGIZa8/LxUKXHeCSBF AiBFGaV5cCtgCeYVozjQx8K8Z0GqeIDJCW7SK6AlTEBLHt0Eea64JBEhJdXAKH0lbMJqj5uh 0ftLXvTe+Pt3v9DMF9Feu5a+1X3g6SGTtoW9zLo48Z8KY+6n/zP4r1/1zBLeZp+S4zJ7Tfv7 63WG+r2fatqihD52tgQZXdzq/+xNw0LLC6J7p5zYPX3uMRN+1TqeuamutwQsLMx0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 18.7.68.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156148 Archived-At: "Stephen J. Turnbull" writes: > Mark Lillibridge writes: > > > Messages stored in mbox format have lines starting with >*From\ > > escaped by adding an extra > at the front. This escaping needs to be > > reversed to get the original message back. See bug #13329 for more > > details. > > It's not particularly relevant to the problem Richard is reporting, > but that's incorrect. mbox formats vary, but the most common ones > stuff a ">" if and only if the string "From " occurs at the beginning > of a line. If ">From" occurs at the beginning of a line, you can't > know whether it was stuffed by the MDA or by the message author or > what. Yes, mbox formats vary; I was describing mboxrd above, which I believe is the current Rmail default and does not suffer from this problem. See bug #6574 for why mboxo, which you describe above, corrupts messages with ">From " lines. Either way, unescaping is required for forwarding or resending messages (destination system may not use mbox at all). > The only portable way I know to handle this involves hiding the > message text from MDAs by encoding "From" or ">From" as quoted- > printable. Agreed. Base64 also works. I don't think either of the message sending libraries in Emacs does this, however. - Mark