From unknown Mon Aug 18 14:20:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25645 <25645@debbugs.gnu.org> To: bug#25645 <25645@debbugs.gnu.org> Subject: Status: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 Reply-To: bug#25645 <25645@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:20:30 +0000 retitle 25645 26.0.50; message.el: Fcc+handler results in write coding issu= es in emacs 26 reassign 25645 emacs submitter 25645 Yuri D'Elia severity 25645 normal tag 25645 unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 12:00:29 2017 Received: (at submit) by debbugs.gnu.org; 7 Feb 2017 17:00:29 +0000 Received: from localhost ([127.0.0.1]:59199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb980-00048l-FG for submit@debbugs.gnu.org; Tue, 07 Feb 2017 12:00:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb97x-00048Y-T2 for submit@debbugs.gnu.org; Tue, 07 Feb 2017 12:00:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb97n-0001Z0-DM for submit@debbugs.gnu.org; Tue, 07 Feb 2017 12:00:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34459) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cb97n-0001Yw-AJ for submit@debbugs.gnu.org; Tue, 07 Feb 2017 12:00:15 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb97k-0000mD-O7 for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 12:00:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb97g-0001Vf-MQ for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 12:00:12 -0500 Received: from e.thregr.org ([80.68.88.20]:47323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cb97g-0001RG-Db for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 12:00:08 -0500 Received: from [2a02:27e8:20:9049:56ee:75ff:fe83:444c] (helo=localhost) by e.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1cb97Y-0007pe-Gf for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2017 18:00:00 +0100 User-agent: mu4e 0.9.19; emacs 26.0.50.4 From: Yuri D'Elia To: bug-gnu-emacs@gnu.org Subject: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 Date: Tue, 07 Feb 2017 18:00:01 +0100 Message-ID: <871svax7fy.fsf@wavexx.thregr.org> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) I'm using message.el in conjunction with mu4e, which uses Fcc and a message-fcc-handler-function to save the outgoing message directly into a maildir folder. Nothing fancy: Fcc is set via a message-send-hook, then in the handler we just 'write-file and some bookeeping. It works as expected with emacs 25.2, but fails on 26 when the body contains unicode characters. Somehow when the mail is encoded in quoted printable with an utf-8 charset, the buffer seem to contain raw bytes as if the buffer has an incorrect buffer-file-coding-system. When 'write-file is issued, emacs prompts for a coding system, which is unexpected. The stack is as follows: read-from-minibuffer("Select coding system (default raw-text): " nil (key= map (10 . minibuffer-complete-and-exit) (13 . minibuffer-complete-and-exit)= keymap (menu-bar keymap (minibuf "Minibuf" keymap (tab menu-item "Complete= " minibuffer-complete :help "Complete as far as possible") (space menu-item= "Complete Word" minibuffer-complete-word :help "Complete at most one word"= ) (63 menu-item "List Completions" minibuffer-completion-help :help "Displa= y all possible completions") "Minibuf")) (27 keymap (118 . switch-to-comple= tions)) (prior . switch-to-completions) (63 . minibuffer-completion-help) (= 32 . minibuffer-complete-word) (9 . minibuffer-complete) keymap (menu-bar k= eymap (minibuf "Minibuf" keymap (previous menu-item "Previous History Item"= previous-history-element :help "Put previous minibuffer history element in= the minibuffer") (next menu-item "Next History Item" next-history-element = :help "Put next minibuffer history element in the minibuffer") (isearch-bac= kward menu-item "Isearch History Backward" isearch-backward :help "Incremen= tally search minibuffer history backward") (isearch-forward menu-item "Isea= rch History Forward" isearch-forward :help "Incrementally search minibuffer= history forward") (return menu-item "Enter" exit-minibuffer :key-sequence " " :help "Terminate input and exit minibuffer") (quit menu-item "Quit" abort= -recursive-edit :help "Abort input and exit minibuffer") "Minibuf")) (10 . = exit-minibuffer) (13 . exit-minibuffer) (7 . abort-recursive-edit) (C-tab .= file-cache-minibuffer-complete) (9 . self-insert-command) (XF86Back . prev= ious-history-element) (up . previous-line-or-history-element) (prior . prev= ious-history-element) (XF86Forward . next-history-element) (down . next-lin= e-or-history-element) (next . next-history-element) (27 keymap (114 . previ= ous-matching-history-element) (115 . next-matching-history-element) (112 . = previous-history-element) (110 . next-history-element))) nil coding-system-= history "raw-text" nil) completing-read-default("Select coding system (default raw-text): " (("ut= f-8-hfs") ("utf-8-hfs-mac") ("utf-8-hfs-dos") ("utf-8-hfs-unix") ("georgian= -academy") ("georgian-academy-mac") ("georgian-academy-dos") ("georgian-aca= demy-unix") ("georgian-ps") ("georgian-ps-mac") ("georgian-ps-dos") ("georg= ian-ps-unix") ("cp1256") ("cp1256-mac") ("cp1256-dos") ("cp1256-unix") ("wi= ndows-1256") ("windows-1256-mac") ("windows-1256-dos") ("windows-1256-unix"= ) ("iso-8859-6") ("iso-8859-6-mac") ("iso-8859-6-dos") ("iso-8859-6-unix") = ("tcvn-5712") ("tcvn-5712-mac") ("tcvn-5712-dos") ("tcvn-5712-unix") ("tcvn= ") ("tcvn-mac") ("tcvn-dos") ("tcvn-unix") ("vietnamese-tcvn") ("vietnamese= -tcvn-mac") ("vietnamese-tcvn-dos") ("vietnamese-tcvn-unix") ("cp1258") ("c= p1258-mac") ("cp1258-dos") ("cp1258-unix") ("windows-1258") ("windows-1258-= mac") ("windows-1258-dos") ("windows-1258-unix") ("viqr") ("viqr-mac") ("vi= qr-dos") ("viqr-unix") ("vietnamese-viqr") ("vietnamese-viqr-mac") ...) nil= t nil coding-system-history "raw-text" nil) read-coding-system("Select coding system (default raw-text): " raw-text) select-safe-coding-system-interactively(1 315 (raw-text no-conversion) (u= tf-8) nil raw-text) select-safe-coding-system(1 315 utf-8 nil "/tmp/test.maildir/cur/14864859= 41.759962ca005e4922.eab16011nb:2,S") #(nil nil "/tmp/test.maildir/cur/1486485941.759962ca00= 5e4922.eab16011nb:2,S" nil t "/tmp/test.maildir/cur/1486485941.759962ca005e= 4922.eab16011nb:2,S" nil) ad-Advice-write-region(# nil nil "/tmp/test.maildir/cu= r/1486485941.759962ca005e4922.eab16011nb:2,S" nil t "/tmp/test.maildir/cur/= 1486485941.759962ca005e4922.eab16011nb:2,S") apply(ad-Advice-write-region # (nil nil "/tmp/test.mai= ldir/cur/1486485941.759962ca005e4922.eab16011nb:2,S" nil t "/tmp/test.maild= ir/cur/1486485941.759962ca005e4922.eab16011nb:2,S")) write-region(nil nil "/tmp/test.maildir/cur/1486485941.759962ca005e4922.e= ab16011nb:2,S" nil t "/tmp/test.maildir/cur/1486485941.759962ca005e4922.eab= 16011nb:2,S") basic-save-buffer-2() basic-save-buffer-1() basic-save-buffer(nil) save-buffer() write-file("/tmp/test.maildir/cur/1486485941.759962ca005e4922.eab16011nb:= 2,S") (let ((no-coding-system-for-write (quote raw-text))) (write-file file)) (lambda (G2 G3 file) (setq message-fcc-handler-function (symbol-value G2)= ) (let ((no-coding-system-for-write (quote raw-text))) (write-file file)) (= mu4e~proc-add file (or (symbol-value G3) "/")))(--old-handler-- --maildir--= "/tmp/test.maildir/cur/1486485941.759962ca005e4922.eab16011nb:2,S") apply((lambda (G2 G3 file) (setq message-fcc-handler-function (symbol-val= ue G2)) (let ((no-coding-system-for-write (quote raw-text))) (write-file fi= le)) (mu4e~proc-add file (or (symbol-value G3) "/"))) --old-handler-- --mai= ldir-- "/tmp/test.maildir/cur/1486485941.759962ca005e4922.eab16011nb:2,S") (lambda (&rest --cl-rest--) (apply (function (lambda (G2 G3 file) (setq m= essage-fcc-handler-function (symbol-value G2)) (let ((no-coding-system-for-= write (quote raw-text))) (write-file file)) (mu4e~proc-add file (or (symbol= -value G3) "/")))) (quote --old-handler--) (quote --maildir--) --cl-rest--)= )("/tmp/test.maildir/cur/1486485941.759962ca005e4922.eab16011nb:2,S") message-do-fcc() message-send(nil) message-send-and-exit(nil) funcall-interactively(message-send-and-exit nil) call-interactively(message-send-and-exit nil nil) command-execute(message-send-and-exit) Note that in the body of the handler I currently have: (let ((no-coding-system-for-write (quote raw-text))) (write-file file)) The no-coding-system-for-write is just for debugging (setting coding-system-for-write to 'raw-text fixes the issue). I don't expect the handler to have to set it explicitly though. In GNU Emacs 26.0.50.4 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2017-02-05 built on eab16011nb Repository revision: 148100d98319499f0ac6f57b8be08cbd14884a5c Windowing system distributor 'The X.Org Foundation', version 11.0.11901000 System Description: Debian GNU/Linux 9.0 (stretch) Recent messages: Quit Mark set [2 times] Configured using: 'configure --with-x-toolkit=3Dlucid --without-gconf --without-gsettings --with-modules 'CFLAGS=3D-O3 -march=3Dnative -pipe ' LDFLAGS=3D-fwhole-program' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 MODULES LIBSYSTEMD Important settings: value of $LC_COLLATE: C value of $LC_TIME: en_DK.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: mu4e-headers Minor modes in effect: hl-line-mode: t show-paren-mode: t global-undo-tree-mode: t undo-tree-mode: t window-numbering-mode: t shell-dirtrack-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: ~/.emacs.d/lisp/epa hides /usr/local/share/emacs/26.0.50/lisp/epa Features: (shadow whitespace flyspell ispell face-remap emacsbug fill-column-indicator minibuffer-complete-cycle shr svg dom dbus xml mu4e desktop frameset mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-context mu4e-view cal-menu calendar cal-loaddefs mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail mu4e-mark mu4e-message flow-fill html2text mu4e-proc mu4e-proc-mu mu4e-utils doc-view jka-compr image-mode mu4e-lists mu4e-vars message subr-x puny rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader hl-line mu4e-meta num3-mode fic-mode dim color-theme-solarized-custom term disp-table ehelp solarized-theme solarized-definitions color-theme wid-edit sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils reporter hlinum linum slime-banner slime-asdf grep slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl slime-parse slime etags xref project arc-mode archive-mode pp hyperspec rst expand-region text-mode-expansions er-basic-expansions expand-region-core expand-region-custom dired-x dired dired-loaddefs modeline-posn indent-guide paren undo-tree diff window-numbering phi-search-mc multiple-cursors mc-hide-unmatched-lines-mode mc-separate-operations rectangular-region-mode mc-mark-pop mc-mark-more mc-cycle-cursors mc-edit-lines multiple-cursors-core rect phi-search phi-search-core edmacro kmacro url-privacy simple-wiki derived volatile-highlights finder-inf doc-mode-autoloads goto-chg-autoloads hide-region-autoloads lemon-mode-autoloads gh-common gh-profile rx s marshal eieio-compat ht json map dash num3-mode-autoloads occur-x-autoloads rainbow-blocks-autoloads rainbow-mode-autoloads tup-mode-autoloads vline-autoloads whole-line-or-region-autoloads info package epg-config url-handlers url-parse url-vars debian-el debian-el-loaddefs w3m-load slime-autoloads org-install ido seq ess-toolbar ess-mouse mouseme thingatpt browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-dde ess-sp3-d ess-julia ess-r-d ess-r-syntax ess-r-completion ess-roxy essddr noutline outline hideshow ess-help ess-r-package ess-s-l ess ess-inf ess-tracebug compile tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete comint ansi-color ring parse-time format-spec advice auth-source cl-seq eieio byte-opt bytecomp byte-compile cl-extra help-mode cconv eieio-core cl-macs eieio-loaddefs password-cache ess-mode ess-noweb-mode ess-utils ess-generics cl gv cl-loaddefs pcase cl-lib ess-custom executable easymenu ess-compat ess-site emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode preview-latex tex-site auto-loads time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 513968 28098) (symbols 48 44131 1) (miscs 40 942 1546) (strings 32 98425 12555) (string-bytes 1 2968654) (vectors 16 60897) (vector-slots 8 1022526 10392) (floats 8 593 133) (intervals 56 761 686) (buffers 976 15)) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 12:20:07 2017 Received: (at 25645) by debbugs.gnu.org; 7 Feb 2017 17:20:07 +0000 Received: from localhost ([127.0.0.1]:59217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb9R1-0004cY-Jj for submit@debbugs.gnu.org; Tue, 07 Feb 2017 12:20:07 -0500 Received: from eggs.gnu.org ([208.118.235.92]:51803) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb9R0-0004bt-FS for 25645@debbugs.gnu.org; Tue, 07 Feb 2017 12:20:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb9Qs-0000aF-14 for 25645@debbugs.gnu.org; Tue, 07 Feb 2017 12:20:01 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb9Qr-0000aB-Tk; Tue, 07 Feb 2017 12:19:57 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1892 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cb9Qq-0006Xl-I7; Tue, 07 Feb 2017 12:19:57 -0500 Date: Tue, 07 Feb 2017 19:19:55 +0200 Message-Id: <83lgth6hqc.fsf@gnu.org> From: Eli Zaretskii To: Yuri D'Elia In-reply-to: <871svax7fy.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Tue, 07 Feb 2017 18:00:01 +0100) Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 References: <871svax7fy.fsf@wavexx.thregr.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Yuri D'Elia > Date: Tue, 07 Feb 2017 18:00:01 +0100 > > Somehow when the mail is encoded in quoted printable with an utf-8 > charset, the buffer seem to contain raw bytes as if the buffer has > an incorrect buffer-file-coding-system. Buffer contents is entirely unrelated to the value of buffer-file-coding-system. The latter only determines how to encode the buffer contents when writing it to a file or sending it to another process or network connection. If you get raw bytes in the buffer, the culprit is in the code which inserted those bytes, or read them from some file. > When 'write-file is issued, emacs prompts for a coding system, which is > unexpected. This is expected when there are raw bytes in the buffer. The problem is elsewhere. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 12:31:22 2017 Received: (at 25645) by debbugs.gnu.org; 7 Feb 2017 17:31:22 +0000 Received: from localhost ([127.0.0.1]:59225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb9bu-0004uT-HZ for submit@debbugs.gnu.org; Tue, 07 Feb 2017 12:31:22 -0500 Received: from e.thregr.org ([80.68.88.20]:33672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb9bt-0004uK-28 for 25645@debbugs.gnu.org; Tue, 07 Feb 2017 12:31:21 -0500 Received: from [2a02:27e8:20:9049:56ee:75ff:fe83:444c] (helo=localhost) by e.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1cb9bn-0008AZ-5e; Tue, 07 Feb 2017 18:31:15 +0100 References: <871svax7fy.fsf@wavexx.thregr.org> <83lgth6hqc.fsf@gnu.org> User-agent: mu4e 0.9.19; emacs 26.0.50.4 From: Yuri D'Elia To: Eli Zaretskii Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 In-reply-to: <83lgth6hqc.fsf@gnu.org> Date: Tue, 07 Feb 2017 18:31:15 +0100 Message-ID: <87y3xhx5zw.fsf@wavexx.thregr.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org, Lars Ingebrigtsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Tue, Feb 07 2017, Eli Zaretskii wrote: > If you get raw bytes in the buffer, the culprit is in the code which > inserted those bytes, or read them from some file. Yes, the content of the buffer is generated by message-encode-message-body in message.el itself. You only need to insert an unicode letter in the message's buffer to trigger the issue when recoding to qp-utf8. I wrote to Lars prior to filing this report (cc-ed). > This is expected when there are raw bytes in the buffer. The problem > is elsewhere. Since the fcc-handler is expected to do something with the buffer (write it out), I expect message.el to preset the buffer coding system if the buffer becomes unibyte in nature. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 07 12:49:32 2017 Received: (at control) by debbugs.gnu.org; 7 Feb 2017 17:49:32 +0000 Received: from localhost ([127.0.0.1]:59230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb9tU-0005KK-3E for submit@debbugs.gnu.org; Tue, 07 Feb 2017 12:49:32 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cb9tS-0005K7-Eq for control@debbugs.gnu.org; Tue, 07 Feb 2017 12:49:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb9tM-00071X-9n for control@debbugs.gnu.org; Tue, 07 Feb 2017 12:49:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb9tM-00071R-70 for control@debbugs.gnu.org; Tue, 07 Feb 2017 12:49:24 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cb9tL-0006xY-Si for control@debbugs.gnu.org; Tue, 07 Feb 2017 12:49:23 -0500 Subject: control message for bug 24655 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 07 Feb 2017 12:49:23 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) block 24655 by 25640 25645 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 02 09:41:09 2017 Received: (at 25645) by debbugs.gnu.org; 2 Sep 2017 13:41:09 +0000 Received: from localhost ([127.0.0.1]:41911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1do8fY-0006v1-Dj for submit@debbugs.gnu.org; Sat, 02 Sep 2017 09:41:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1do8fW-0006uQ-UH for 25645@debbugs.gnu.org; Sat, 02 Sep 2017 09:41:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1do8fM-0000vM-TM for 25645@debbugs.gnu.org; Sat, 02 Sep 2017 09:40:57 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1do8f5-0000az-8x; Sat, 02 Sep 2017 09:40:35 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2192 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1do8f4-0002dB-LK; Sat, 02 Sep 2017 09:40:35 -0400 Date: Sat, 02 Sep 2017 16:40:26 +0300 Message-Id: <83a82dz0ad.fsf@gnu.org> From: Eli Zaretskii To: Yuri D'Elia In-reply-to: <87y3xhx5zw.fsf@wavexx.thregr.org> (message from Yuri D'Elia on Tue, 07 Feb 2017 18:31:15 +0100) Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 References: <871svax7fy.fsf@wavexx.thregr.org> <83lgth6hqc.fsf@gnu.org> <87y3xhx5zw.fsf@wavexx.thregr.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org, larsi@gnus.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Yuri D'Elia > Date: Tue, 07 Feb 2017 18:31:15 +0100 > Cc: 25645@debbugs.gnu.org, Lars Ingebrigtsen > > On Tue, Feb 07 2017, Eli Zaretskii wrote: > > If you get raw bytes in the buffer, the culprit is in the code which > > inserted those bytes, or read them from some file. > > Yes, the content of the buffer is generated by > message-encode-message-body in message.el itself. > > You only need to insert an unicode letter in the message's buffer to > trigger the issue when recoding to qp-utf8. > > I wrote to Lars prior to filing this report (cc-ed). Lars, any news on this issue? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 13 14:16:21 2017 Received: (at 25645) by debbugs.gnu.org; 13 Sep 2017 18:16:21 +0000 Received: from localhost ([127.0.0.1]:38718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsCCz-0003xA-9b for submit@debbugs.gnu.org; Wed, 13 Sep 2017 14:16:21 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:56693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsCCx-0003x1-G3 for 25645@debbugs.gnu.org; Wed, 13 Sep 2017 14:16:19 -0400 Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsCCu-00052j-SR; Wed, 13 Sep 2017 20:16:18 +0200 From: Lars Ingebrigtsen To: Yuri D'Elia Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 References: <871svax7fy.fsf@wavexx.thregr.org> Date: Wed, 13 Sep 2017 20:16:16 +0200 In-Reply-To: <871svax7fy.fsf@wavexx.thregr.org> (Yuri D'Elia's message of "Tue, 07 Feb 2017 18:00:01 +0100") Message-ID: <87fubqea6n.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Yuri D'Elia writes: > It works as expected with emacs 25.2, but fails on 26 when the body > contains unicode characters. Somehow when the mail is encoded in quoted > printable with an utf-8 charset, the buffer seem to contain raw bytes as > if the buffer has an incorrect buffer-file-coding-system. I'm unable to reproduce this bug. If I put Fcc: /tmp/fcc in my headers and enter text like "f=C3=B6o" in the body, the file is saved as it should be. Could the problem be in your handler? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 13 14:16:25 2017 Received: (at control) by debbugs.gnu.org; 13 Sep 2017 18:16:25 +0000 Received: from localhost ([127.0.0.1]:38721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsCD3-0003xR-Gj for submit@debbugs.gnu.org; Wed, 13 Sep 2017 14:16:25 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:56702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsCD1-0003xJ-N8 for control@debbugs.gnu.org; Wed, 13 Sep 2017 14:16:23 -0400 Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsCCz-0005Nc-Hw for control@debbugs.gnu.org; Wed, 13 Sep 2017 20:16:23 +0200 Date: Wed, 13 Sep 2017 20:16:21 +0200 Message-Id: <87efraea6i.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #25645 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tags 25645 unreproducible From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 13 14:17:18 2017 Received: (at 25645) by debbugs.gnu.org; 13 Sep 2017 18:17:18 +0000 Received: from localhost ([127.0.0.1]:38728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsCDt-0003zI-Q1 for submit@debbugs.gnu.org; Wed, 13 Sep 2017 14:17:17 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:56720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsCDs-0003zA-Og for 25645@debbugs.gnu.org; Wed, 13 Sep 2017 14:17:17 -0400 Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsCDq-0000ZR-AO; Wed, 13 Sep 2017 20:17:16 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 References: <871svax7fy.fsf@wavexx.thregr.org> <83lgth6hqc.fsf@gnu.org> <87y3xhx5zw.fsf@wavexx.thregr.org> <83a82dz0ad.fsf@gnu.org> Date: Wed, 13 Sep 2017 20:17:14 +0200 In-Reply-To: <83a82dz0ad.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 02 Sep 2017 16:40:26 +0300") Message-ID: <87a81yea51.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25645 Cc: Yuri D'Elia , 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eli Zaretskii writes: > Lars, any news on this issue? I'm unable to reproduce the error, and I don't think it should block the release, since it doesn't seem to affect many people. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 13 16:18:19 2017 Received: (at 25645) by debbugs.gnu.org; 13 Sep 2017 20:18:19 +0000 Received: from localhost ([127.0.0.1]:38889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsE71-0003xB-9u for submit@debbugs.gnu.org; Wed, 13 Sep 2017 16:18:19 -0400 Received: from erc.thregr.org ([46.43.2.63]:60642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsE6y-0003x1-QG for 25645@debbugs.gnu.org; Wed, 13 Sep 2017 16:18:17 -0400 Received: from [151.38.80.34] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1dsE6s-0007Gl-Qc (envelope-from ); Wed, 13 Sep 2017 22:18:11 +0200 References: <871svax7fy.fsf@wavexx.thregr.org> <87fubqea6n.fsf@mouse.gnus.org> User-agent: mu4e 0.9.19; emacs 26.0.50 From: Yuri D'Elia To: Lars Ingebrigtsen Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 In-reply-to: <87fubqea6n.fsf@mouse.gnus.org> Date: Wed, 13 Sep 2017 22:18:06 +0200 Message-ID: <87tw06s681.fsf@wavexx.thregr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Wed, Sep 13 2017, Lars Ingebrigtsen wrote: >> It works as expected with emacs 25.2, but fails on 26 when the body >> contains unicode characters. Somehow when the mail is encoded in quoted >> printable with an utf-8 charset, the buffer seem to contain raw bytes as >> if the buffer has an incorrect buffer-file-coding-system. > > I'm unable to reproduce this bug. If I put > > Fcc: /tmp/fcc > > in my headers and enter text like "föo" in the body, the file is saved > as it should be. Adding an Fcc is not enough, if you read the initial report, the issue is triggered by attempting to call write-file within a message-fcc-handler-function. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 13 16:35:44 2017 Received: (at 25645) by debbugs.gnu.org; 13 Sep 2017 20:35:44 +0000 Received: from localhost ([127.0.0.1]:38919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsENq-0004OC-PW for submit@debbugs.gnu.org; Wed, 13 Sep 2017 16:35:44 -0400 Received: from hermes.netfonds.no ([80.91.224.195]:59312) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsENn-0004Ny-79 for 25645@debbugs.gnu.org; Wed, 13 Sep 2017 16:35:40 -0400 Received: from cm-84.209.243.26.getinternet.no ([84.209.243.26] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsENh-0005zM-4l; Wed, 13 Sep 2017 22:35:34 +0200 From: Lars Ingebrigtsen To: Yuri D'Elia Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 References: <871svax7fy.fsf@wavexx.thregr.org> <87fubqea6n.fsf@mouse.gnus.org> <87tw06s681.fsf@wavexx.thregr.org> Date: Wed, 13 Sep 2017 22:35:32 +0200 In-Reply-To: <87tw06s681.fsf@wavexx.thregr.org> (Yuri D'Elia's message of "Wed, 13 Sep 2017 22:18:06 +0200") Message-ID: <874ls6cp63.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Yuri D'Elia writes: > Adding an Fcc is not enough, if you read the initial report, the issue > is triggered by attempting to call write-file within a > message-fcc-handler-function. Do you have a minimal recipe that demonstrates the bug? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 13 16:43:29 2017 Received: (at 25645) by debbugs.gnu.org; 13 Sep 2017 20:43:29 +0000 Received: from localhost ([127.0.0.1]:38928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsEVN-0004ZG-9R for submit@debbugs.gnu.org; Wed, 13 Sep 2017 16:43:29 -0400 Received: from erc.thregr.org ([46.43.2.63]:60648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsEVL-0004Z8-Mu for 25645@debbugs.gnu.org; Wed, 13 Sep 2017 16:43:28 -0400 Received: from [151.38.80.34] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1dsEVJ-0007JM-CS (envelope-from ); Wed, 13 Sep 2017 22:43:26 +0200 References: <871svax7fy.fsf@wavexx.thregr.org> <87fubqea6n.fsf@mouse.gnus.org> <87tw06s681.fsf@wavexx.thregr.org> <874ls6cp63.fsf@mouse.gnus.org> User-agent: mu4e 0.9.19; emacs 26.0.50 From: Yuri D'Elia To: Lars Ingebrigtsen Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 In-reply-to: <874ls6cp63.fsf@mouse.gnus.org> Date: Wed, 13 Sep 2017 22:43:19 +0200 Message-ID: <87r2vas520.fsf@wavexx.thregr.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Wed, Sep 13 2017, Lars Ingebrigtsen wrote: > Yuri D'Elia writes: > >> Adding an Fcc is not enough, if you read the initial report, the issue >> is triggered by attempting to call write-file within a >> message-fcc-handler-function. > > Do you have a minimal recipe that demonstrates the bug? My minimal recipe still involves using mu4e at the moment. I can try to make a self-contained test case, but I might need a couple of days. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 06:49:16 2017 Received: (at 25645) by debbugs.gnu.org; 22 Sep 2017 10:49:16 +0000 Received: from localhost ([127.0.0.1]:52297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvLWG-0002e3-KX for submit@debbugs.gnu.org; Fri, 22 Sep 2017 06:49:16 -0400 Received: from erc.thregr.org ([46.43.2.63]:54378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvLWE-0002du-5v for 25645@debbugs.gnu.org; Fri, 22 Sep 2017 06:49:14 -0400 Received: from [2a02:27e8:20:9049:56ee:75ff:fec2:8bfb] (helo=localhost) by erc.thregr.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1dvLW7-0008Hl-UG (envelope-from ); Fri, 22 Sep 2017 12:49:08 +0200 References: <871svax7fy.fsf@wavexx.thregr.org> <83lgth6hqc.fsf@gnu.org> <87y3xhx5zw.fsf@wavexx.thregr.org> <83a82dz0ad.fsf@gnu.org> <87a81yea51.fsf@mouse.gnus.org> <87lgl7tcrn.fsf@gmail.com> User-agent: mu4e 0.9.19; emacs 27.0.50 From: Yuri D'Elia To: Alexis Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 In-reply-to: <87lgl7tcrn.fsf@gmail.com> Date: Fri, 22 Sep 2017 12:49:07 +0200 Message-ID: <87ingbt3do.fsf@wavexx.thregr.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org, Lars Ingebrigtsen , Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) On Fri, Sep 22 2017, Alexis wrote: > i've not yet been able to consistently reproduce it, so haven't yet been > able to narrow down whether the issue is with mu4e or with Emacs. (Maybe > something has changed in Emacs that mu4e needs to become aware of). i'll > try to work on this as soon as i can, unless Yuri is able to produce an > MRE first. :-) I didn't find the time yet. I wanted to make a minimal test case using only message-mode. From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 22 11:31:28 2017 Received: (at 25645) by debbugs.gnu.org; 22 Sep 2017 15:31:28 +0000 Received: from localhost ([127.0.0.1]:53021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvPvI-0002yj-TP for submit@debbugs.gnu.org; Fri, 22 Sep 2017 11:31:28 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:59739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dvILx-0006He-52 for 25645@debbugs.gnu.org; Fri, 22 Sep 2017 03:26:29 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 55EDF20D12; Fri, 22 Sep 2017 03:26:24 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Fri, 22 Sep 2017 03:26:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=0OefJPqcJPeRMtfgPUxpWou/dckEnOZAXJEG07q1x lw=; b=bMJ5Al8xcAEkw9rvkYj4QRxVHz4d1q6kDS8fjTXRCHORbcSRSJSBOoIjG LV1dGLYy8UomB6/+luwxDN5QFcD5FVCaymoUyyZc/k45lzbDRgnQ5ab94oDnmgM1 7muH3XlU8pdGefB8M/oTzK4YcsB0V3Sbzoyv/CTcQGQGwzjXVPTJkSVqoGTnvp8F PIhiRSS6wr576/sL0NXtGnyiSGmRnabynZPqC8lZA9WXua99V3TCp+t3RReIF2NB Y7SVs5Ok0bqD+Aek4kcfWwFV52NpZ9VwGNe2gxs0KrGaJQ4JsOI+QR9rjJyvMiKC rmGMdvy+lPEXjVeDVfRb+97YZCqUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=0OefJPqcJPeRMtfgPU xpWou/dckEnOZAXJEG07q1xlw=; b=OGrXV6vFDrvmHCJSNqW2uBxp6VzCntYDc5 T5pZKbAT5bKI5EF0xwQxSgGz9N6uM9lM9cv78UUvm1ekMDZtuxf/xGKG4j5tZuBL 5o8cJ91nJDa2tUVdMJ2+8HnPr3NLEo8YLyReHkVY+NeQrWDKdftheg5N5cA+kvaX sVyrb3K1Eau0p18Ce8gnr+OfaaRcJDo+0upV/XwFIg/40exNu2aovfk5y+BqawJq kn91U6jgpmisArHaEUkCciu+wXtf1yX2jN7G3VaWr/250XeQoHbCXL1ua4ZBrN12 FuXlwpTkbIycoLDYMZBzgVN2X1WDIsqRA3b30INI/MXt/xIVGDYg== X-ME-Sender: X-Sasl-enc: WvlBs+DU8sMEIlDdyKaPsfH1o/a+HqzJcBjWTDLbsjDU 1506065183 Received: from localhost (capcpe-124-189-167-250.rsqv1.lon.bigpond.net.au [124.189.167.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 979F97E7C5; Fri, 22 Sep 2017 03:26:23 -0400 (EDT) References: <871svax7fy.fsf@wavexx.thregr.org> <83lgth6hqc.fsf@gnu.org> <87y3xhx5zw.fsf@wavexx.thregr.org> <83a82dz0ad.fsf@gnu.org> <87a81yea51.fsf@mouse.gnus.org> User-agent: mu4e 0.9.19; emacs 25.2.1 From: Alexis To: Lars Ingebrigtsen Subject: Re: bug#25645: 26.0.50; message.el: Fcc+handler results in write coding issues in emacs 26 In-reply-to: <87a81yea51.fsf@mouse.gnus.org> Date: Fri, 22 Sep 2017 17:26:20 +1000 Message-ID: <87lgl7tcrn.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 25645 X-Mailman-Approved-At: Fri, 22 Sep 2017 11:31:24 -0400 Cc: Yuri D'Elia , 25645@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Lars Ingebrigtsen writes: > Eli Zaretskii writes: > >> Lars, any news on this issue? > > I'm unable to reproduce the error, and I don't think it should > block > the release, since it doesn't seem to affect many people. In addition to myself, at least several other mu4e users seem to have been affected by this: https://groups.google.com/forum/#!topic/mu-discuss/dIj3W_R-M4A https://groups.google.com/forum/#!topic/mu-discuss/NJgRONE7Xuk https://groups.google.com/forum/#!topic/mu-discuss/MaYcS5uRcsM https://groups.google.com/forum/#!topic/mu-discuss/RC1Scq2wCe4 and maybe: https://groups.google.com/forum/#!topic/mu-discuss/dxfpdcidtoc i've not yet been able to consistently reproduce it, so haven't yet been able to narrow down whether the issue is with mu4e or with Emacs. (Maybe something has changed in Emacs that mu4e needs to become aware of). i'll try to work on this as soon as i can, unless Yuri is able to produce an MRE first. :-) Alexis. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 03 10:27:23 2017 Received: (at 25645) by debbugs.gnu.org; 3 Oct 2017 14:27:23 +0000 Received: from localhost ([127.0.0.1]:46411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzOAM-0002xs-S7 for submit@debbugs.gnu.org; Tue, 03 Oct 2017 10:27:23 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:43857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzOAK-0002xe-G8 for 25645@debbugs.gnu.org; Tue, 03 Oct 2017 10:27:20 -0400 Received: by mail-wr0-f182.google.com with SMTP id p46so3997779wrb.0 for <25645@debbugs.gnu.org>; Tue, 03 Oct 2017 07:27:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=user-agent:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=dzWdduO/jKaU53+kbszE81HIUHmjLq0e6Ehty6LnK3A=; b=CROsYaw8krpczKatra9tKPGr8X6Bf/Sjw+B8KQQpZuxLAmZvBa3x5A+lAzuL5GltbD TJ58DSE6JPg1QDXZYSsYImV4sZrmKU4Rshk/AYZsAHBlyW7gKRJCzyToZWrVEKZkiYw4 nmK7ahG621GPCF3gK53wEP/010DG94lzfv6yQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=dzWdduO/jKaU53+kbszE81HIUHmjLq0e6Ehty6LnK3A=; b=dKVZhe95kT3tLVMYBtceoFhSnfpaub40e6lq7PL5qC1low/rDahDs6eBO5kTPrTn4W XQRaKhPitDSWu8E1wuemKSj5xYAudnwcwQA64OY/cQ30CI55dEDmDo3IipDjxryggbrl QRgIpriEhbWeGPVZ70/NR5x6y4s3Pz1mLg5hTalmoOpaHrNFmuMZiX5fqLaLvh+gwBtZ tP72Po8apl9Ny3Fkvfg6kKZY7+8GAhFJjrwuF7FGHvXT/NzJD0iuKvX1954ZZdZx0hSI qMqSOsvnvSdbA91c+N9cv639Faf+V585HtoFaP0beHWGACeOEg963zDjdiYCNuZL3Rcd pRLA== X-Gm-Message-State: AHPjjUj9GCaZgqt4RvOm8ApLd70DexqWHUsshhpwIf4YILjCOVswyd5f zpG1XLEXlWC1SYo3rL15rM0PcFQG1ns= X-Google-Smtp-Source: AOwi7QDW+oXLrQknzSpOj7Pzk/Nat7Dsx1S2Cf0AywNrV1rEu0+D9/B8DsjYVadEHb8RzX29Py2ZtA== X-Received: by 10.223.199.18 with SMTP id k18mr15667316wrg.145.1507040834056; Tue, 03 Oct 2017 07:27:14 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 4sm15286970wmm.1.2017.10.03.07.27.13 for <25645@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Oct 2017 07:27:13 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id A888B3E01B1 for <25645@debbugs.gnu.org>; Tue, 3 Oct 2017 15:27:12 +0100 (BST) User-agent: mu4e 0.9.19; emacs 26.0.60 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: 25645@debbugs.gnu.org Subject: reproducer? Date: Tue, 03 Oct 2017 15:27:12 +0100 Message-ID: <87a818z4qn.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 25645 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Does this count as a reproducer? (defun bug-25645-reproducer () "Reproducer." (let ((buf (get-buffer-create "*bug25645*"))) (switch-to-buffer buf) (message-mode) (goto-char (point-max)) (insert "\né") (with-temp-buffer (insert-buffer-substring buf) (message-clone-locals buf) (message-encode-message-body) (get-buffer-create "*bug2564-copy*") (copy-to-buffer "*bug2564-copy*" (point-min) (point-max))))) Certainly if I comment out the (message-clone-locals) in message-do-fcc behaviour reverts to pre-emacs26. -- Alex Bennée From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 03 11:37:10 2017 Received: (at 25645) by debbugs.gnu.org; 3 Oct 2017 15:37:11 +0000 Received: from localhost ([127.0.0.1]:46543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzPFu-0006i3-Ns for submit@debbugs.gnu.org; Tue, 03 Oct 2017 11:37:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzPFt-0006hq-0V for 25645@debbugs.gnu.org; Tue, 03 Oct 2017 11:37:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzPFi-00051S-MT for 25645@debbugs.gnu.org; Tue, 03 Oct 2017 11:37:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzPFi-00051E-Iu; Tue, 03 Oct 2017 11:36:58 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2806 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dzPFi-000308-2F; Tue, 03 Oct 2017 11:36:58 -0400 Date: Tue, 03 Oct 2017 18:36:43 +0300 Message-Id: <83efqk1bw4.fsf@gnu.org> From: Eli Zaretskii To: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <87a818z4qn.fsf@linaro.org> (message from Alex =?utf-8?Q?Benn?= =?utf-8?Q?=C3=A9e?= on Tue, 03 Oct 2017 15:27:12 +0100) Subject: Re: bug#25645: reproducer? References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) [Please try to avoid changing the Subject line, as it makes it harder for me finding messages relevant to a single discussion.] > From: Alex Bennée > Date: Tue, 03 Oct 2017 15:27:12 +0100 > > > Does this count as a reproducer? It does, but since you have already established that message-clone-locals is the culprit, the next question is: what is the exact list of local variables that gets cloned here? Can you post the full list? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 03 20:31:49 2017 Received: (at 25645) by debbugs.gnu.org; 4 Oct 2017 00:31:49 +0000 Received: from localhost ([127.0.0.1]:47058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzXbJ-0007kW-1R for submit@debbugs.gnu.org; Tue, 03 Oct 2017 20:31:49 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:48872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzXbG-0007kE-Ns for 25645@debbugs.gnu.org; Tue, 03 Oct 2017 20:31:47 -0400 Received: by mail-wm0-f51.google.com with SMTP id i82so17597473wmd.3 for <25645@debbugs.gnu.org>; Tue, 03 Oct 2017 17:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=iQ+ccrFdMteK2tyl+DF5nv9DThwTZgEXKXdKbh4Hu08=; b=JNZUmOpyLc3Uc98Soo/JC62d+wxPGVNJaiF9u1mxQnd3W256C9GyX5hBQS2cjL4i4R wJFfVsZ+qWxCMZoArmhG5doEN9fWDbmBlSn0uNv1Jk5L9U3Qzc9fgi3h4IkyMlszp9/q qCQKnpdaX/zmEcTuTTIpyDivBQojS1jaRvs+Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=iQ+ccrFdMteK2tyl+DF5nv9DThwTZgEXKXdKbh4Hu08=; b=Vc72R4fAmTuP2IAOiFRsC4oiD/k1ATFvzRrHD3jHsiuWlwNkNBxvkXcIqjHdV+RNeV 7B8ps39UPQGuCdbKObLVl5kpdqNoV/Znc6tDfBFZd3hY48xykXacMgnpwES/WGg7nf73 0T+XYLobhqScrONjVO8Gb59Cv1Ai8x+sFQ3vYYpYBcf4/nLb610tWmMMb7jF1BIKQZxP KOUgWwo8wVu2wx8QuMPKokdlkKivJD/Qt8J7VKqNhOHxvIbO9Of0FYosuhVT9B1NLkZz iRM41nMRmd+Kh55tiPOTsTL6QxR3xFhuewwzvwedIQ6tZwEVobOgJ829hpih4Z/hHcNn NHHg== X-Gm-Message-State: AMCzsaUDltbpuq1qAepzwmX7ulZwf98zF+HoQGsgPrx/LyK4glNOnRvd eHJVNbCiovBJmG/EzlsgiYt5wYC1tF0= X-Google-Smtp-Source: AOwi7QBY/LSb+OAwrVXJsXwtNNGZRd2/1O84ieX3PjlL8mdZWXynLmp3Aql5lcCJ21bIfuQU/JgMTQ== X-Received: by 10.28.130.131 with SMTP id e125mr16498007wmd.125.1507077100757; Tue, 03 Oct 2017 17:31:40 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id m128sm15608821wmf.0.2017.10.03.17.31.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Oct 2017 17:31:39 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 5A6263E02A9; Wed, 4 Oct 2017 01:31:39 +0100 (BST) References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> <83efqk1bw4.fsf@gnu.org> User-agent: mu4e 0.9.19; emacs 26.0.60 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Eli Zaretskii Subject: Re: bug#25645: reproducer? In-reply-to: <83efqk1bw4.fsf@gnu.org> Date: Wed, 04 Oct 2017 01:31:39 +0100 Message-ID: <87r2ujycr8.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Eli Zaretskii writes: > [Please try to avoid changing the Subject line, as it makes it harder > for me finding messages relevant to a single discussion.] Ahh sorry I thought debbugs would munge an appropriate subject when it received the email. > >> From: Alex Bennée >> Date: Tue, 03 Oct 2017 15:27:12 +0100 >> >> >> Does this count as a reproducer? > > It does, but since you have already established that > message-clone-locals is the culprit, the next question is: what is the > exact list of local variables that gets cloned here? Can you post the > full list? Sure. From my message log, it seems we clone locals for that buffer at least twice: Saving file /home/alex/Maildir/drafts/cur/1507076739.4e7e0c7397b19db2.zen:2,DS... Wrote /home/alex/Maildir/drafts/cur/1507076739.4e7e0c7397b19db2.zen:2,DS [mu4e] Saved (10 lines) Sending... message-clone-locals: One more run with dump of copy copying: message-reply-buffer -> nil copying: message-inserted-headers -> nil copying: message-send-actions -> nil copying: message-return-action -> nil copying: message-exit-actions -> nil copying: message-kill-actions -> nil copying: message-postpone-actions -> nil copying: message-draft-article -> nil copying: message-reply-headers -> nil copying: message-newsreader -> nil copying: message-mailer -> nil copying: message-post-method -> (nnspool ) copying: message-sent-message-via -> nil copying: message-checksum -> nil copying: message-mime-part -> 0 copying: message-signature -> my-sig-function copying: message-send-mail-real-function -> nil copying: message-default-charset -> utf-8 copying: message-send-hook -> (#[nil \302=\203 .\303 \210 \203.\304 \210\305\306!\210\307 \210\310 \210~\207 [mu4e-compose-type use-hard-newlines reply mu4e~remove-refs-maybe mu4e-send-harden-newlines set-buffer-modified-p t save-buffer mu4e~compose-setup-fcc-maybe] 2] t) copying: message-sent-hook -> (#[nil \302.\303\304 "\207 [mu4e-sent-func mu4e~draft-drafts-folder mu4e-sent-handler mu4e~proc-sent buffer-file-name] 3] t) Mark set [2 times] Sending via mail... Sending email Sending email done message-clone-locals: One more run with dump of copy copying: message-reply-buffer -> nil copying: message-inserted-headers -> (Message-ID Date) copying: message-send-actions -> nil copying: message-return-action -> nil copying: message-exit-actions -> nil copying: message-kill-actions -> nil copying: message-postpone-actions -> nil copying: message-draft-article -> nil copying: message-reply-headers -> nil copying: message-newsreader -> nil copying: message-mailer -> nil copying: message-post-method -> (nnspool ) copying: message-sent-message-via -> (mail) copying: message-checksum -> nil copying: message-mime-part -> 0 copying: message-signature -> my-sig-function copying: message-send-mail-real-function -> nil copying: message-default-charset -> utf-8 copying: message-send-hook -> (#[nil \302=\203 .\303 \210 \203.\304 \210\305\306!\210\307 \210\310 \210~\207 [mu4e-compose-type use-hard-newlines reply mu4e~remove-refs-maybe mu4e-send-harden-newlines set-buffer-modified-p t save-buffer mu4e~compose-setup-fcc-maybe] 2] t) copying: message-sent-hook -> (#[nil \302.\303\304 "\207 [mu4e-sent-func mu4e~draft-drafts-folder mu4e-sent-handler mu4e~proc-sent buffer-file-name] 3] t) Mark set Saving file /home/alex/Maildir/sent/cur/1507076775.116ee70c083a9def.zen:2,S... -- Alex Bennée From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 04 01:51:27 2017 Received: (at 25645) by debbugs.gnu.org; 4 Oct 2017 05:51:27 +0000 Received: from localhost ([127.0.0.1]:47228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzcad-0007f6-94 for submit@debbugs.gnu.org; Wed, 04 Oct 2017 01:51:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzcab-0007eq-SG for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 01:51:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzcaS-0004aI-1D for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 01:51:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzcaR-0004Zi-Tz; Wed, 04 Oct 2017 01:51:15 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3587 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dzcaR-00065Y-Bt; Wed, 04 Oct 2017 01:51:15 -0400 Date: Wed, 04 Oct 2017 08:51:01 +0300 Message-Id: <83k20bzcje.fsf@gnu.org> From: Eli Zaretskii To: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <87r2ujycr8.fsf@linaro.org> (message from Alex =?utf-8?Q?Benn?= =?utf-8?Q?=C3=A9e?= on Wed, 04 Oct 2017 01:31:39 +0100) Subject: Re: bug#25645: reproducer? References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> <83efqk1bw4.fsf@gnu.org> <87r2ujycr8.fsf@linaro.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Alex Bennée > Cc: 25645@debbugs.gnu.org > Date: Wed, 04 Oct 2017 01:31:39 +0100 > > copying: message-default-charset -> utf-8 A stab in the dark: what if you filter out message-default-charset from the cloned locals? From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 04 04:46:26 2017 Received: (at 25645) by debbugs.gnu.org; 4 Oct 2017 08:46:26 +0000 Received: from localhost ([127.0.0.1]:47467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfJy-00042h-0q for submit@debbugs.gnu.org; Wed, 04 Oct 2017 04:46:26 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:48063) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfJw-00042U-NG for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 04:46:25 -0400 Received: by mail-wm0-f47.google.com with SMTP id t69so21237615wmt.2 for <25645@debbugs.gnu.org>; Wed, 04 Oct 2017 01:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=7zZNZ3r5K44YjC+7EPwLfvjHmYP3VbH4Uu4VLKtvrb8=; b=d8YU2m2aaCuwXNZaNU/5mUENXS7t+NevD2cC2h0HldBk91LIxZah4XOzdeuV6lJqeq oPysPV+rf0LxqXvnpAFvb7ErKWqZoaT5Xal8umeI/PVO7n/oCEWz1xPPhqjaYvJ01T+Q cbT50oYIpuYJKttG1qCYUe3OXrnwoggNOCKGE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=7zZNZ3r5K44YjC+7EPwLfvjHmYP3VbH4Uu4VLKtvrb8=; b=BruuiN5LlNXeMLsugTXz+EU2Uq1rIvFEG0J9LYyHHvZPsuCj2DyrEBkaWg1BO89Akl HY9HMXWP/M4kjRgDkUBON0Xkgnhrg98yC2deQIVXpPiYmLVYZzfXTGRZyqeV7u0P7ktz u1rdelGJoD8M5x3jLbWICCA48PRSfvX+p7Z1CeDemBkIyZ+nMj79FZwzhcdq2dbhIMGM 6ZqZOTglfv/UvsQhPRLWBSRWwx12VldBI0NrGQ+Z78wLY2fpU6N3p69afzMJlJGLN41p wahLgUWp0X/njy99gBc14IL3x1dXg5Lsnju93K8siVJRWwK69j4TrmupaV44NaHn22uD T5hQ== X-Gm-Message-State: AHPjjUiD0BxxXOJtB1Hb0aTgdaEzPIXoV50OggkKv4+xeyHWDex7WAIe ZzzCKWdIF2NTUFvYFOmWOIhm64Ov6F0= X-Google-Smtp-Source: AOwi7QBwEJ7l4WvEg0p6dix3HyEDWTx4A6O8zlfUOTwwwOAQSBopjbnim28JDcoCS+Tq8/+kTPQsxQ== X-Received: by 10.28.9.130 with SMTP id 124mr13332524wmj.65.1507106778287; Wed, 04 Oct 2017 01:46:18 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id c37sm2069477wra.73.2017.10.04.01.46.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 01:46:17 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTPS id 2E3623E01C7; Wed, 4 Oct 2017 09:46:17 +0100 (BST) References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> <83efqk1bw4.fsf@gnu.org> <87r2ujycr8.fsf@linaro.org> <83k20bzcje.fsf@gnu.org> User-agent: mu4e 0.9.19; emacs 26.0.60 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Eli Zaretskii Subject: Re: bug#25645: reproducer? In-reply-to: <83k20bzcje.fsf@gnu.org> Date: Wed, 04 Oct 2017 09:46:17 +0100 Message-ID: <87o9pnxpuu.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Eli Zaretskii writes: >> From: Alex Benn=C3=A9e >> Cc: 25645@debbugs.gnu.org >> Date: Wed, 04 Oct 2017 01:31:39 +0100 >> >> copying: message-default-charset -> utf-8 > > A stab in the dark: what if you filter out message-default-charset > from the cloned locals? Good guess: (defun message-clone-locals (buffer &optional varstr) "Clone the local variables from BUFFER to the current buffer." (message "message-clone-locals: %s" buffer) (let ((locals (with-current-buffer buffer (buffer-local-variables))) (regexp "^gnus\\|^nn\\|^message\\|^sendmail\\|^smtp\\|^user-mail-address")) (mapcar (lambda (local) (when (and (consp local) (car local) (string-match regexp (symbol-name (car local))) (or (null varstr) (string-match varstr (symbol-name (car local))))) (ignore-errors (unless (string-match "message-default-charset" (symbol-name (ca= r local))) (message "copying: %s -> %s" (car local) (cdr local)) (set (make-local-variable (car local)) (cdr local)))))) locals))) Although I feel a slightly neater solution is needed. So is the problem we are attempting to double encode an already encoded buffer or something else? -- Alex Benn=C3=A9e From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 04 05:27:28 2017 Received: (at 25645) by debbugs.gnu.org; 4 Oct 2017 09:27:28 +0000 Received: from localhost ([127.0.0.1]:47527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfxg-00056C-Du for submit@debbugs.gnu.org; Wed, 04 Oct 2017 05:27:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzfxe-00055x-1L for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 05:27:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzfxV-0003Nu-R5 for 25645@debbugs.gnu.org; Wed, 04 Oct 2017 05:27:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzfxV-0003NR-Nr; Wed, 04 Oct 2017 05:27:17 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4041 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dzfxV-0008Ch-1P; Wed, 04 Oct 2017 05:27:17 -0400 Date: Wed, 04 Oct 2017 12:27:04 +0300 Message-Id: <83376zz2jb.fsf@gnu.org> From: Eli Zaretskii To: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <87o9pnxpuu.fsf@linaro.org> (message from Alex =?utf-8?Q?Benn?= =?utf-8?Q?=C3=A9e?= on Wed, 04 Oct 2017 09:46:17 +0100) Subject: Re: bug#25645: reproducer? References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> <83efqk1bw4.fsf@gnu.org> <87r2ujycr8.fsf@linaro.org> <83k20bzcje.fsf@gnu.org> <87o9pnxpuu.fsf@linaro.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25645 Cc: 25645@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Alex Bennée > Cc: 25645@debbugs.gnu.org > Date: Wed, 04 Oct 2017 09:46:17 +0100 > > > A stab in the dark: what if you filter out message-default-charset > > from the cloned locals? > > Good guess: > > (defun message-clone-locals (buffer &optional varstr) > "Clone the local variables from BUFFER to the current buffer." > (message "message-clone-locals: %s" buffer) > (let ((locals (with-current-buffer buffer (buffer-local-variables))) > (regexp "^gnus\\|^nn\\|^message\\|^sendmail\\|^smtp\\|^user-mail-address")) > (mapcar > (lambda (local) > (when (and (consp local) > (car local) > (string-match regexp (symbol-name (car local))) > (or (null varstr) > (string-match varstr (symbol-name (car local))))) > (ignore-errors > (unless (string-match "message-default-charset" (symbol-name (car local))) > (message "copying: %s -> %s" (car local) (cdr local)) > (set (make-local-variable (car local)) > (cdr local)))))) > locals))) > > Although I feel a slightly neater solution is needed. Hmm... what is non-neat about this one? The existing filtering already includes quite a bit of ad-hoc'ery. > So is the problem we are attempting to double encode an already encoded > buffer or something else? Something like that. I could look deeper, if needed, but frankly the thick forest of Gnus encoding-related stuff is not something I like to wander into. It's easy to break things there because effects are not localized. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 09 09:48:01 2017 Received: (at 25645-done) by debbugs.gnu.org; 9 Oct 2017 13:48:01 +0000 Received: from localhost ([127.0.0.1]:57355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1YPZ-000384-Jp for submit@debbugs.gnu.org; Mon, 09 Oct 2017 09:48:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1YPX-00037r-R8 for 25645-done@debbugs.gnu.org; Mon, 09 Oct 2017 09:48:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1YPP-0003Y8-4B for 25645-done@debbugs.gnu.org; Mon, 09 Oct 2017 09:47:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1YPP-0003Y2-0x; Mon, 09 Oct 2017 09:47:51 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4980 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e1YPO-0003Bo-F8; Mon, 09 Oct 2017 09:47:50 -0400 Date: Mon, 09 Oct 2017 16:47:37 +0300 Message-Id: <83vajoqvpi.fsf@gnu.org> From: Eli Zaretskii To: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: <87o9pnxpuu.fsf@linaro.org> (message from Alex =?utf-8?Q?Benn?= =?utf-8?Q?=C3=A9e?= on Wed, 04 Oct 2017 09:46:17 +0100) Subject: Re: bug#25645: reproducer? References: <871svax7fy.fsf@wavexx.thregr.org> <87a818z4qn.fsf@linaro.org> <83efqk1bw4.fsf@gnu.org> <87r2ujycr8.fsf@linaro.org> <83k20bzcje.fsf@gnu.org> <87o9pnxpuu.fsf@linaro.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 25645-done Cc: 25645-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: Alex Bennée > Cc: 25645@debbugs.gnu.org > Date: Wed, 04 Oct 2017 09:46:17 +0100 > > > A stab in the dark: what if you filter out message-default-charset > > from the cloned locals? > > Good guess: > > (defun message-clone-locals (buffer &optional varstr) > "Clone the local variables from BUFFER to the current buffer." > (message "message-clone-locals: %s" buffer) > (let ((locals (with-current-buffer buffer (buffer-local-variables))) > (regexp "^gnus\\|^nn\\|^message\\|^sendmail\\|^smtp\\|^user-mail-address")) > (mapcar > (lambda (local) > (when (and (consp local) > (car local) > (string-match regexp (symbol-name (car local))) > (or (null varstr) > (string-match varstr (symbol-name (car local))))) > (ignore-errors > (unless (string-match "message-default-charset" (symbol-name (car local))) > (message "copying: %s -> %s" (car local) (cdr local)) > (set (make-local-variable (car local)) > (cdr local)))))) > locals))) Thanks, I installed this, and I'm marking the bug done. From unknown Mon Aug 18 14:20:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 07 Nov 2017 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator