all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7311: Parse error in nnimap
@ 2010-11-01 14:24 Stefan Monnier
  2010-11-01 16:01 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stefan Monnier @ 2010-11-01 14:24 UTC (permalink / raw)
  To: 7311; +Cc: bugs

Package: Emacs,gnus
Version: 24.0.50

Recently I've been getting the following backtrace on a fairly regular
basis when leaving my "emacs" nnimap groups:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  nnimap-parse-line("* OK [PARSE] Unterminated comment: (Bmec <stepnem@gmail.com>")
  nnimap-parse-response()
  nnimap-get-response(207)
  nnimap-command("UID SEARCH SENTBEFORE %s" "03-AUG-2010")
  nnimap-find-expired-articles("emacs")
  nnimap-request-expire-articles((143651 143659 143660 143662 143663 143665 143666 143667 143668 143671 143672 143673 143674 143675 143676 143677 143678 143680 143681 143682 143683 143684 143686 143687 143688 143689 143690 143691 143692 143695 143697 143698 143701 143703 143704 143705 143706 143707 143708 143709 143710 143711 143712 143714 143715 143716 143717 143718 143719 143720 ...) "emacs" "diro" nil)
  gnus-request-expire-articles((143651 143659 143660 143662 143663 143665 143666 143667 143668 143671 143672 143673 143674 143675 143676 143677 143678 143680 143681 143682 143683 143684 143686 143687 143688 143689 143690 143691 143692 143695 143697 143698 143701 143703 143704 143705 143706 143707 143708 143709 143710 143711 143712 143714 143715 143716 143717 143718 143719 143720 ...) "nnimap+diro:emacs")
  gnus-summary-expire-articles()
  run-hooks(gnus-summary-prepare-exit-hook)
  apply(run-hooks gnus-summary-prepare-exit-hook)
  gnus-run-hooks(gnus-summary-prepare-exit-hook)
  gnus-summary-exit()
  call-interactively(gnus-summary-exit nil nil)

As far as I can remember the error is always on the same "(Bmec
<stepnem@gmail.com>", so it seems to be triggered by a particular
poorly formatted message.


        Stefan




In GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2010-10-31 on pastel
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--enable-maintainer-mode' 'CFLAGS=-Wall -Wno-pointer-sign -DUSE_LISP_UNION_TYPE -DSYNC_INPUT -DENABLE_CHECKING -DXASSERTS -DFONTSET_DEBUG -g -O1 -I/usr/include/GNUstep' '--with-x-toolkit=lucid''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: fr_CH.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Minibuffer-Area

Minor modes in effect:
  electric-pair-mode: t
  electric-indent-mode: t
  url-handler-mode: t
  global-reveal-mode: t
  reveal-mode: t
  auto-insert-mode: t
  savehist-mode: t
  minibuffer-electric-default-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
SPC a d - m o d e . e l ? <right> C-x C-s <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
a C-x C-s <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <switch-frame> <switch-frame> <switch-frame> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <select-window> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <select-window> <switch-frame> <switch-frame> 
<select-window> <switch-frame> <switch-frame> <select-window> 
<switch-frame> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> <switch-frame> 
<select-window> <switch-frame> <select-window> M-x 
r e - e m - b <tab> <return>

Recent messages:
Mark saved where search started
Quit [2 times]
Mark set
Quit
Saving file /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt.el...
Wrote /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt.el
Saving file /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt.el...
Wrote /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt.el
Saving file /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt.el...
Wrote /home/monnier/src/emacs/work/lisp/progmodes/ada-stmt.el

Load-path shadows:
/usr/share/emacs23/site-lisp/bbdb/bbdb-mhe hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-mhe
/usr/share/emacs23/site-lisp/bbdb/bbdb-ftp hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-ftp
/usr/share/emacs23/site-lisp/bbdb/bbdb-migrate hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-migrate
/usr/share/emacs23/site-lisp/bbdb/bbdb-print hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-print
/usr/share/emacs23/site-lisp/bbdb/bbdb-snarf hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-snarf
/usr/share/emacs23/site-lisp/bbdb/bbdb hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb
/usr/share/emacs23/site-lisp/bbdb/bbdb-vm hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-vm
/usr/share/emacs23/site-lisp/bbdb/bbdb-com hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-com
/usr/share/emacs23/site-lisp/bbdb/bbdb-hooks hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-hooks
/usr/share/emacs23/site-lisp/bbdb/bbdb-merge hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-merge
/usr/share/emacs23/site-lisp/bbdb/bbdb-rmail hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-rmail
/usr/share/emacs23/site-lisp/bbdb/bbdb-sc hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-sc
/usr/share/emacs23/site-lisp/bbdb/bbdb-w3 hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-w3
/usr/share/emacs23/site-lisp/bbdb/bbdb-gnus hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gnus
/usr/share/emacs23/site-lisp/bbdb/bbdb-whois hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-whois
/usr/share/emacs23/site-lisp/bbdb/bbdb-gui hides /usr/share/emacs/site-lisp/bbdb/lisp/bbdb-gui

Features:
(sort mail-extr message sendmail rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev
mail-utils mailheader emacsbug executable copyright multi-isearch
xscheme warnings trace testcover scheme byte-opt unsafep re-builder
shadow inf-lisp ielm comint ring gmm-utils elp edebug cust-print
bytecomp byte-compile cus-edit cus-start cus-load wid-edit vc-bzr sha1
hex-util filecache find-func pp iswitchb server noutline outline
easy-mmode flyspell ispell eldoc checkdoc regexp-opt thingatpt help-mode
easymenu view prog-mode electric url-handlers url-parse auth-source
netrc gnus-util url-vars mm-util mail-prsvr reveal autoinsert uniquify
advice help-fns advice-preload savehist minibuf-eldef cl cl-loaddefs
proof-site proof-autoloads pg-vars bbdb-autoloads agda2 tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page newcomment menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
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 files text-properties overlay 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 x-toolkit x multi-tty emacs)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7311: Parse error in nnimap
  2010-11-01 14:24 bug#7311: Parse error in nnimap Stefan Monnier
@ 2010-11-01 16:01 ` Andreas Schwab
  2010-11-01 16:08 ` Andreas Schwab
  2010-11-01 17:26 ` Lars Magne Ingebrigtsen
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2010-11-01 16:01 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: bugs, 7311

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> As far as I can remember the error is always on the same "(Bmec
> <stepnem@gmail.com>", so it seems to be triggered by a particular
> poorly formatted message.

Looks like partial iso-2022 encoding.

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."





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7311: Parse error in nnimap
  2010-11-01 14:24 bug#7311: Parse error in nnimap Stefan Monnier
  2010-11-01 16:01 ` Andreas Schwab
@ 2010-11-01 16:08 ` Andreas Schwab
  2010-11-01 17:26 ` Lars Magne Ingebrigtsen
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2010-11-01 16:08 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: bugs, 7311

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>   nnimap-parse-line("* OK [PARSE] Unterminated comment: (Bmec <stepnem@gmail.com>")

Apparently the offending mail is <tl7hbg53fn7.fsf@m17n.org>, which
contains this (decoded) header:

To: ^[$@debbugs.gnu.org (D*^^[(Bt^[$(D+5^[(Bp^[$(D+!^[(Bn
	N^[$(D+5^[(Bmec <stepnem@gmail.com>))))))))

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."





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#7311: Parse error in nnimap
  2010-11-01 14:24 bug#7311: Parse error in nnimap Stefan Monnier
  2010-11-01 16:01 ` Andreas Schwab
  2010-11-01 16:08 ` Andreas Schwab
@ 2010-11-01 17:26 ` Lars Magne Ingebrigtsen
  2 siblings, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-11-01 17:26 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: bugs, 7311-close

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Recently I've been getting the following backtrace on a fairly regular
> basis when leaving my "emacs" nnimap groups:
>
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
>   nnimap-parse-line("* OK [PARSE] Unterminated comment: (Bmec <stepnem@gmail.com>")
>   nnimap-parse-response()

Ok; I've now fixed this parsing.  I'm assuming that string really comes
from the IMAP server, and isn't something that nnimap.el manages to
insert into the nnimap buffer.  Which seems unlikely.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-01 17:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-01 14:24 bug#7311: Parse error in nnimap Stefan Monnier
2010-11-01 16:01 ` Andreas Schwab
2010-11-01 16:08 ` Andreas Schwab
2010-11-01 17:26 ` Lars Magne Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.