At Wed, 17 Aug 2011 19:04:10 -0400, Matt Price wrote: > > [1 <text/plain; ISO-8859-1 (7bit)>] > > [2 <text/html; ISO-8859-1 (quoted-printable)>] > ...finally had the good sense to try another mailbox on the same server, that worked just fine. A gmail account I created just now for testing purposes works as well. So I think the problem is specific to this folder, as you > suggested. Is there something I can do to debug and/or workaround this problem? This is strange. I think the best way to debug this is to strip your entire WL and Emacs configuration to the bare minimum: Just Emacs (emacs -Q), a minimal WL configuration and a .folders with only this problematic folder. If the problem still exists, confirm my theorie about `elmo-imap4-current-msgdb' beeing nil. To do so, - fire up WL, but don't enter the bad folder - open elmo-imap4.el and instrument `luna-define-method elmo-folder-msgdb-create-plugged' (move inside defun and C-u C-M-x) - switch to WL and enter the folder; as soon as the instrumented defun is called you end up in Emacs' debugger right inside `elmo-folder-msgdb-create-plugged' - move point to the following part of this function (dolist (number (elmo-msgdb-list-messages elmo-imap4-current-msgdb)) (elmo-global-flags-set (elmo-msgdb-flags elmo-imap4-current-msgdb number) and place point before (elmo-global-flags-set - create a /conditional breakpoint/ by pressing x -- Emacs will ask for an expression to evaluate; if the expression is t at the breakpoint, Edebug will stop * first test for (null elmo-imap4-current-msgdb) If somehow elmo-imap4-current-msgdb is nil before elmo-global-flags-set is called, Edebug will stop. * if the first test succeeds, i.e. current-msgdb really /is/ set to nil during the call, try this breakpoint condition: (not (equal (current-buffer) (elmo-network-session-buffer session))) I noticed that elmo-imap4-current-msgdb is a buffer local variable; thus it will be nil if someone tries to access it while (current-buffer) is not the folder's network session buffer anymore. Let's see what this shows us. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de
Attachment:
pgpZORaVU8cyB.pgp
Description: PGP signature