From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 10:17:07 2022 Received: (at submit) by debbugs.gnu.org; 21 Jan 2022 15:17:07 +0000 Received: from localhost ([127.0.0.1]:34898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAvf0-0000UZ-MC for submit@debbugs.gnu.org; Fri, 21 Jan 2022 10:17:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:38032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAvew-0000R3-De for submit@debbugs.gnu.org; Fri, 21 Jan 2022 10:17:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAvew-00073A-6E for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 10:17:02 -0500 Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:49359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAveq-0006Vd-5x for bug-gnu-emacs@gnu.org; Fri, 21 Jan 2022 10:17:01 -0500 Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 0415E10B293 for ; Fri, 21 Jan 2022 16:16:16 +0100 (CET) Message-Id: <87r19186gw.fsf@tucano.isti.cnr.it> From: =?utf-8?Q?Francesco_Potort=C3=AC?= Date: Fri, 21 Jan 2022 16:16:15 +0100 To: bug-gnu-emacs@gnu.org Subject: 27.1; sendmail does not wrap overlong lines Organization: The GNU project X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <20220121151616.11827.2067@plesklin7.if1.ehiweb.it> X-PPP-Vhost: potorti.it Received-SPF: softfail client-ip=79.98.45.16; envelope-from=pot@gnu.org; helo=plesklin7.if1.ehiweb.it X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: -3.3 (---) I use sendmail-user-agent (rather than message-user-agent) to send email. I have mml-mode in the mail-mode-hook. When I have overlong lines (> 1000 characters) Emacs should wrap them, as they are not allowed in SMTP. This should be standard behaviour, but it is not. Digging in the source, I found mm-use-ultra-safe-encoding, which should do that (among other things). By the way, its doc string says that long lines are wrapped to prevent broken email servers from breaking; that's inaccurate: overlong lines are prohibited. However I tried to set it, mm-use-ultra-safe-encoding is ignored, I have not understood how it should be set. I worked around it by (add-hook 'mail-send-hook (lambda () (and (mm-long-lines-p 1000) (mml-to-mime)))) ; break overlong lines but breaking overlong lines should be the normal behaviour, not a user option to be explicitly activated. In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2021-11-27, modified by Debian built on x86-csail-01 Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: Debian GNU/Linux bookworm/sid Recent messages: Quit [7 times] Auto-saving...done Auto save file for draft message exists; consider M-x mail-recover You can run the command ‘mml-validate’ with C-c RET v Beginning of buffer scroll-signal-boundary-error: Beginning of buffer Auto-saving... Type C-x 1 to delete the help window, C-M-v to scroll help. Quit Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd --with-pop=yes --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-mailutils --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gsettings 'CFLAGS=-g -O2 -ffile-prefix-map=/build/emacs-fQHadv/emacs-27.1+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_COLLATE: it_IT.UTF-8 value of $LC_CTYPE: it_IT.UTF-8 value of $LC_NUMERIC: C value of $LANG: C.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: desktop-save-mode: t epa-global-mail-mode: t shell-dirtrack-mode: t openwith-mode: t xterm-mouse-mode: t display-time-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Load-path shadows: ~/elisp/bhl hides /usr/share/emacs/site-lisp/bhl /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-autoloads hides /usr/share/emacs/site-lisp/elpa/gnuplot-mode-20141231/debian-autoloads /usr/share/emacs/site-lisp/elpa/cmake-mode-3.22.1/cmake-mode hides /usr/share/emacs/site-lisp/elpa-src/cmake-mode-3.22.1/cmake-mode /usr/share/emacs/site-lisp/elpa/cmake-mode-3.22.1/cmake-mode-pkg hides /usr/share/emacs/site-lisp/elpa-src/cmake-mode-3.22.1/cmake-mode-pkg /usr/share/emacs/site-lisp/elpa/cmake-mode-3.22.1/cmake-mode-autoloads hides /usr/share/emacs/site-lisp/elpa-src/cmake-mode-3.22.1/cmake-mode-autoloads /usr/share/emacs/site-lisp/elpa/csv-mode-1.18/csv-mode-pkg hides /usr/share/emacs/site-lisp/elpa-src/csv-mode-1.18/csv-mode-pkg /usr/share/emacs/site-lisp/elpa/csv-mode-1.18/csv-mode hides /usr/share/emacs/site-lisp/elpa-src/csv-mode-1.18/csv-mode /usr/share/emacs/site-lisp/elpa/csv-mode-1.18/csv-mode-tests hides /usr/share/emacs/site-lisp/elpa-src/csv-mode-1.18/csv-mode-tests /usr/share/emacs/site-lisp/elpa/csv-mode-1.18/csv-mode-autoloads hides /usr/share/emacs/site-lisp/elpa-src/csv-mode-1.18/csv-mode-autoloads /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el /usr/share/emacs/site-lisp/elpa/debian-el-37/gnus-BTS hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/gnus-BTS /usr/share/emacs/site-lisp/elpa/debian-el-37/preseed hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/preseed /usr/share/emacs/site-lisp/elpa/debian-el-37/deb-view hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/deb-view /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el-autoloads hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el-autoloads /usr/share/emacs/site-lisp/elpa/debian-el-37/apt-utils hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/apt-utils /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-bug hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-bug /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-el-pkg hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-el-pkg /usr/share/emacs/site-lisp/elpa/debian-el-37/apt-sources hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/apt-sources /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-autoloads hides /usr/share/emacs/site-lisp/elpa-src/debian-el-37/debian-autoloads /usr/share/emacs/site-lisp/elpa/dictionary-1.10/dictionary hides /usr/share/emacs/site-lisp/elpa-src/dictionary-1.10/dictionary /usr/share/emacs/site-lisp/elpa/dictionary-1.10/link hides /usr/share/emacs/site-lisp/elpa-src/dictionary-1.10/link /usr/share/emacs/site-lisp/elpa/dictionary-1.10/dictionary-pkg hides /usr/share/emacs/site-lisp/elpa-src/dictionary-1.10/dictionary-pkg /usr/share/emacs/site-lisp/elpa/dictionary-1.10/dictionary-autoloads hides /usr/share/emacs/site-lisp/elpa-src/dictionary-1.10/dictionary-autoloads /usr/share/emacs/site-lisp/elpa/dictionary-1.10/connection hides /usr/share/emacs/site-lisp/elpa-src/dictionary-1.10/connection /usr/share/emacs/site-lisp/elpa/gnuplot-mode-20141231/gnuplot hides /usr/share/emacs/site-lisp/elpa-src/gnuplot-mode-20141231/gnuplot /usr/share/emacs/site-lisp/elpa/gnuplot-mode-20141231/gnuplot-mode-pkg hides /usr/share/emacs/site-lisp/elpa-src/gnuplot-mode-20141231/gnuplot-mode-pkg /usr/share/emacs/site-lisp/elpa/debian-el-37/debian-autoloads hides /usr/share/emacs/site-lisp/elpa-src/gnuplot-mode-20141231/debian-autoloads /usr/share/emacs/site-lisp/elpa/gnuplot-mode-20141231/gnuplot-context hides /usr/share/emacs/site-lisp/elpa-src/gnuplot-mode-20141231/gnuplot-context /usr/share/emacs/site-lisp/elpa/gnuplot-mode-20141231/gnuplot-gui hides /usr/share/emacs/site-lisp/elpa-src/gnuplot-mode-20141231/gnuplot-gui /usr/share/emacs/site-lisp/elpa/gnuplot-mode-20141231/gnuplot-mode-autoloads hides /usr/share/emacs/site-lisp/elpa-src/gnuplot-mode-20141231/gnuplot-mode-autoloads /usr/share/emacs/site-lisp/elpa/markdown-mode-2.4/markdown-mode-autoloads hides /usr/share/emacs/site-lisp/elpa-src/markdown-mode-2.4/markdown-mode-autoloads /usr/share/emacs/site-lisp/elpa/markdown-mode-2.4/markdown-mode hides /usr/share/emacs/site-lisp/elpa-src/markdown-mode-2.4/markdown-mode /usr/share/emacs/site-lisp/elpa/markdown-mode-2.4/markdown-mode-pkg hides /usr/share/emacs/site-lisp/elpa-src/markdown-mode-2.4/markdown-mode-pkg ~/elisp/bibtex hides /usr/share/emacs/27.1/lisp/textmodes/bibtex ~/elisp/octave hides /usr/share/emacs/27.1/lisp/progmodes/octave /usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/27.1/lisp/net/sasl Features: (shadow emacsbug pp cl-print debug backtrace repeat grep eieio-opt speedbar sb-image ezimage dframe find-func help-fns radix-tree dabbrev iso-transl rmailsort wdired w3m-filter w3m-form w3m-cookie w3m-bookmark w3m-tabmenu w3m-session w3m-search tabify warnings mailalias dired-aux tramp-cache misearch multi-isearch rmailedit rmailout rmailkwd shr-color time-stamp cl-extra server qp cal-julian solar cal-dst conf-mode python tramp-sh vc-dir ewoc vc mhtml-mode css-mode eww mm-url gnus nnheader url-queue url url-proxy url-privacy url-expand url-methods url-history shr url-cookie url-domsuf url-util svg xml js imenu sgml-mode dom bibtex generic sh-script executable make-mode gud bug-reference cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs tex-mode compile vc-dispatcher vc-svn vc-filewise vc-rcs octave texinfo pcase smie vc-git diff-mode rmailmm message rmc puny rfc822 mml mml-sec gnus-util text-property-search mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231 markdown-mode rx color noutline outline easy-mmode desktop frameset pot skeleton rmailsum rmail rmail-loaddefs w3m mailcap doc-view image-mode exif timezone w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-favicon w3m-image tab-line w3m-proc w3m-util ffap thingatpt ange-ftp sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr epa-mail mail-utils epa derived epg epg-config view mule-util holidays hol-loaddefs appt diary-lib diary-loaddefs cal-menu calendar cal-loaddefs tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ring parse-time iso8601 time-date ls-lisp format-spec bhl visual-fill-column openwith switch-to-shell hi-lock anything-config anything advice woman man cl locate xt-mouse scroll-in-place filladapt ansi-color time jka-compr quail help-mode dired-x dired dired-loaddefs generic-x shell-apt disp-table finder-inf w3m-load info debian-el package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads dbusbind inotify lcms2 dynamic-setting font-render-setting x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 717143 274029) (symbols 48 42375 1) (strings 32 201218 11566) (string-bytes 1 5486048) (vectors 16 54011) (vector-slots 8 1886696 294498) (floats 8 735 643) (intervals 56 114279 81) (buffers 1000 172)) From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 14:25:10 2022 Received: (at 53412) by debbugs.gnu.org; 21 Jan 2022 19:25:10 +0000 Received: from localhost ([127.0.0.1]:35096 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAzX3-0007pv-S0 for submit@debbugs.gnu.org; Fri, 21 Jan 2022 14:25:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAzWz-0007pE-Vr for 53412@debbugs.gnu.org; Fri, 21 Jan 2022 14:25:07 -0500 Received: from [2001:470:142:3::e] (port=50554 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAzWu-0005eI-Mm; Fri, 21 Jan 2022 14:25:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=e+btLCDKrp0TvQWABC2jxjnRF04J50g0KsG6iuXO/bQ=; b=ClHYiCAZe73mSYp5QUaz ucL7usZr7Q5mTsc14fUklO5MIu6mW6PRAKQiMprNTrTGKtk+OB2xy6f4WkF/ewjbbPA2cCkbhIrOI aemklqqmT6FM/cn5/RspRpyIiQXFcl8FrjF1kTPQ5411CYSMMPVsyGgvjvt8OEERvxTKr75xaX/y/ V31kaz+kNJg9dROQMkAathyuCiUQWxapEDft9JOIVaob+3DwtZ7GLj3Crv0kqpgNU2NwjLcyYAzsw nwnDZfukzTRLupujDcrmB6Y+uvdFYmQjDB848HTmj52r1kARIfS72+s+voeOQD01CvXRAfFGyJZTe XnRgefmJakbAFQ==; Received: from [87.69.77.57] (port=3695 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAzWu-0000eK-R0; Fri, 21 Jan 2022 14:25:01 -0500 Date: Fri, 21 Jan 2022 21:24:53 +0200 Message-Id: <83ilucopru.fsf@gnu.org> From: Eli Zaretskii To: Francesco =?utf-8?Q?Potort=C3=AC?= In-Reply-To: <87r19186gw.fsf@tucano.isti.cnr.it> (message from Francesco =?utf-8?Q?Potort=C3=AC?= on Fri, 21 Jan 2022 16:16:15 +0100) Subject: Re: bug#53412: 27.1; sendmail does not wrap overlong lines References: <87r19186gw.fsf@tucano.isti.cnr.it> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53412 Cc: 53412@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: -3.3 (---) > From: Francesco Potortì > Date: Fri, 21 Jan 2022 16:16:15 +0100 > > I use sendmail-user-agent (rather than message-user-agent) to send > email. I have mml-mode in the mail-mode-hook. When I have overlong > lines (> 1000 characters) Emacs should wrap them, as they are not > allowed in SMTP. This should be standard behaviour, but it is not. Feel free to submit patches to that effect. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 22 07:03:28 2022 Received: (at control) by debbugs.gnu.org; 22 Jan 2022 12:03:28 +0000 Received: from localhost ([127.0.0.1]:35939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBF79-0003rY-T7 for submit@debbugs.gnu.org; Sat, 22 Jan 2022 07:03:28 -0500 Received: from quimby.gnus.org ([95.216.78.240]:45396) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBF6v-0003r6-Qh for control@debbugs.gnu.org; Sat, 22 Jan 2022 07:03:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oAleu0tUnuuPmuSmaERD3HI2xwnBUMxPkEPJuyxtmDQ=; b=MGeDpIQJY8RglSskM9LOpXDbBD AOcYZ3Kq3f4kuKlqwQNpFMco3cSFnrpKxPhtSY8cG7cxhaKHbFxpt9XHjs80TfKpJiESkwafoqYUo HqAixj47DiRajFdS7l6K/b/ChdnuZ11YHAShXUXg9KdHHP/lCDB71H5vULdgJ39pe+5s=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBF6n-0004yN-1N for control@debbugs.gnu.org; Sat, 22 Jan 2022 13:03:07 +0100 Date: Sat, 22 Jan 2022 13:03:04 +0100 Message-Id: <87ee50j7uv.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53412 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 53412 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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: -3.3 (---) tags 53412 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 20 07:42:33 2022 Received: (at 53412) by debbugs.gnu.org; 20 Feb 2022 12:42:33 +0000 Received: from localhost ([127.0.0.1]:59514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLlXt-00067R-CS for submit@debbugs.gnu.org; Sun, 20 Feb 2022 07:42:33 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLlXo-000677-MX for 53412@debbugs.gnu.org; Sun, 20 Feb 2022 07:42:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=fEno0A+dKZTNm93Uyi5C8xHSjfqvXFkEh018fjdFvAI=; b=JO7/+VK1X7ejlMjIe4071p0dAk eSOaAWjTEXVbw8pkB/FOzW3LIiyqBXReFwPSu/spnSXkUpW7QkKytnRx/yQmZPiEj2N8hbQZ3c1yM 0qXnv7QYjZEE47eIvkz9wBd3gGnX1dCpaCPhZKRQiNqoLgnUBUR84qLYO8jY2RIc4jm4=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nLlXf-0001kw-Gn; Sun, 20 Feb 2022 13:42:22 +0100 From: Lars Ingebrigtsen To: Francesco =?utf-8?Q?Potort=C3=AC?= Subject: Re: bug#53412: 27.1; sendmail does not wrap overlong lines References: <87r19186gw.fsf@tucano.isti.cnr.it> X-Now-Playing: Meat Beat Manifesto's _Storm the Studio_: "Strap Down (Part 2)" Date: Sun, 20 Feb 2022 13:42:19 +0100 In-Reply-To: <87r19186gw.fsf@tucano.isti.cnr.it> ("Francesco =?utf-8?Q?Pot?= =?utf-8?Q?ort=C3=AC=22's?= message of "Fri, 21 Jan 2022 16:16:15 +0100") Message-ID: <871qzxvhec.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Francesco Potortì writes: > However I tried to set it, mm-use-ultra-safe-encoding is ignored, I have > not understood how it should be set. I worked around it by > > (add-hook 'mail-send-hook > (lambda () (and (mm-long-lines-p [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53412 Cc: 53412@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: -3.3 (---) Francesco Potort=C3=AC writes: > However I tried to set it, mm-use-ultra-safe-encoding is ignored, I have > not understood how it should be set. I worked around it by > > (add-hook 'mail-send-hook > (lambda () (and (mm-long-lines-p 1000) > (mml-to-mime)))) ; break overlong lines > > but breaking overlong lines should be the normal behaviour, not a user > option to be explicitly activated. I've now done something similar in `mail-send' in Emacs 29. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 20 07:42:38 2022 Received: (at control) by debbugs.gnu.org; 20 Feb 2022 12:42:38 +0000 Received: from localhost ([127.0.0.1]:59517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLlXy-00067i-KK for submit@debbugs.gnu.org; Sun, 20 Feb 2022 07:42:38 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLlXx-00067K-3r for control@debbugs.gnu.org; Sun, 20 Feb 2022 07:42:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LFWc1LTXDaAZSYX6NyHlJWFN0Bcn+bjuuskDP5M6cLk=; b=EpaiPdIDEzukdye5czS21bi3RA aE4Kg/UhQ2sJCrTGTA+Sef9FcKA6CE1D9REs+mRzrRYRTnV3AR4QXGuPdl2kaxrV1cZblBSE8+HuM W9cUuqKh3VJulOngpTKjNO/R02tWDyiOdWZiSiA09+Lpv+eRr71VAbPAuYA11VY4Dtyc=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nLlXo-0001l4-R1 for control@debbugs.gnu.org; Sun, 20 Feb 2022 13:42:31 +0100 Date: Sun, 20 Feb 2022 13:42:28 +0100 Message-Id: <87zgmlu2tn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53412 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 53412 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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: -3.3 (---) close 53412 29.1 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 07:35:59 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 12:35:59 +0000 Received: from localhost ([127.0.0.1]:52707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRCal-0007PK-73 for submit@debbugs.gnu.org; Mon, 07 Mar 2022 07:35:59 -0500 Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:52807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRCaj-0007P9-Bi for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 07:35:57 -0500 Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id AE968109847 for <53412@debbugs.gnu.org>; Mon, 7 Mar 2022 13:35:52 +0100 (CET) Message-Id: <877d96os7r.fsf@tucano.isti.cnr.it> From: =?utf-8?Q?Francesco_Potort=C3=AC?= Date: Mon, 07 Mar 2022 13:35:52 +0100 To: 53412@debbugs.gnu.org Subject: wrappin text lines is not enough, headers shoould be split too Organization: The GNU project X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <20220307123552.9047.85353@plesklin7.if1.ehiweb.it> X-PPP-Vhost: potorti.it X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53412 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 (/) I just discovered that checking overlong text lines is not enough. Apparently calling mml-to-mime is not enough when the overlong line is a header. If there is an overlong header, other headers which are utf-8 escaped are not sent correctly, and the recipent sees something like this: Subject: test =?utf-8?Q?=C3=A0?= b c =?utf-8?Q?=C3=AC?= RFC 5322 mandates header line lengths less than 998, including CRLF, and this is apparently not enforced by mml-to-mime. Sending an identical email with long headers split into several lines makes the problem disappear. I do not know where the culprit is and I do not have a workaround :( From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 08:11:19 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 13:11:19 +0000 Received: from localhost ([127.0.0.1]:52723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRD8x-0008Fz-Ie for submit@debbugs.gnu.org; Mon, 07 Mar 2022 08:11:19 -0500 Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:34559) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRD8w-0008Fp-FO for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 08:11:19 -0500 Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 53CAE109847 for <53412@debbugs.gnu.org>; Mon, 7 Mar 2022 14:11:14 +0100 (CET) Message-Id: <875yopq559.fsf@tucano.isti.cnr.it> From: =?utf-8?Q?Francesco_Potort=C3=AC?= Date: Mon, 07 Mar 2022 14:11:14 +0100 To: 53412@debbugs.gnu.org Subject: wrappin text lines is not enough, headers shoould be split too Organization: The GNU project X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <20220307131114.22880.90633@plesklin7.if1.ehiweb.it> X-PPP-Vhost: potorti.it X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53412 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 (/) I just discovered that checking overlong text lines is not enough. Apparently calling mml-to-mime does not wrap overlong headers. If there is an overlong header, other headers which are utf-8 escaped are not sent correctly, and the recipient sees something like this: Subject: test =?utf-8?Q?=C3=A0?= b c =?utf-8?Q?=C3=AC?= Sending an identical email with long headers split into several lines makes the problem disappear. RFC 5322 mandates mail line lengths less than 998 (including CRLF), and this is apparently not enforced by mml-to-mime for headers, I suppose it should. My current workaround is: (setq overlength 500) ; should by 998 including CRLF (setq overlong-header-message "Overlong header at point: abort sending email.") (add-hook 'mail-send-hook ;; should become useless with Emacs 29 (lambda () (and (mm-long-lines-p overlength) (mml-to-mime)) ; break overlong text lines ;; Now check that no overlong headers exist (save-restriction (message-narrow-to-headers) (goto-char (point-min)) (and (search-forward-regexp (make-string overlength ?.) nil t) (error overlong-header-message))))) 90) From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 10:38:52 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 15:38:52 +0000 Received: from localhost ([127.0.0.1]:54429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRFRe-0008Gn-P2 for submit@debbugs.gnu.org; Mon, 07 Mar 2022 10:38:52 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRFRc-0008GX-Cy for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 10:38:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nL9SjfbzXyfdDwBj+hIVBw35S/3vNJ2QuZO0kyiocCY=; b=bB1D/0Q5M9vpiyOTzsoAfDegJT lePMKNCFCCgnVhlqClVDXviyzkLkLEIO3HlHawHyBWxBlY7fQY4WEVDtVdEuiAprj9TXiBQ2J5K7w 59n5ceFjVfZmNG4s955gS3dWxsBt9k/hpYTLWSSN+TgBgAfwroZGr2kWSzcejMZyyX+s=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRFRT-0002K0-F4; Mon, 07 Mar 2022 16:38:37 +0100 From: Lars Ingebrigtsen To: Francesco =?utf-8?Q?Potort=C3=AC?= Subject: Re: bug#53412: wrappin text lines is not enough, headers shoould be split too References: <87r19186gw.fsf@tucano.isti.cnr.it> <875yopq559.fsf@tucano.isti.cnr.it> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEU5EhmlHxbGoGj/ ///XVDo6AAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YDBw8mB4BYQewAAAFBSURBVCjPdZHBaoNAEIb/ CWspPa2wPkBLC8GnWCFCjy7s9h2Sp0g9hB7bS6E9GQ9B5yk7u0bjpeNlPgc//hkBwq6Ch86ogiYo C2O1IkKB4Br7FvxXXcE1+3HYf18uh/cCzo38cWD+3Qv4PNxrUqSaSkMehViqAvIZdhbwRu8SIFgE H1zqG29Q+6BjT85LDJOHNKnq/2xqstUJrEu2ABoWW643PFxtWdB05sd8smUaZ+5kX1ku2lhAbCZl Y/7E1WaIuYq2TGwGPGSLTYDyadOMBFK2aBMYsbKNbrHhMNDNVkaYbSXTnA0ywZQtbwS6tKkxhaxZ HuUiFt7b6YZQ0Ya5xFYsMLmWKtTckfxavbwXm13AxOEN9Op7aLtSF3Y1eX59+bk/ndq+63s5BfOW e247OUopwPxUJsB2w5uH46blu/YPkR5ipM53k5UAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDMt MDdUMTU6Mzg6MDcrMDA6MDCz0ZuwAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAzLTA3VDE1OjM4 OjA3KzAwOjAwwowjDAAAAABJRU5ErkJggg== X-Now-Playing: Jerry Harrison's _The Red And The Black_: "No More Reruns" Date: Mon, 07 Mar 2022 16:38:35 +0100 In-Reply-To: <875yopq559.fsf@tucano.isti.cnr.it> ("Francesco =?utf-8?Q?Pot?= =?utf-8?Q?ort=C3=AC=22's?= message of "Mon, 07 Mar 2022 14:11:14 +0100") Message-ID: <87zgm1ai2s.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Francesco Potortì writes: > If there is an overlong header, other headers which are utf-8 escaped are not sent correctly, and the recipient sees something like this: > > Subject: test =?utf-8?Q?=C3=A0?= b c > =?utf-8?Q?=C3=AC? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53412 Cc: 53412@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: -3.3 (---) Francesco Potort=C3=AC writes: > If there is an overlong header, other headers which are utf-8 escaped are= not sent correctly, and the recipient sees something like this: > > Subject: test =3D?utf-8?Q?=3DC3=3DA0?=3D b c > =3D?utf-8?Q?=3DC3=3DAC?=3D That looks correct to me? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 10:49:04 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 15:49:04 +0000 Received: from localhost ([127.0.0.1]:54444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRFbc-00007A-FT for submit@debbugs.gnu.org; Mon, 07 Mar 2022 10:49:04 -0500 Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:47706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRFbb-00006k-67 for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 10:49:03 -0500 Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 6965D1008B1; Mon, 7 Mar 2022 16:48:59 +0100 (CET) Message-Id: <8735jtpxuc.fsf@tucano.isti.cnr.it> From: =?utf-8?Q?Francesco_Potort=C3=AC?= Date: Mon, 07 Mar 2022 16:48:59 +0100 To: Lars Ingebrigtsen In-Reply-To: <87zgm1ai2s.fsf@gnus.org> (larsi@gnus.org) Subject: Re: bug#53412: wrappin text lines is not enough, headers shoould be split too References: <87r19186gw.fsf@tucano.isti.cnr.it> <875yopq559.fsf@tucano.isti.cnr.it> <87zgm1ai2s.fsf@gnus.org> Organization: The GNU project X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <20220307154859.26068.88978@plesklin7.if1.ehiweb.it> X-PPP-Vhost: potorti.it X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53412 Cc: 53412@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 (/) >> If there is an overlong header, other headers which are utf-8 escaped are not sent correctly, and the recipient sees something like this: >> >> Subject: test =?utf-8?Q?=C3=A0?= b c >> =?utf-8?Q?=C3=AC?= > >That looks correct to me? No, if that's what the recipent sees in their inbox. I don't know why, but mail sent by Emacs with an overlong header (whichever header) ends up with recipients seeing that string in their MUA. This was true of some tens of recipients, I suppose with several different MUAs. By the way, that happens also when the MUA is M-x rmail. I can send mail to you or this list to demonstrate the problem, if you think that would be useful From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 10:57:57 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 15:57:57 +0000 Received: from localhost ([127.0.0.1]:54468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRFkD-0000Lt-9D for submit@debbugs.gnu.org; Mon, 07 Mar 2022 10:57:57 -0500 Received: from quimby.gnus.org ([95.216.78.240]:56772) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRFkB-0000Lg-OO for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 10:57:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7yJMdLwC1bYV7DY0eItRJtklYukbY7/xStYQZDdx//c=; b=Gm11Erw7yBy7gZugxUw3ctyOMk oVpQNF/CgJkL4kI9EjUbtmfwhu4ftQ2C8HT/sYvciUOMRMF60eW3xd9BaPMeancFtFPAo+WD/itTs MYJL+eppkmJ5jR1iCt8iHuStOcfwlgDo1653d0rlR0ZgQb0epSB0fl4HM16hXsF+N6mQ=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRFk2-0002U3-MJ; Mon, 07 Mar 2022 16:57:49 +0100 From: Lars Ingebrigtsen To: Francesco =?utf-8?Q?Potort=C3=AC?= Subject: Re: bug#53412: wrappin text lines is not enough, headers shoould be split too References: <87r19186gw.fsf@tucano.isti.cnr.it> <875yopq559.fsf@tucano.isti.cnr.it> <87zgm1ai2s.fsf@gnus.org> <8735jtpxuc.fsf@tucano.isti.cnr.it> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUNCA1fJiiwTTao oaWnFRj////jzfNNAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+YDBw84LPilh3MAAAGqSURBVDjLdZOB kYQgDEXDugUQpQAEChDTwOHSf02XAArs3DGz48rz/wSSAPy3FCLqdYeNnzNx+6pPBy+3n/oLLAKU s6wbrU6PG/ljoUg0ghdR3Pi3EBWgnlCajsXb44XWrryfc04NRCCwq9IWI0CWVa0iLYRUli6CnH9K cOeUA+dWt3FSpoA57fJV/geYGuEByrRUngCDgYC3/MHJIGTbnNK0f3FAyXXNV/qKKO/mukLIXyny 91osQ8+1CjSsbudn/gLINxAy17LcbakLllSQKxjyTrCJgPRzCCynDH6XPdUBm6A8LqKDt1RP6sek Cpz4YwepXmummOZjmAZcb5TiHdp+Ijt0Yhek5GNXDADT0KaiSBXw9tCLio+ONzDGTsA8CjNI+NB3 7HkSJjA2Dnu9bzA1FFfubwCYWgMmmNdbYzsh4hRecZimkUa6zl3foF2luF1SLKqoDPStYE8eiZ0d +cXzCBrTCcficbxOAfSuRc+sDXmTOf24/KGDUGv5mktsgt7IEXgBkY57/rhaUCbbUwW9L6CMKnx8 AfGeLAQJfXJwURD1WpfhPukXYUCDQOw/chYAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDMtMDdU MTU6NTY6NDQrMDA6MDDwD3UnAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTAzLTA3VDE1OjU2OjQ0 KzAwOjAwgVLNmwAAAABJRU5ErkJggg== X-Now-Playing: Fad Gadget's _Incontinent_: "Saturday Night Special" Date: Mon, 07 Mar 2022 16:57:46 +0100 In-Reply-To: <8735jtpxuc.fsf@tucano.isti.cnr.it> ("Francesco =?utf-8?Q?Pot?= =?utf-8?Q?ort=C3=AC=22's?= message of "Mon, 07 Mar 2022 16:48:59 +0100") Message-ID: <878rtlah6t.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Francesco Potortì writes: >>> If there is an overlong header, other headers which are utf-8 >>> escaped are not sent correctly, and the recipient sees something >>> like this: >>> >>> Subject: test =?utf-8?Q?=C3=A0?= b c >>> = [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53412 Cc: 53412@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: -3.3 (---) Francesco Potort=C3=AC writes: >>> If there is an overlong header, other headers which are utf-8 >>> escaped are not sent correctly, and the recipient sees something >>> like this: >>> >>> Subject: test =3D?utf-8?Q?=3DC3=3DA0?=3D b c >>> =3D?utf-8?Q?=3DC3=3DAC?=3D >> >>That looks correct to me? > > No, if that's what the recipent sees in their inbox. I don't know > why, but mail sent by Emacs with an overlong header (whichever header) > ends up with recipients seeing that string in their MUA. They see literally that displayed? Then it sounds like the mail you're sending out has been double-rfc2047-encoded. > I can send mail to you or this list to demonstrate the problem, if you > think that would be useful Sure. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 12:28:00 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 17:28:00 +0000 Received: from localhost ([127.0.0.1]:54576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRH9M-00077U-44 for submit@debbugs.gnu.org; Mon, 07 Mar 2022 12:28:00 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:45955) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRH99-000775-3n for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 12:27:58 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4KC54x6y44z1qybm; Mon, 7 Mar 2022 18:27:45 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4KC54x5K3nz1qqkS; Mon, 7 Mar 2022 18:27:45 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id Rid1Y3Bws-jN; Mon, 7 Mar 2022 18:27:45 +0100 (CET) X-Auth-Info: PNBzCQkv+lD0RHISWnUHic6jZfqqwKFPcNA4RUqOQTdSL/PF0yGX3UsXdlzD3IxW Received: from igel.home (ppp-46-244-177-226.dynamic.mnet-online.de [46.244.177.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 7 Mar 2022 18:27:44 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 7722E2C3AC3; Mon, 7 Mar 2022 18:27:44 +0100 (CET) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#53412: wrappin text lines is not enough, headers shoould be split too References: <87r19186gw.fsf@tucano.isti.cnr.it> <875yopq559.fsf@tucano.isti.cnr.it> <87zgm1ai2s.fsf@gnus.org> <8735jtpxuc.fsf@tucano.isti.cnr.it> <878rtlah6t.fsf@gnus.org> X-Yow: All of life is a blur of Republicans and meat! Date: Mon, 07 Mar 2022 18:27:44 +0100 In-Reply-To: <878rtlah6t.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 07 Mar 2022 16:57:46 +0100") Message-ID: <87r17dr7u7.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 53412 Cc: Francesco =?utf-8?Q?Potort=C3=AC?= , 53412@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.5 (-) On Mär 07 2022, Lars Ingebrigtsen wrote: > Francesco Potortì writes: > >>>> If there is an overlong header, other headers which are utf-8 >>>> escaped are not sent correctly, and the recipient sees something >>>> like this: >>>> >>>> Subject: test =?utf-8?Q?=C3=A0?= b c >>>> =?utf-8?Q?=C3=AC?= >>> >>>That looks correct to me? >> >> No, if that's what the recipent sees in their inbox. I don't know >> why, but mail sent by Emacs with an overlong header (whichever header) >> ends up with recipients seeing that string in their MUA. > > They see literally that displayed? Then it sounds like the mail you're > sending out has been double-rfc2047-encoded. I would think this happens because of the call to mml-to-mime in the mail-send-hook he uses. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 12:32:05 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 17:32:05 +0000 Received: from localhost ([127.0.0.1]:54580 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHDI-0007FN-Pr for submit@debbugs.gnu.org; Mon, 07 Mar 2022 12:32:05 -0500 Received: from quimby.gnus.org ([95.216.78.240]:57496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHDG-0007Et-6m for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 12:32:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Bjeh7uKg5wWt5oW6fuUkOkIsh3dTnTsu8qwtDGo1edU=; b=iV172WdoJ7+Oq8+r0pcBlhMR4g r6TixZ0bzEhqrCX5uF95d/oIX7F2FfO83zPnhZltq26pmis6elNl8TziA+yI1zrMCxfO+gd/e8rqB HvQ08dDvTH31LjobpBTBtHJyVtjqn19TfhlSd/SD+PqrjNwpe4372nAMINUnbL/8+AM0=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRHD7-00034b-6M; Mon, 07 Mar 2022 18:31:55 +0100 From: Lars Ingebrigtsen To: Andreas Schwab Subject: Re: bug#53412: wrappin text lines is not enough, headers shoould be split too References: <87r19186gw.fsf@tucano.isti.cnr.it> <875yopq559.fsf@tucano.isti.cnr.it> <87zgm1ai2s.fsf@gnus.org> <8735jtpxuc.fsf@tucano.isti.cnr.it> <878rtlah6t.fsf@gnus.org> <87r17dr7u7.fsf@igel.home> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEX+/TTQtzGYaSDn zjQSAwBfOBErDgX///9HGBnCAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+YDBxEaJ959lqEAAAGCSURB VDjLzdLNcuMgDADgzPQFIhHnvJKDz8XM5t4UuIN/7vbYvP8jFPJX6uzMXqsDI/MZsJF2u98ayAji lr4BIMD+DooI6AFIKPb/26plZuI8IF/jzx0Oxhi75MHk0ZiPApxMc2uoXsAMo3EDQ17iphIs9y56 bNI8UQmGpTG+ZxPn9ccKM3NvpZmDHKz/ARZkaGbCKLv6DsfbRxJCUwM66cXzB4cY016AowAYGv+4 khZScO9FG4VAav17cSUMh04ygUb6S/sSuLn0HkAhbAAqOwLoVIJzVwCld92EpFum81SXoNXS4ayH II72GyhvstRySqk6bECP0HSpsnR63m4GoXUjo9Dj5E/Lox7IkOEYL1q50C3PQlU3aI1XbUD5XcFj +osE+lQrgGop4XqGPqdmU31Z8zhwAgyKFS6bZiBRmQlIhjE9fBYQZK4Uu7XfQDTOAlbObiEvApDL Or7AnFs3zs0LdJgae/CnF1ivvU7/OONyLWR5xpu+RUrfdzl5dMnviy/W8HuH5ppk+AAAACV0RVh0 ZGF0ZTpjcmVhdGUAMjAyMi0wMy0wN1QxNzoyNjozOSswMDowMNJ6vTYAAAAldEVYdGRhdGU6bW9k aWZ5ADIwMjItMDMtMDdUMTc6MjY6MzkrMDA6MDCjJwWKAAAAAElFTkSuQmCC X-Now-Playing: Minimal Compact's _Minimal Compact_: "Ready-Made Diary" Date: Mon, 07 Mar 2022 18:31:52 +0100 In-Reply-To: <87r17dr7u7.fsf@igel.home> (Andreas Schwab's message of "Mon, 07 Mar 2022 18:27:44 +0100") Message-ID: <878rtl8y9j.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Andreas Schwab writes: > I would think this happens because of the call to mml-to-mime in the > mail-send-hook he uses. Ah, makes sense. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53412 Cc: Francesco =?utf-8?Q?Potort=C3=AC?= , 53412@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: -3.3 (---) Andreas Schwab writes: > I would think this happens because of the call to mml-to-mime in the > mail-send-hook he uses. Ah, makes sense. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 07 12:36:54 2022 Received: (at 53412) by debbugs.gnu.org; 7 Mar 2022 17:36:54 +0000 Received: from localhost ([127.0.0.1]:54584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHHy-0007Ml-FH for submit@debbugs.gnu.org; Mon, 07 Mar 2022 12:36:54 -0500 Received: from plesklin7.if1.ehiweb.it ([79.98.45.16]:59554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRHHx-0007MZ-30 for 53412@debbugs.gnu.org; Mon, 07 Mar 2022 12:36:53 -0500 Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by plesklin7.if1.ehiweb.it (Postfix) with ESMTPSA id 54A141098D0; Mon, 7 Mar 2022 18:36:49 +0100 (CET) Message-Id: <87r17doea7.fsf@tucano.isti.cnr.it> From: =?utf-8?Q?Francesco_Potort=C3=AC?= Date: Mon, 07 Mar 2022 18:36:48 +0100 To: Andreas Schwab In-Reply-To: <87r17dr7u7.fsf@igel.home> (schwab@linux-m68k.org) Subject: Re: bug#53412: wrappin text lines is not enough, headers shoould be split too References: <87r19186gw.fsf@tucano.isti.cnr.it> <875yopq559.fsf@tucano.isti.cnr.it> <87zgm1ai2s.fsf@gnus.org> <8735jtpxuc.fsf@tucano.isti.cnr.it> <878rtlah6t.fsf@gnus.org> <87r17dr7u7.fsf@igel.home> Organization: The GNU project X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <20220307173649.6411.10443@plesklin7.if1.ehiweb.it> X-PPP-Vhost: potorti.it X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53412 Cc: Lars Ingebrigtsen , 53412@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 (/) FP: >>>>> If there is an overlong header, other headers which are utf-8 >>>>> escaped are not sent correctly, and the recipient sees something >>>>> like this: >>>>> >>>>> Subject: test =?utf-8?Q?=C3=A0?= b c >>>>> =?utf-8?Q?=C3=AC?= LI: >>>>That looks correct to me? FP: >>> No, if that's what the recipent sees in their inbox. I don't know >>> why, but mail sent by Emacs with an overlong header (whichever header) >>> ends up with recipients seeing that string in their MUA. LI: >> They see literally that displayed? Then it sounds like the mail you're >> sending out has been double-rfc2047-encoded. AS: >I would think this happens because of the call to mml-to-mime in the >mail-send-hook he uses. Sure, that's it. This happens when there is an overlong header line and mml-to-mime is in the mail-send-hook. mml-to-mime in the mail-send-hook is there because without it overlong text lines would go unbroken From unknown Sun Jun 15 14:44:47 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, 05 Apr 2022 11:24:04 +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