From unknown Sun Jun 22 00:22:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17613: 24.3; html2text can't handle weird formatting Resent-From: mah@everybody.org (Mark A. Hershberger) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 May 2014 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17613 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17613@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140123248814330 (code B ref -1); Tue, 27 May 2014 23:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 May 2014 23:14:48 +0000 Received: from localhost ([127.0.0.1]:33785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpQZy-0003j2-67 for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55747) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpQZt-0003im-Uv for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpQZh-00076V-Me for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:36 -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.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpQZh-00076Q-JT for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpQZa-0003pc-Uq for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 19:14:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpQZU-00074H-DP for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 19:14:22 -0400 Received: from nospam.nichework.com ([206.71.169.33]:45701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpQZU-000744-2T for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 19:14:16 -0400 Received: from localhost (localhost [127.0.0.1]) by nospam.nichework.com (Postfix) with ESMTP id 850A55EAD4 for ; Tue, 27 May 2014 19:14:13 -0400 (EDT) Received: from nospam.nichework.com ([127.0.0.1]) by localhost (nospam.nichework.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 21468-10 for ; Tue, 27 May 2014 19:14:12 -0400 (EDT) Received: from mail.nichework.com (mail.nichework.com [206.71.169.32]) by nospam.nichework.com (Postfix) with ESMTP id 524B05EACA for ; Tue, 27 May 2014 19:14:13 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id 3D6DE20C06D for ; Tue, 27 May 2014 19:14:13 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.nichework.com Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C3dqPBEu9HtE for ; Tue, 27 May 2014 19:14:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id CEE4020C075 for ; Tue, 27 May 2014 19:14:08 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.nichework.com Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 38WQIBclpWvz for ; Tue, 27 May 2014 19:14:06 -0400 (EDT) Received: from flynn.nichework.com.everybody.org (unknown [206.71.169.157]) by mail.nichework.com (Postfix) with ESMTPS id E1E1320C06D for ; Tue, 27 May 2014 19:14:05 -0400 (EDT) From: mah@everybody.org (Mark A. Hershberger) Date: Tue, 27 May 2014 19:14:04 -0400 Message-ID: <87mwe2zuf7.fsf@flynn.nichework.com> MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: Debian amavisd-maia at nospam.nichework.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (----) I got an email today whose source includes: Create Your Profil= e! Line breaks exactly as they are in the email's source. mu4e is being used to parse and display the email. In html2text-get-attr, execution stops on the following code: (cond ;; size=3 ((string-match "[^ ]=[^ ]" this) (let ((attr (nth 0 (split-string this "="))) (value (substring prev (1+ (string-match "=" this))))) with the message: Args out of range: "\"", 6, 1 describe-variable for this says: this's value is "title=\"Profile" The html I've posted above is the only place where 'title="Profile' is in the email. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.1) of 2014-05-05 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Debian GNU/Linux testing (jessie) Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: erc-ring-mode: t erc-networks-mode: t erc-netsplit-mode: t erc-menu-mode: t erc-list-mode: t erc-pcomplete-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-autojoin-mode: t erc-autoaway-mode: t erc-log-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-smiley-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t diff-auto-refine-mode: t show-paren-mode: t electric-indent-mode: t global-auto-revert-mode: t ido-everywhere: t shell-dirtrack-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-n C-n C-n C-n C-n M-f M-f M-f M-f M-b C-SPC C-e C-b C-b C-b M-w q U C-x b d e b a c q C-x k M-x C-g b u M-x M-p M-p M-p M-p M-p C-k t o g g l e SPC d e o e q C-x k C-x b b a C-g C-g M-x M-p C-e q u C-g C-g C-g q C-x k C-g C-x b b a l c k g C-g M-x b a c k t C-x o M-x d e e m u C-g C-x b . e l q q C-x 1 c c c c c n X o X o _ _ _ C-x o C-n q C-x 1 q q b u q U b u c c c c c C-b C-b C-b C-h v t h M-x r e p p o r t q u b u Recent messages: [mu4e] Indexing completed; processed 176499, updated 1, cleaned-up 0 [mu4e] Found 1 matching message Continue... Break Continue... Break Continue... Args out of range: "\"", 6, 1 Type "q" to delete help window. Making completion list... Load-path shadows: /home/mah/.emacs.d/elpa/markdown-mode-1.9/markdown-mode hides ~/.emacs.d/lisp/markdown-mode /home/mah/.emacs.d/elpa/htmlize-1.39/htmlize hides ~/.emacs.d/lisp/htmlize /home/mah/.emacs.d/elpa/yaml-mode-0.0.9/yaml-mode hides ~/.emacs.d/lisp/yaml-mode /home/mah/.emacs.d/elpa/javascript-2.2.1/javascript hides ~/.emacs.d/lisp/javascript /home/mah/.emacs.d/elpa/lisppaste-1.8/lisppaste hides ~/.emacs.d/lisp/lisppaste /home/mah/.emacs.d/elpa/php-mode-1.5.0/php-mode hides ~/.emacs.d/lisp/php-mode /home/mah/.emacs.d/elpa/magit-1.2.0/magit-wip hides /usr/share/emacs/24.3/site-lisp/magit/magit-wip /home/mah/.emacs.d/elpa/magit-1.2.0/magit hides /usr/share/emacs/24.3/site-lisp/magit/magit /home/mah/.emacs.d/elpa/magit-1.2.0/magit-blame hides /usr/share/emacs/24.3/site-lisp/magit/magit-blame /home/mah/.emacs.d/elpa/magit-1.2.0/magit-svn hides /usr/share/emacs/24.3/site-lisp/magit/magit-svn /home/mah/.emacs.d/elpa/magit-1.2.0/magit-stgit hides /usr/share/emacs/24.3/site-lisp/magit/magit-stgit /home/mah/.emacs.d/elpa/magit-1.2.0/magit-topgit hides /usr/share/emacs/24.3/site-lisp/magit/magit-topgit /home/mah/.emacs.d/elpa/magit-1.2.0/magit-bisect hides /usr/share/emacs/24.3/site-lisp/magit/magit-bisect /home/mah/.emacs.d/elpa/magit-1.2.0/magit-key-mode hides /usr/share/emacs/24.3/site-lisp/magit/magit-key-mode /home/mah/.emacs.d/elpa/magit-1.2.0/rebase-mode hides /usr/share/emacs/24.3/site-lisp/magit/rebase-mode /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.3/lisp/md4 ~/.emacs.d/lisp/iimage hides /usr/share/emacs/24.3/lisp/iimage /usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.3/lisp/hex-util /home/mah/.emacs.d/elpa/json-1.2/json hides /usr/share/emacs/24.3/lisp/json /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /home/mah/.emacs.d/elpa/css-mode-1.0/css-mode hides /usr/share/emacs/24.3/lisp/textmodes/css-mode /usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.3/lisp/net/sasl /usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.3/lisp/net/ntlm /usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.3/lisp/net/hmac-def /usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.3/lisp/net/hmac-md5 /usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.3/lisp/net/sasl-cram /usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.3/lisp/net/sasl-digest /usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.3/lisp/net/sasl-ntlm /home/mah/.emacs.d/elpa/ert-0.1/ert hides /usr/share/emacs/24.3/lisp/emacs-lisp/ert Features: (shadow emacsbug url-http url-auth url-gw mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util org-table org-element sql tramp-sh notify dbus xml erc-ring erc-networks erc-netsplit erc-menu erc-pcomplete erc-button erc-fill erc-stamp erc-sasl erc-join erc-autoaway erc-log erc-track erc-match erc-goodies erc erc-backend erc-compat vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc canlock sh-script smie executable log-edit pcvs-util add-log eudc eudc-vars pp dired-aux diff-mode vc vc-dispatcher vc-git subword flymake php-extras eldoc php-mode etags cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars tramp-cache finder lisp-mnt edebug apropos debug image-file org-remember org-datetree w3m-search rect conf-mode w3m-form w3m-cookie w3m-bookmark w3m-tabmenu w3m-session w3m timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util loccur misearch multi-isearch mailalias ispell qp sort smiley gnus-cite flow-fill mm-archive mail-extr gnus-async gnus-bcklg gnus-ml gnus-topic nndraft nnmh nnfolder parse-time epa-file netrc gnutls network-stream tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache gnus-pers spam spam-stat gnus-uu yenc gnus-msg gnus-art mm-uu mml2015 gnus-sum nnoo gnus-group gnus-undo nnmail mail-source starttls gnus-start gnus-spec gnus-int gnus-range gnus-win time-stamp crm thingatpt cus-edit multi-term term disp-table ehelp ffap url-parse url-vars face-remap org-colview view mule-util cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs cal-iso vc-bzr test-case-mode fringe-helper cc-defs project-local-variables org-indent org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-info org-gnus org-docview org-bibtex bibtex org-bbdb ob-dot paren help-at-pt grep gnus gnus-ems nnheader wid-edit chess-autoloads clojure-test-mode-autoloads company-autoloads css-mode-autoloads dictionary-autoloads elk-test-autoloads epresent-autoloads eproject-autoloads eproject ert-autoloads etags-select-autoloads findr-autoloads flycheck-autoloads f-autoloads fringe-helper-autoloads guess-style-autoloads highlight-80+-autoloads jimb-patch-autoloads js2-mode-autoloads lisppaste-autoloads magit-find-file-autoloads magit-gh-pulls-autoloads gh-autoloads logito-autoloads magit-tramp-autoloads magit-autoloads markdown-mode-autoloads marmalade-autoloads furl-autoloads multi-web-mode-autoloads nrepl-autoloads pcache-autoloads php-extras-autoloads info php-mode-autoloads pkg-info-autoloads epl-autoloads dash-autoloads project-local-variables-autoloads relax-autoloads javascript-autoloads json-autoloads s-autoloads sass-mode-autoloads haml-mode-autoloads finder-inf scpaste-autoloads htmlize-autoloads shellfm-autoloads ssh-config-mode-autoloads subatomic-enhanced-theme-autoloads sudoku-autoloads swank-clojure-autoloads clojure-mode-autoloads slime-repl-autoloads slime-autoloads test-case-mode-autoloads weblogger-autoloads xml-rpc-autoloads yaml-mode-autoloads zen-and-art-theme-autoloads package mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa derived browse-url mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode dired mu4e-lists mu4e-about mu4e-vars message cl-macs gv rfc822 mml mailabbrev mail-utils gmm-utils mailheader hl-line cl mu4e-meta electric autorevert edmacro kmacro windmove ido cus-start cus-load appt diary-lib diary-loaddefs org-clock org-exp ob-exp org-exp-blocks org-agenda org warnings ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs find-func cal-menu calendar cal-loaddefs remember tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util tramp-loaddefs shell pcomplete format-spec advice help-fns cl-lib advice-preload tabify mm-view mml-smime mml-sec smime password-cache dig mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr server time allout quail help-mode easymenu unichars epg epg-config w3m-load pylint compile comint ansi-color ring 50magit time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- http://hexmode.com/ Despite honor and wealth, we don't last. We die like any other animal. -- Psalm 49:12 From unknown Sun Jun 22 00:22:23 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: mah@everybody.org (Mark A. Hershberger) Subject: bug#17613: closed (Re: bug#17613: 24.3; html2text can't handle weird formatting) Message-ID: References: <87lhtm2yq8.fsf@igel.home> <87mwe2zuf7.fsf@flynn.nichework.com> X-Gnu-PR-Message: they-closed 17613 X-Gnu-PR-Package: emacs Reply-To: 17613@debbugs.gnu.org Date: Wed, 28 May 2014 06:40:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1401259204-2602-1" This is a multi-part message in MIME format... ------------=_1401259204-2602-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17613: 24.3; html2text can't handle weird formatting which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17613@debbugs.gnu.org. --=20 17613: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17613 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1401259204-2602-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17613-done) by debbugs.gnu.org; 28 May 2014 06:39:50 +0000 Received: from localhost ([127.0.0.1]:33946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpXWg-0000fK-86 for submit@debbugs.gnu.org; Wed, 28 May 2014 02:39:50 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:39905) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpXWc-0000f7-9V for 17613-done@debbugs.gnu.org; Wed, 28 May 2014 02:39:47 -0400 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3gdj806ydhz3hhbg; Wed, 28 May 2014 08:39:44 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3gdj805XzSzbblV; Wed, 28 May 2014 08:39:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 78prrIjfvdxB; Wed, 28 May 2014 08:39:43 +0200 (CEST) X-Auth-Info: VksoxHW7fCSdHCt26hWyENn0USsKGm0T1nfXUP66LoE= Received: from igel.home (host-188-174-208-190.customer.m-online.net [188.174.208.190]) by mail.mnet-online.de (Postfix) with ESMTPA; Wed, 28 May 2014 08:39:43 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 8335A2C185C; Wed, 28 May 2014 08:39:43 +0200 (CEST) From: Andreas Schwab To: mah@everybody.org (Mark A. Hershberger) Subject: Re: bug#17613: 24.3; html2text can't handle weird formatting References: <87mwe2zuf7.fsf@flynn.nichework.com> X-Yow: Our father who art in heaven.. I sincerely pray that SOMEBODY at this table will PAY for my SHREDDED WHAT and ENGLISH MUFFIN.. and also leave a GENEROUS TIP... Date: Wed, 28 May 2014 08:39:43 +0200 In-Reply-To: <87mwe2zuf7.fsf@flynn.nichework.com> (Mark A. Hershberger's message of "Tue, 27 May 2014 19:14:04 -0400") Message-ID: <87lhtm2yq8.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 17613-done Cc: 17613-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (/) mah@everybody.org (Mark A. Hershberger) writes: > (cond > ;; size=3 > ((string-match "[^ ]=[^ ]" this) > (let ((attr (nth 0 (split-string this "="))) > (value (substring prev (1+ (string-match "=" this))))) This should be this instead of prev, of course. Fixed for 24.4. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." ------------=_1401259204-2602-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 May 2014 23:14:48 +0000 Received: from localhost ([127.0.0.1]:33785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpQZy-0003j2-67 for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55747) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WpQZt-0003im-Uv for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpQZh-00076V-Me for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:36 -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.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33130) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpQZh-00076Q-JT for submit@debbugs.gnu.org; Tue, 27 May 2014 19:14:29 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpQZa-0003pc-Uq for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 19:14:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpQZU-00074H-DP for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 19:14:22 -0400 Received: from nospam.nichework.com ([206.71.169.33]:45701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpQZU-000744-2T for bug-gnu-emacs@gnu.org; Tue, 27 May 2014 19:14:16 -0400 Received: from localhost (localhost [127.0.0.1]) by nospam.nichework.com (Postfix) with ESMTP id 850A55EAD4 for ; Tue, 27 May 2014 19:14:13 -0400 (EDT) Received: from nospam.nichework.com ([127.0.0.1]) by localhost (nospam.nichework.com [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 21468-10 for ; Tue, 27 May 2014 19:14:12 -0400 (EDT) Received: from mail.nichework.com (mail.nichework.com [206.71.169.32]) by nospam.nichework.com (Postfix) with ESMTP id 524B05EACA for ; Tue, 27 May 2014 19:14:13 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id 3D6DE20C06D for ; Tue, 27 May 2014 19:14:13 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.nichework.com Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C3dqPBEu9HtE for ; Tue, 27 May 2014 19:14:08 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.nichework.com (Postfix) with ESMTP id CEE4020C075 for ; Tue, 27 May 2014 19:14:08 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.nichework.com Received: from mail.nichework.com ([127.0.0.1]) by localhost (mail.nichework.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 38WQIBclpWvz for ; Tue, 27 May 2014 19:14:06 -0400 (EDT) Received: from flynn.nichework.com.everybody.org (unknown [206.71.169.157]) by mail.nichework.com (Postfix) with ESMTPS id E1E1320C06D for ; Tue, 27 May 2014 19:14:05 -0400 (EDT) From: mah@everybody.org (Mark A. Hershberger) To: bug-gnu-emacs@gnu.org Subject: 24.3; html2text can't handle weird formatting Date: Tue, 27 May 2014 19:14:04 -0400 Message-ID: <87mwe2zuf7.fsf@flynn.nichework.com> MIME-Version: 1.0 Content-Type: text/plain X-Virus-Scanned: Debian amavisd-maia at nospam.nichework.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.0 (----) I got an email today whose source includes: Create Your Profil= e! Line breaks exactly as they are in the email's source. mu4e is being used to parse and display the email. In html2text-get-attr, execution stops on the following code: (cond ;; size=3 ((string-match "[^ ]=[^ ]" this) (let ((attr (nth 0 (split-string this "="))) (value (substring prev (1+ (string-match "=" this))))) with the message: Args out of range: "\"", 6, 1 describe-variable for this says: this's value is "title=\"Profile" The html I've posted above is the only place where 'title="Profile' is in the email. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.1) of 2014-05-05 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Debian GNU/Linux testing (jessie) Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: erc-ring-mode: t erc-networks-mode: t erc-netsplit-mode: t erc-menu-mode: t erc-list-mode: t erc-pcomplete-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-autojoin-mode: t erc-autoaway-mode: t erc-log-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-smiley-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t diff-auto-refine-mode: t show-paren-mode: t electric-indent-mode: t global-auto-revert-mode: t ido-everywhere: t shell-dirtrack-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-n C-n C-n C-n C-n M-f M-f M-f M-f M-b C-SPC C-e C-b C-b C-b M-w q U C-x b d e b a c q C-x k M-x C-g b u M-x M-p M-p M-p M-p M-p C-k t o g g l e SPC d e o e q C-x k C-x b b a C-g C-g M-x M-p C-e q u C-g C-g C-g q C-x k C-g C-x b b a l c k g C-g M-x b a c k t C-x o M-x d e e m u C-g C-x b . e l q q C-x 1 c c c c c n X o X o _ _ _ C-x o C-n q C-x 1 q q b u q U b u c c c c c C-b C-b C-b C-h v t h M-x r e p p o r t q u b u Recent messages: [mu4e] Indexing completed; processed 176499, updated 1, cleaned-up 0 [mu4e] Found 1 matching message Continue... Break Continue... Break Continue... Args out of range: "\"", 6, 1 Type "q" to delete help window. Making completion list... Load-path shadows: /home/mah/.emacs.d/elpa/markdown-mode-1.9/markdown-mode hides ~/.emacs.d/lisp/markdown-mode /home/mah/.emacs.d/elpa/htmlize-1.39/htmlize hides ~/.emacs.d/lisp/htmlize /home/mah/.emacs.d/elpa/yaml-mode-0.0.9/yaml-mode hides ~/.emacs.d/lisp/yaml-mode /home/mah/.emacs.d/elpa/javascript-2.2.1/javascript hides ~/.emacs.d/lisp/javascript /home/mah/.emacs.d/elpa/lisppaste-1.8/lisppaste hides ~/.emacs.d/lisp/lisppaste /home/mah/.emacs.d/elpa/php-mode-1.5.0/php-mode hides ~/.emacs.d/lisp/php-mode /home/mah/.emacs.d/elpa/magit-1.2.0/magit-wip hides /usr/share/emacs/24.3/site-lisp/magit/magit-wip /home/mah/.emacs.d/elpa/magit-1.2.0/magit hides /usr/share/emacs/24.3/site-lisp/magit/magit /home/mah/.emacs.d/elpa/magit-1.2.0/magit-blame hides /usr/share/emacs/24.3/site-lisp/magit/magit-blame /home/mah/.emacs.d/elpa/magit-1.2.0/magit-svn hides /usr/share/emacs/24.3/site-lisp/magit/magit-svn /home/mah/.emacs.d/elpa/magit-1.2.0/magit-stgit hides /usr/share/emacs/24.3/site-lisp/magit/magit-stgit /home/mah/.emacs.d/elpa/magit-1.2.0/magit-topgit hides /usr/share/emacs/24.3/site-lisp/magit/magit-topgit /home/mah/.emacs.d/elpa/magit-1.2.0/magit-bisect hides /usr/share/emacs/24.3/site-lisp/magit/magit-bisect /home/mah/.emacs.d/elpa/magit-1.2.0/magit-key-mode hides /usr/share/emacs/24.3/site-lisp/magit/magit-key-mode /home/mah/.emacs.d/elpa/magit-1.2.0/rebase-mode hides /usr/share/emacs/24.3/site-lisp/magit/rebase-mode /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/flim/md4 hides /usr/share/emacs/24.3/lisp/md4 ~/.emacs.d/lisp/iimage hides /usr/share/emacs/24.3/lisp/iimage /usr/share/emacs24/site-lisp/flim/hex-util hides /usr/share/emacs/24.3/lisp/hex-util /home/mah/.emacs.d/elpa/json-1.2/json hides /usr/share/emacs/24.3/lisp/json /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /home/mah/.emacs.d/elpa/css-mode-1.0/css-mode hides /usr/share/emacs/24.3/lisp/textmodes/css-mode /usr/share/emacs24/site-lisp/flim/sasl hides /usr/share/emacs/24.3/lisp/net/sasl /usr/share/emacs24/site-lisp/flim/ntlm hides /usr/share/emacs/24.3/lisp/net/ntlm /usr/share/emacs24/site-lisp/flim/hmac-def hides /usr/share/emacs/24.3/lisp/net/hmac-def /usr/share/emacs24/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.3/lisp/net/hmac-md5 /usr/share/emacs24/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.3/lisp/net/sasl-cram /usr/share/emacs24/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.3/lisp/net/sasl-digest /usr/share/emacs24/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.3/lisp/net/sasl-ntlm /home/mah/.emacs.d/elpa/ert-0.1/ert hides /usr/share/emacs/24.3/lisp/emacs-lisp/ert Features: (shadow emacsbug url-http url-auth url-gw mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util org-table org-element sql tramp-sh notify dbus xml erc-ring erc-networks erc-netsplit erc-menu erc-pcomplete erc-button erc-fill erc-stamp erc-sasl erc-join erc-autoaway erc-log erc-track erc-match erc-goodies erc erc-backend erc-compat vc-sccs vc-svn vc-cvs vc-rcs vc-dir ewoc canlock sh-script smie executable log-edit pcvs-util add-log eudc eudc-vars pp dired-aux diff-mode vc vc-dispatcher vc-git subword flymake php-extras eldoc php-mode etags cc-langs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars tramp-cache finder lisp-mnt edebug apropos debug image-file org-remember org-datetree w3m-search rect conf-mode w3m-form w3m-cookie w3m-bookmark w3m-tabmenu w3m-session w3m timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util loccur misearch multi-isearch mailalias ispell qp sort smiley gnus-cite flow-fill mm-archive mail-extr gnus-async gnus-bcklg gnus-ml gnus-topic nndraft nnmh nnfolder parse-time epa-file netrc gnutls network-stream tls gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache gnus-pers spam spam-stat gnus-uu yenc gnus-msg gnus-art mm-uu mml2015 gnus-sum nnoo gnus-group gnus-undo nnmail mail-source starttls gnus-start gnus-spec gnus-int gnus-range gnus-win time-stamp crm thingatpt cus-edit multi-term term disp-table ehelp ffap url-parse url-vars face-remap org-colview view mule-util cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew holidays hol-loaddefs cal-iso vc-bzr test-case-mode fringe-helper cc-defs project-local-variables org-indent org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-info org-gnus org-docview org-bibtex bibtex org-bbdb ob-dot paren help-at-pt grep gnus gnus-ems nnheader wid-edit chess-autoloads clojure-test-mode-autoloads company-autoloads css-mode-autoloads dictionary-autoloads elk-test-autoloads epresent-autoloads eproject-autoloads eproject ert-autoloads etags-select-autoloads findr-autoloads flycheck-autoloads f-autoloads fringe-helper-autoloads guess-style-autoloads highlight-80+-autoloads jimb-patch-autoloads js2-mode-autoloads lisppaste-autoloads magit-find-file-autoloads magit-gh-pulls-autoloads gh-autoloads logito-autoloads magit-tramp-autoloads magit-autoloads markdown-mode-autoloads marmalade-autoloads furl-autoloads multi-web-mode-autoloads nrepl-autoloads pcache-autoloads php-extras-autoloads info php-mode-autoloads pkg-info-autoloads epl-autoloads dash-autoloads project-local-variables-autoloads relax-autoloads javascript-autoloads json-autoloads s-autoloads sass-mode-autoloads haml-mode-autoloads finder-inf scpaste-autoloads htmlize-autoloads shellfm-autoloads ssh-config-mode-autoloads subatomic-enhanced-theme-autoloads sudoku-autoloads swank-clojure-autoloads clojure-mode-autoloads slime-repl-autoloads slime-autoloads test-case-mode-autoloads weblogger-autoloads xml-rpc-autoloads yaml-mode-autoloads zen-and-art-theme-autoloads package mu4e mu4e-speedbar speedbar sb-image ezimage dframe mu4e-main mu4e-view epa derived browse-url mu4e-headers mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail sendmail mu4e-mark mu4e-message html2text mu4e-proc mu4e-utils doc-view jka-compr image-mode dired mu4e-lists mu4e-about mu4e-vars message cl-macs gv rfc822 mml mailabbrev mail-utils gmm-utils mailheader hl-line cl mu4e-meta electric autorevert edmacro kmacro windmove ido cus-start cus-load appt diary-lib diary-loaddefs org-clock org-exp ob-exp org-exp-blocks org-agenda org warnings ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys org-pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs find-func cal-menu calendar cal-loaddefs remember tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util tramp-loaddefs shell pcomplete format-spec advice help-fns cl-lib advice-preload tabify mm-view mml-smime mml-sec smime password-cache dig mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr server time allout quail help-mode easymenu unichars epg epg-config w3m-load pylint compile comint ansi-color ring 50magit time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) -- http://hexmode.com/ Despite honor and wealth, we don't last. We die like any other animal. -- Psalm 49:12 ------------=_1401259204-2602-1--