[mew-int 3145] IMAP LIST

Thomas Danckaert thomas.danckaert at example.com
Mon May 6 22:33:26 JST 2013


Hello,

when retrieving IMAP folders using "C-u Z", for one of my e-mail
accounts, mew returns a list of _all_ contents of my entire home
directory (e.g. ~/Pictures/cat.jpg, ...).  All these directories will
then appear when using tab-completion on an e-mail folder.  I would
prefer to get only the subfolders of ~/Mail", as that is where I
actually store my e-mail.

The IMAP command sent by mew is (for example)

wwik8226 LIST "" *

and to get the desired result, this should be

wwik8226 LIST "Mail/" *

Is it possible using Mew configuration?  For the NAMESPACE command, 
my server returns
"* NAMESPACE (("" "/")) NIL NIL"

I've looked at the corresponding function in mew-imap.el:

(defun mew-imap-command-list (pro pnm)
   (mew-net-status (mew-imap-get-status-buf pnm)
		  "Listing"
		  nil
		  (mew-imap-secure-p pnm))
   (let* ((my-prefix (mew-imap-get-my-prefix pnm))
	 (case (mew-imap-get-case pnm))
	 (prefix-list (mew-imap-prefix-list case)))
     (mew-imap-message pnm "Collecting mailbox list...")
     (mew-imap-process-send-string pro pnm "LIST \"%s\" *" (or (and 
prefix-list my-prefix) ""))))

and it seems that "my-prefix" is always nil.

thanks,

Thomas Danckaert


More information about the Mew-int mailing list