Discussion:
imap server folder in vm-virtual-folder-alist
(too old to reply)
Scott Brim
2010-05-05 06:01:54 UTC
Permalink
how do I add an imap server folder to vm-virtual-folder-alist? For example

("rrg" (("<folder spec here>") (recipient "rrg")))

?

Use the account-name from the account-alist?

Thanks ... Scott
Uday S Reddy
2010-05-05 17:21:11 UTC
Permalink
Post by Scott Brim
how do I add an imap server folder to vm-virtual-folder-alist? For example
("rrg" (("<folder spec here>") (recipient "rrg")))
Use the account-name from the account-alist?
Unfortunately, you can't do this yet. The way virtual folder
definitions work currently, they can only be based on "real folders",
according to the VM manual. It is on the To-do list to extend them to
server folders but it will be a while before I can get to it.

If this is really important to you, I can offer a temporary work-around.

1. Visit the IMAP folder in VM, and look up its cache folder file name
from the buffer menu. (C-x C-b should give you the buffer menu.) The
cache folder file name will be of the form imap-cache-<some long string>.

2. Define your virtual folders using these cache folder file
names. You will be using the cache folders as proxies for the IMAP
folders.

4. When you want to visit the virtual folder, first visit the
underlying IMAP folders in VM. It is *important* to do this first,
because we are trying to fool VM into thinking that the proxies are
the real thing.

5. Then visit the virtual folder using 'V V' and everything should
work normally.

6. If you ever accidentally modify the cache folders instead of the
IMAP folders, then first save them to disk and quit. Then visit the
corresponding IMAP folder and do full synchronization, i.e.,

C-u M-x vm-visit-synchronize-folder

with a prefix argument.

It sounds more complicated than it really is. If you try it, you will
find it fine I think.

Cheers,
Uday

Loading...