Discussion:
[VM] Bug or feature that vm-imap-folder-p not defined when vm loaded?
k***@gmail.com
2012-06-29 16:18:54 UTC
Permalink
The function vm-imap-folder-p is in vm-save which doesn't seem to be autoloaded when vm
is started. This causes an error for me since I use vm-imap-folder-p
in the vm-mode-hook. I can of course avoid this error by running
(require 'vm-save) first but should this be necessary?

I.e. isn't vm-imap-folder-p an important enough predicate that it should just be
there initially and shouldn't require manual loading of vm-save
Uday Reddy
2012-07-02 16:54:00 UTC
Permalink
Post by k***@gmail.com
The function vm-imap-folder-p is in vm-save which doesn't seem to be
autoloaded when vm is started. This causes an error for me since I use
vm-imap-folder-p in the vm-mode-hook. I can of course avoid this error by
running (require 'vm-save) first but should this be necessary?
The right way to check if a folder is an IMAP folder is by using the
expression:

(eq vm-folder-access-method 'imap)

The function vm-imap-folder-p was in some user-contributed code and I don't
expect that it will continue to stay there.

Cheers,
Uday

Loading...