[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elmo-folder-open-internal-p always returns nil on multi folder



> > We may need correct
> > elmo-folder-open-internal-p methods for other folders including POP3,
> > or re-callable elmo-folder-open-internal methods for all folders which
> > have elmo-folder-open-internal method.
> 
> Opening a pipe folder with source being a multifolder with a POP3
> folder and desting beeing a MH folder gives no error for me:
> 
> |*&XXXXXXXX@pop.gmx.net:995!,.local|:+~/test2

1. Install Wanderlust from CVS head.

2. Add below entry to ~/.folders.
|*&example@example.com|+inbox	"MultiTest"

3. Start Wanderlust.

4. Send a mail to the address for my POP3.

5. Visit folder |*&example@example.com|+inbox from folder mode.

6. I got a error "(wrong-type-argument number-or-marker-p nil)".


Current problems are

1. elmo-folder-open-internal-p method of elmo-multi.el is obviously
broken.

> (luna-define-method elmo-folder-open-internal-p ((folder elmo-multi-folder))
>   (let (open t)
>     (dolist (fld (elmo-multi-folder-children-internal folder) open)
>       (setq open (and open (elmo-folder-open-internal-p fld))))))

(let (open t) ...) makes error.  Probably actual error is suppressed
by condition-case().

2. elmo-folder-open-internal-p method of elmo-pop3.el (and
elmo-shimbun.el) always return t, even when they are not opend yet.
As a result, elmo-folder-open-internal method of elmo-multi.el never
call elmo-folder-open-internal method for thier child POP3 (and
shimbun) folder, even if problem (1) is fixed.

> (luna-define-method elmo-folder-open-internal ((folder elmo-multi-folder))
>   (dolist (fld (elmo-multi-folder-children-internal folder))
>     (unless (elmo-folder-open-internal-p fld)
>       (elmo-folder-open-internal fld))))

-- 
Kazuhiro Ito