Discussion:
[VM] vm and [emacs] desktop
Robert Marshall
2014-11-04 08:31:24 UTC
Permalink
I've used desktop.el as a means of getting emacs pre-loaded with all the
files I want and have normally made sure that when I exit emacs I close
down any vm buffers first. Recently emacs desktop has changed so that
the current state of emacs is saved on the fly and thus if emacs crashes,
on a restart my vm imap cache files are loaded but they don't
appear as a VM INBOX

The desktop file entry looks ok
(desktop-create-buffer 206
"/home/robert/Mail/imap-cache-10fa627ba88db87c673417642ff5d908"
"INBOX"
'vm-mode
'(hi-lock-mode)
71693785
'(nil nil)
t
nil
'((buffer-file-coding-system . raw-text-unix)))
I'm guessing that the buffer creation doesn't know how the connection is
to be made to whatever server is being used?

In addition the desktop-saved-frameset has the VM frame listed but the
buffer it's meant to be showing is 'INBOX Presentation' 'INBOX Summary'
which doesn't appear in the buffer list, so the extra frame appears but
it showing a random buffer.

Uday have you given any thought to how to hook up desktop to vm? I think
this is a missing feature rather than a bug

Robert
--
La grenouille songe..dans son château d'eau
Links and things http://rmstar.blogspot.com/
Uday Reddy
2014-11-04 11:27:10 UTC
Permalink
Post by Robert Marshall
on a restart my vm imap cache files are loaded but they don't
appear as a VM INBOX
The desktop file entry looks ok
(desktop-create-buffer 206
"/home/robert/Mail/imap-cache-10fa627ba88db87c673417642ff5d908"
...)
Well, the IMAP cache files have such ugly names just to dissuade you from
thinking they are just files! The real "file" for an IMAP folder is on the
mail server. So, you should delete the imap-cache buffer that Emacs
recovers and visit the folder in the usual way.

I will think about how to block Emacs from automatically recovering cache
files.

Cheers,
Uday
Robert Marshall
2014-11-04 12:20:50 UTC
Permalink
Post by Uday Reddy
Post by Robert Marshall
on a restart my vm imap cache files are loaded but they don't
appear as a VM INBOX
The desktop file entry looks ok
(desktop-create-buffer 206
"/home/robert/Mail/imap-cache-10fa627ba88db87c673417642ff5d908"
...)
Well, the IMAP cache files have such ugly names just to dissuade you from
thinking they are just files! The real "file" for an IMAP folder is on the
mail server. So, you should delete the imap-cache buffer that Emacs
recovers and visit the folder in the usual way.
That's what I do (usually with a recover in the case of a run after a crash)
Post by Uday Reddy
I will think about how to block Emacs from automatically recovering cache
files.
I guess you'll need to tinker with desktop-files-not-to-save (or
...buffers-not-to-save) unfortunately both those are (single) regexps
rather than a list of regexps. Alternatively there's desktop-save-hook
though as desktop-save can be run by the user at anytime (just to create
a saved posn) so closing vm imap files wouldn't be friendly. Maybe I
need to run a test with local folders to see if they work ok.

Doesn't appear to be a way of preventing emacs from saving the frame
state - for VM reserved frames - you can prevent it from saving all (but
one!) frame.

In my case my cache file was larger than large-file-warning-threshold
which gave the game away as to what was happening - as the imap cache
buffer ended up way down the buffer list

Robert
--
La grenouille songe..dans son château d'eau
Gian Uberto Lauri
2014-11-04 14:59:11 UTC
Permalink
Post by Uday Reddy
Post by Robert Marshall
on a restart my vm imap cache files are loaded but they don't
appear as a VM INBOX
The desktop file entry looks ok
(desktop-create-buffer 206
"/home/robert/Mail/imap-cache-10fa627ba88db87c673417642ff5d908"
...)
Well, the IMAP cache files have such ugly names just to dissuade you from
thinking they are just files! The real "file" for an IMAP folder is on the
mail server. So, you should delete the imap-cache buffer that Emacs
recovers and visit the folder in the usual way.
Reading these message I started tinkering to prevent vm to download
messages unless I really open them.

I tried to change the value of vm-imap-max-message-size variable, but
I did not get the desired behaviour. What did I wrong?
--
/\ ___ Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____ African word
//--\| | \| | Integralista GNUslamico meaning "I can
\/ coltivatore diretto di software not install
già sistemista a tempo (altrui) perso... Debian"

Warning: gnome-config-daemon considered more dangerous than GOTO
Continue reading on narkive:
Loading...