From unknown Sat Aug 16 22:00:34 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#56513 <56513@debbugs.gnu.org> To: bug#56513 <56513@debbugs.gnu.org> Subject: Status: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly Reply-To: bug#56513 <56513@debbugs.gnu.org> Date: Sun, 17 Aug 2025 05:00:34 +0000 retitle 56513 28.1; Vcard in a mime part with a utf-8 charset is displayed = incorrectly reassign 56513 emacs submitter 56513 Pascal Quesseveur severity 56513 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 02:34:11 2022 Received: (at submit) by debbugs.gnu.org; 12 Jul 2022 06:34:11 +0000 Received: from localhost ([127.0.0.1]:41482 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB9TG-0003Pt-LZ for submit@debbugs.gnu.org; Tue, 12 Jul 2022 02:34:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:60118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB9T8-0003PZ-0D for submit@debbugs.gnu.org; Tue, 12 Jul 2022 02:34:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB9T2-0004Cm-GN for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 02:33:58 -0400 Received: from smtp3-g21.free.fr ([2a01:e0c:1:1599::12]:11214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB9Sz-0001iK-Se for bug-gnu-emacs@gnu.org; Tue, 12 Jul 2022 02:33:56 -0400 Received: from dagon (unknown [88.127.239.170]) (Authenticated sender: pascal.quesseveur@free.fr) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 8398313FA37 for ; Tue, 12 Jul 2022 08:33:47 +0200 (CEST) From: Pascal Quesseveur To: bug-gnu-emacs@gnu.org Subject: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly Date: Tue, 12 Jul 2022 08:33:46 +0200 Message-ID: <82o7xudelx.fsf@abaksystemes.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a01:e0c:1:1599::12; envelope-from=quesseveur@abaksystemes.fr; helo=smtp3-g21.free.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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 have put vcard.el by Noah Friedmann in the load path. I launch gnus and open a mail with an attached vcard: ,---- | ... | MIME-Version: 1.0 | In-Reply-To: | Content-Type: multipart/mixed; | ... | Content-Type: text/x-vcard; charset=3Dutf-8; | name=3D"dupont.vcf" | Content-Transfer-Encoding: 7bit | Content-Disposition: attachment; | filename=3D"dupont.vcf" |=20 | begin:vcard | fn:Jean | n:Dupont;Jean | org;quoted-printable:Syst=3DC3=3DA8mes DUPONT | adr;quoted-printable:BP X;;La Cit=3DC3=3DA9;Province;00000;France | email;internet:dupont@systemes.fr | title:Directeur | tel;work:+33 (0)000000000 | tel;fax:+33 (0)111111111 | tel;cell:+33 (0)222222222 | url:http://www.dupont.fr | version:2.1 | end:vcard `---- Accented characters are not displayed correctly, due to charset utf-8: +--------------------------------------------------------------------------= ---+ | Jean-Dupont Work: +33 (0)0000000= 00 | | Directeur Cell: +33 (0)2222222= 22 | | Syst=C3=A8mes DUPONT Fax: +33 (0)111= 111111 | | La Cit=C3=A9, Province 00000 France = | +--------------------------------------------------------------------------= ---+ I have defined the following function, similar to mm-inline-text-vcard but considering the charset: (defun qsr-inline-text-vcard (handle) (let ((inhibit-read-only t) (charset (or (mail-content-type-get (mm-handle-type handle) 'charse= t) mail-parse-charset)) text) (setq text (if (fboundp 'vcard-pretty-print) (vcard-pretty-print (mm-get-part handle)) (vcard-format-string (vcard-parse-string (mm-get-part handle) 'vcard-standard-filter)))) (mm-insert-inline handle (concat "\n-- \n" (if (and charset text) (mm-decode-string (string-make-unibyte text) charset) text))))) When I use this function in mm-inline-media-tests display is OK. In GNU Emacs 28.1 (build 2, x86_64-w64-mingw32) of 2022-04-21 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.19044 System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.1766) Configured using: 'configure --with-modules --without-dbus --with-native-compilation --without-compress-install CFLAGS=3D-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB (NATIVE_COMP present but libgccjit not available) Important settings: value of $LANG: FRA locale-coding-system: cp1252 Major mode: Group Minor modes in effect: gnus-topic-mode: t gnus-undo-mode: t display-time-mode: t shell-dirtrack-mode: t icomplete-mode: t auto-image-file-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-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 indent-tabs-mode: t transient-mark-mode: t Load-path shadows: c:/Users/Public/emacs-site/lisp/utils/wdired hides c:/Program Files/Emacs/e= macs-28.1/share/emacs/28.1/lisp/wdired c:/Users/Public/emacs-site/lisp/utils/ls-lisp hides c:/Program Files/Emacs/= emacs-28.1/share/emacs/28.1/lisp/ls-lisp c:/Users/Public/emacs-site/lisp/utils/iimage hides c:/Program Files/Emacs/e= macs-28.1/share/emacs/28.1/lisp/iimage c:/Users/Public/emacs-site/lisp/utils/calculator hides c:/Program Files/Ema= cs/emacs-28.1/share/emacs/28.1/lisp/calculator c:/Users/Public/emacs-site/lisp/utils/table hides c:/Program Files/Emacs/em= acs-28.1/share/emacs/28.1/lisp/textmodes/table c:/Users/Public/emacs-site/lisp/remember/remember hides c:/Program Files/Em= acs/emacs-28.1/share/emacs/28.1/lisp/textmodes/remember c:/Users/Public/emacs-site/lisp/utils/rlogin hides c:/Program Files/Emacs/e= macs-28.1/share/emacs/28.1/lisp/net/rlogin c:/Users/Public/emacs-site/lisp/dictionary-1.8.7/dictionary hides c:/Progra= m Files/Emacs/emacs-28.1/share/emacs/28.1/lisp/net/dictionary Features: (shadow mailalias warnings emacsbug emms-info-libtag emms-player-vlc emms-player-mpv emms-player-mplayer emms-playlist-limit emms-volume emms-volume-mixerctl emms-volume-pulse emms-volume-amixer emms-i18n emms-stream-info emms-mode-line-icon emms-playlist-sort emms-last-played emms-playing-time emms-player-simple emms-streams emms-show-all emms-tag-editor emms-mark emms-mode-line emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-source-playlist emms-source-file locate music-list music-album emms-setup emms emms-compat mule-util sort vcard gnus-cite smiley shr-color color mm-archive mail-extr gnus-async gnus-bcklg qp gnus-ml gnus-topic nndraft nnmh gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig nnml utf-7 gnutls nnfolder cl-extra help-mode gnus-cache gnus-sum network-stream nsm nntp gnus-group gnus-undo gnus-start gnus-dbus dbus gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo gnus-spec gnus-int gnus-range gnus-win time highlight-current-line color-theme smtpmail tumblesocks tumblesocks-view tumblesocks-compose markdown-mode noutline outline htmlize tumblesocks-user tumblesocks-api oauth sasl sasl-anonymous sasl-login sasl-plain hex-util hmac-sha1 shr kinsoku svg dom browse-url plantuml-mode xml dash thingatpt html2help footnote rx muse-odf muse-xml muse-help muse-bbcode muse-blosxom muse-wiki muse-texinfo texnfo-upd texinfo texinfo-loaddefs muse-latex muse-html muse-docbook muse-xml-common cus-edit pp cus-load muse-publish muse-project muse-protocols info muse-regexps muse muse-nested-tags muse-mode u-vm-color org-import-icalendar icalendar diary-lib diary-loaddefs bbdb-sc supercite regi bbdb-migrate bbdb-snarf bbdb-message sendmail message rmc puny dired-explore dired-sort-menu acid dired-arc file-op dired-x dired dired-loaddefs rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader bbdb-rmail rmailsum bbdb-gnus bbdb-mua gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit bbdb-com pcase crm mailabbrev find-func bbdb bbdb-site timezone tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date format-spec which idb gud easy-mmode compile text-property-search comint ansi-color ring qproj-opascal jsee javadoc-lookup ido jserial jswat qproj-java jdok tempo url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio eieio-core eieio-loaddefs password-cache json subr-x map seq byte-opt bytecomp byte-compile cconv url-vars mailcap xml-parse doxymacs qproj-cpp qproj server dos-indent generic generic-x cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs lunar solar cal-dst cal-tex cal-iso cal-menu calendar cal-loaddefs epa-file epa derived epg rfc6068 epg-config ps-mule ipp cl-seq cl-macs cl gv printing ps-print ps-print-loaddefs ps-def lpr icomplete advice image-file image-converter edmacro kmacro cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 641780 93369) (symbols 48 33480 2) (strings 32 167813 5043) (string-bytes 1 5455599) (vectors 16 48996) (vector-slots 8 854372 65672) (floats 8 1198 274) (intervals 56 1542 73) (buffers 992 30)) --=20 Pascal Quesseveur From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 09:02:12 2022 Received: (at 56513) by debbugs.gnu.org; 12 Jul 2022 13:02:12 +0000 Received: from localhost ([127.0.0.1]:41899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBFWm-0001WC-Fz for submit@debbugs.gnu.org; Tue, 12 Jul 2022 09:02:12 -0400 Received: from quimby.gnus.org ([95.216.78.240]:36822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBFWk-0001Vx-Qp for 56513@debbugs.gnu.org; Tue, 12 Jul 2022 09:02:11 -0400 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:Date:References: In-Reply-To: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=CL4SDM1nakPj8m9704a9LKIc1fiWcA6d9D+7TAD/jU8=; b=XIy5JwjQwFF9TvjTqU+uAjUu/v /enynjawt4yomb7lsl4GbIDAo0Y/E9gHo00+6E2U7GXPIRgPrTOmgnn1t1GkT/zBYVTkJs0pOcD9G Ptp/XHLg1hUyKM6Jajocov8YO6qhC+MXMMAnuYbAeN6gGrGswYz8Sik2YiL6G8i2MG60=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBFWb-0007XO-Eb; Tue, 12 Jul 2022 15:02:04 +0200 From: Lars Ingebrigtsen To: Pascal Quesseveur Subject: Re: bug#56513: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly In-Reply-To: <82o7xudelx.fsf@abaksystemes.fr> (Pascal Quesseveur's message of "Tue, 12 Jul 2022 08:33:46 +0200") References: <82o7xudelx.fsf@abaksystemes.fr> X-Now-Playing: Robyn ft. Mapei's _The Versions_: "Buffalo Stance" Date: Tue, 12 Jul 2022 15:02:00 +0200 Message-ID: <874jzmzdpz.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: Pascal Quesseveur writes: > (mm-insert-inline > handle > (concat "\n-- \n" > (if (and charset text) > (mm-decode-string (string-make-unibyte text) charset) > text))))) > > When I use this function in mm-inline-media-tests disp [...] 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: 56513 Cc: 56513@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 (---) Pascal Quesseveur writes: > (mm-insert-inline > handle > (concat "\n-- \n" > (if (and charset text) > (mm-decode-string (string-make-unibyte text) charset) > text))))) > > When I use this function in mm-inline-media-tests display is OK. Thanks. I think it would be better to decode the data before handling it to the vcard functions, so I've reworked the function that way instead. Can you check whether this fixes the problem, too? diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index 57ce36a944..1bfef637bf 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el @@ -366,16 +366,15 @@ mm-inline-text-html (apply (car func) handle (cdr func))))))) (defun mm-inline-text-vcard (handle) - (let ((inhibit-read-only t)) - (mm-insert-inline - handle - (concat "\n-- \n" - (ignore-errors - (if (fboundp 'vcard-pretty-print) - (vcard-pretty-print (mm-get-part handle)) - (vcard-format-string - (vcard-parse-string (mm-get-part handle) - 'vcard-standard-filter)))))))) + (let* ((inhibit-read-only t) + (charset (mail-content-type-get (mm-handle-type handle) 'charset)) + (data (mm-decode-string (mm-get-part handle) charset)) + (text (and data + (if (fboundp 'vcard-pretty-print) + (vcard-pretty-print data) + (vcard-format-string + (vcard-parse-string data 'vcard-standard-filter)))))) + (mm-insert-inline handle (concat "\n-- \n" text)))) (defun mm-inline-text (handle) (let ((b (point)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 09:59:51 2022 Received: (at 56513) by debbugs.gnu.org; 12 Jul 2022 13:59:52 +0000 Received: from localhost ([127.0.0.1]:43293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBGQZ-0007tu-Ol for submit@debbugs.gnu.org; Tue, 12 Jul 2022 09:59:51 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBGQY-0007te-Jw for 56513@debbugs.gnu.org; Tue, 12 Jul 2022 09:59:50 -0400 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:Date:References: In-Reply-To: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=jyfArjVhIrkxD7pvDrIhViMo2D6sG5LlMIJw5qq35Tw=; b=G0a5dGaZw/W1t6TSXGDwGUojLI UKGmLykhwkmezHfKEwxB6FcQ1XMQGbW4YYIgxHDUzy16r4hLQb2G+RjRZ/gah9qatFP9Aag/iT0oB rZlCrVi3pQsHGSPVV+JHzDgQpptPjCQRE+xtXAKAGlFIKhDD1tMotuMOwa0lNURceBE0=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBGQP-00086P-Of; Tue, 12 Jul 2022 15:59:43 +0200 From: Lars Ingebrigtsen To: Pascal Quesseveur Subject: Re: bug#56513: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly In-Reply-To: <827d4ia12v.fsf@gmail.com> (Pascal Quesseveur's message of "Tue, 12 Jul 2022 15:54:16 +0200") References: <82o7xudelx.fsf@abaksystemes.fr> <874jzmzdpz.fsf@gnus.org> <827d4ia12v.fsf@gmail.com> X-Now-Playing: Consolidated's _Vs_: "The Last Enemy (Black Mix)" Date: Tue, 12 Jul 2022 15:59:39 +0200 Message-ID: <87y1wyv3ck.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: (Please keep the debbugs address in the CCs -- otherwise it won't reach the bug tracker.) Pascal Quesseveur writes: >>"LI" == Lars Ingebrigtsen writes: > > LI> Can you check whether this fixes the problem, too? > > Unfortunately not. To get text correctly encoded I have to call: > > (mm-decode-stri [...] 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: 56513 Cc: 56513@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 (---) (Please keep the debbugs address in the CCs -- otherwise it won't reach the bug tracker.) Pascal Quesseveur writes: >>"LI" == Lars Ingebrigtsen writes: > > LI> Can you check whether this fixes the problem, too? > > Unfortunately not. To get text correctly encoded I have to call: > > (mm-decode-string (string-make-unibyte > (vcard-pretty-print (mm-get-part handle))) charset) > > FWIW buffer-file-coding-system in article buffer is iso-latin-1-dos. That's odd -- is vcard-pretty-print doing charset encoding? What we're passing in should already be decoded (with that patch): + (data (mm-decode-string (mm-get-part handle) charset)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 12:17:14 2022 Received: (at 56513) by debbugs.gnu.org; 12 Jul 2022 16:17:15 +0000 Received: from localhost ([127.0.0.1]:43590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBIZW-0007iH-OW for submit@debbugs.gnu.org; Tue, 12 Jul 2022 12:17:14 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:25612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBIZV-0007i9-DT for 56513@debbugs.gnu.org; Tue, 12 Jul 2022 12:17:14 -0400 Received: from dagon (unknown [88.127.239.170]) (Authenticated sender: pascal.quesseveur@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id 1E0A1200390; Tue, 12 Jul 2022 18:17:11 +0200 (CEST) From: Pascal Quesseveur To: Lars Ingebrigtsen Subject: Re: bug#56513: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly In-Reply-To: <87y1wyv3ck.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 12 Jul 2022 15:59:39 +0200") Organization: Les Enchantements de Miraldra References: <82o7xudelx.fsf@abaksystemes.fr> <874jzmzdpz.fsf@gnus.org> <827d4ia12v.fsf@gmail.com> <87y1wyv3ck.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (windows-nt) X-Attribution: PQsr Date: Tue, 12 Jul 2022 18:17:10 +0200 Message-ID: <82r12q8fw9.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: >"LI" == Lars Ingebrigtsen writes: LI> (Please keep the debbugs address in the CCs -- otherwise it won't reach LI> the bug tracker.) Sorry, I missed it. Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.27.42.2 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (pquessev[at]gmail.com) 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 T_SCC_BODY_TEXT_LINE No description available. X-Debbugs-Envelope-To: 56513 Cc: 56513@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: pquessev@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) >"LI" == Lars Ingebrigtsen writes: LI> (Please keep the debbugs address in the CCs -- otherwise it won't reach LI> the bug tracker.) Sorry, I missed it. LI> That's odd -- is vcard-pretty-print doing charset encoding? What we're LI> passing in should already be decoded (with that patch): The problem comes from quoted-printable fields in vcard. It works if you decode QP before: (data (mm-decode-string (quoted-printable-decode-string (mm-get-part handle)) charset)) But in that case vcard-pretty-print receives a vcard containing fields marked as quoted-printable, but they never are anymore. -- Pascal Quesseveur pquessev@gmail.com From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 15:07:27 2022 Received: (at 56513) by debbugs.gnu.org; 12 Jul 2022 19:07:27 +0000 Received: from localhost ([127.0.0.1]:43661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBLEF-0003o4-3T for submit@debbugs.gnu.org; Tue, 12 Jul 2022 15:07:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBLED-0003nr-PI for 56513@debbugs.gnu.org; Tue, 12 Jul 2022 15:07:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBLE8-0007j8-7e; Tue, 12 Jul 2022 15:07:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=mF7lmQwbRY9ApyKAvj5ZtqFs2HhiJIBN7wEA61m87Pw=; b=ailaT5PlRibtGfQ3Pq8j cOx1nIhEWL5sXlwRRwTDa36ides9m8ko2P0HFARqPecFSkhskwQcGSuW12j4R0F325HbGvmlfPXdM 38d9kSBe2gbDG7zcj0DpOzNvxzkTEPeIF6Ae5Vhcoyhk5Yxfhyg8/IGSGJnHV+9eyLdjS3la49DHy ctgmKmH8oZrAckdA4q9V0BMEkBz4cjXqKOrqS9nnjE030vTCPE0TvzXGK0Anm401B1bjcWWFI0IJa rkukm8nUBkxTNOZh8iAzqmYZApIl7wji2l43US6YLycsKH7su2/gMF5QO5EIaVMAW5WUYl7rcInGE Mws23uLa3/dmJw==; Received: from [2600:1700:5650:f790::42] (port=47440 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBLE6-0000oI-Ac; Tue, 12 Jul 2022 15:07:20 -0400 From: Roland Winkler To: Lars Ingebrigtsen Subject: Re: bug#56513: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly References: <82o7xudelx.fsf@abaksystemes.fr> <874jzmzdpz.fsf@gnus.org> <827d4ia12v.fsf@gmail.com> <87y1wyv3ck.fsf@gnus.org> Cancel-Lock: sha1:+OX53l7kXYhaLTjEuYoW+8u7jlg= Date: Tue, 12 Jul 2022 14:07:17 -0500 In-Reply-To: <87y1wyv3ck.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 12 Jul 2022 15:59:39 +0200") Message-ID: <874jzm6tga.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56513 Cc: Pascal Quesseveur , 56513@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 (---) On Tue, Jul 12 2022, Lars Ingebrigtsen wrote: >> FWIW buffer-file-coding-system in article buffer is iso-latin-1-dos. > > That's odd -- is vcard-pretty-print doing charset encoding? What we're > passing in should already be decoded (with that patch): > > + (data (mm-decode-string (mm-get-part handle) charset)) Below I am re-posting an example of a vcard MIME attachment that Pascal had originally posted on the BBDB mailing list. The odd thing about these MIME attachments is that vcard properties such as "org" and "adr" in the example below may include "quoted-printable" paramaters as part of the vcard itself. So my understanding is that the decoding of the quoted-printable encoded strings and any subsequent coding-system decoding should be done by a vcard parser and not by a MUA when processing MIME attachments. The vCard format 4.0 (rfc6350) requires that vCards use utf-8, it does not permit other coding-systems. I do not know about earlier versions of the vCard format. ,---- | Content-Type: text/x-vcard; charset=utf-8; | name="dupont.vcf" | Content-Transfer-Encoding: 7bit | Content-Disposition: attachment; | filename="dupont.vcf" | | begin:vcard | fn:Jean | n:Dupont;Jean | org;quoted-printable:Syst=C3=A8mes DUPONT | adr;quoted-printable:BP X;;La Cit=C3=A9;Province;00000;France | email;internet:dupont@systemes.fr | title:Directeur | tel;work:+33 (0)000000000 | tel;fax:+33 (0)111111111 | tel;cell:+33 (0)222222222 | url:http://www.dupont.fr | version:2.1 | end:vcard `---- From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 18:32:54 2022 Received: (at 56513) by debbugs.gnu.org; 12 Jul 2022 22:32:55 +0000 Received: from localhost ([127.0.0.1]:43841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBOR4-0000rL-LP for submit@debbugs.gnu.org; Tue, 12 Jul 2022 18:32:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBOR2-0000r4-Tt for 56513@debbugs.gnu.org; Tue, 12 Jul 2022 18:32:53 -0400 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:Date:References: In-Reply-To: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=1sCQup+XMCcRiMWxN7extXxpVxfUfC+Pxbydqm1TtSk=; b=nPG55Bq/a1ebQXveRH+h1OV8tV h0iVLmzVs5u73dj0i9LYu2O8NgT0VNFRyzOYTfdSYgF0CzWtr3zHzQYnZffJamvrr5FoCRpyn2vjg fCR+qVtCDuR3wO7nSU7Xi6f9qoF9eHKwc24JFdQ3cEh6+Uni7apHg2aTK0Bc9jPswaoE=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBOQt-0004J5-HD; Wed, 13 Jul 2022 00:32:46 +0200 From: Lars Ingebrigtsen To: Roland Winkler Subject: Re: bug#56513: 28.1; Vcard in a mime part with a utf-8 charset is displayed incorrectly In-Reply-To: <874jzm6tga.fsf@gnu.org> (Roland Winkler's message of "Tue, 12 Jul 2022 14:07:17 -0500") References: <82o7xudelx.fsf@abaksystemes.fr> <874jzmzdpz.fsf@gnus.org> <827d4ia12v.fsf@gmail.com> <87y1wyv3ck.fsf@gnus.org> <874jzm6tga.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWDgnN1empqjFLA 7Rb////ehX7aAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+YHDBYfN5lzRcQAAAFRSURBVDjLbZRdAoQg CITBLgB1AbMLbHn/u+2AP6VFD7V8zihQS9RiTQhpv7jnQ/KIM+BUQyawNpAmgEy+Hmbc80dGXF3C 9/rcSLxBqIJKbuAC3JUoVwl3QTsFJLsDKYJeKBUvhtxq/t0geJFcniLRUxKLVZpAsE24dIlolDTP OIKQWvteIJrVywkpA/ISOEAbhiLqcCIrDnWcMwjR6z7oAzBApk+rcGThCSRRdkBfYM0vwEnEAZ4H FhJ3MDXRxwQwbX7tpniDLUVVVD5bccahChh7JTmxg2UCC7YwoFv+yeB07epAxgrhpAXAi2+iSxEA ELxwL8tZq8Cs6OGlUrZ2K9nyaTUKLl6qAECVbSTqC+WSB5A1n1rAWo0KUMV4PcF7TWNQfvNXH3Ne tQfOgR6LfeYQ7iOwj6/8AfATqE2DYZR8f1ax1hroE2dT2+U2+h38ByfsNg5w+tFQAAAAJXRFWHRk YXRlOmNyZWF0ZQAyMDIyLTA3LTEyVDIyOjMxOjU1KzAwOjAwhT6XAwAAACV0RVh0ZGF0ZTptb2Rp ZnkAMjAyMi0wNy0xMlQyMjozMTo1NSswMDowMPRjL78AAAAASUVORK5CYII= X-Now-Playing: Autechre's _Plus_: "marhide" Date: Wed, 13 Jul 2022 00:32:42 +0200 Message-ID: <87fsj6uflh.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: Roland Winkler writes: > Below I am re-posting an example of a vcard MIME attachment that Pascal > had originally posted on the BBDB mailing list. The odd thing about > these MIME attachments is that vcard properties such a [...] 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: 56513 Cc: Pascal Quesseveur , 56513@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 (---) Roland Winkler writes: > Below I am re-posting an example of a vcard MIME attachment that Pascal > had originally posted on the BBDB mailing list. The odd thing about > these MIME attachments is that vcard properties such as "org" and "adr" > in the example below may include "quoted-printable" paramaters as part > of the vcard itself. So my understanding is that the decoding of the > quoted-printable encoded strings and any subsequent coding-system > decoding should be done by a vcard parser and not by a MUA when > processing MIME attachments. Ah, I see. > The vCard format 4.0 (rfc6350) requires that vCards use utf-8, it does > not permit other coding-systems. I do not know about earlier versions > of the vCard format. I've now adjusted the vcard.el parser in GNU ELPA to decode the data using utf-8, and that seems to fix the problem. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 12 18:33:03 2022 Received: (at control) by debbugs.gnu.org; 12 Jul 2022 22:33:03 +0000 Received: from localhost ([127.0.0.1]:43845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBORC-0000s4-U4 for submit@debbugs.gnu.org; Tue, 12 Jul 2022 18:33:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41724) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBORB-0000rU-M8 for control@debbugs.gnu.org; Tue, 12 Jul 2022 18:33:02 -0400 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=8Y4A7l4h8uYaNS84apTPEux+7hQXTe4cbMQlvIHx5e4=; b=J4wnM+0RUD5OjfJyr0LfKV5IIS iRZKNZkDA9cm+r4uu5Gx9Sksla9uRfDzcz9iV0TApq2fMC7Hb3hCIrUHLgjGZhxIwnxG69QaN1M15 2RqNiEPp/+sZgBSgBepxxdWaQuM/S2I+nPfPTuItLeVbO13934VYCtfAO2adRGyd29bI=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBOR3-0004JH-NI for control@debbugs.gnu.org; Wed, 13 Jul 2022 00:32:55 +0200 Date: Wed, 13 Jul 2022 00:32:53 +0200 Message-Id: <87edyqufl6.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #56513 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 56513 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 56513 29.1 quit From unknown Sat Aug 16 22:00:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Aug 2022 11:24:07 +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