all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* VM makes primary folder buffer read-only
@ 2007-09-24 15:44 Feliks Kluzniak
  0 siblings, 0 replies; 2+ messages in thread
From: Feliks Kluzniak @ 2007-09-24 15:44 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am using GNU Emacs 21.3.1 and am trying to switch from Rmail to VM.

Seems to be working fine, except that if the buffer of the primary
folder has been modified, then command vm-save-folder fails with the
message

       Folder is read-only:  #<buffer INBOX>

Neither changing the permissions of the file, nor C-x C-q seem to help.

Anyone recognize this?  Any ideas how to proceed?
   
Thanks in advance,
-- Feliks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: VM makes primary folder buffer read-only
       [not found] <mailman.1224.1190650019.18990.help-gnu-emacs@gnu.org>
@ 2007-09-30 13:00 ` Tim X
  0 siblings, 0 replies; 2+ messages in thread
From: Tim X @ 2007-09-30 13:00 UTC (permalink / raw)
  To: help-gnu-emacs

Feliks Kluzniak <feliks@jasper-da.com> writes:

> Hello,
>
> I am using GNU Emacs 21.3.1 and am trying to switch from Rmail to VM.
>
> Seems to be working fine, except that if the buffer of the primary
> folder has been modified, then command vm-save-folder fails with the
> message
>
>        Folder is read-only:  #<buffer INBOX>
>
> Neither changing the permissions of the file, nor C-x C-q seem to help.
>
> Anyone recognize this?  Any ideas how to proceed?
>    
> Thanks in advance,
> -- Feliks
>
>

Yep, this happens because something is trying to update your vm INBOX while
your reading it. This is a bad thing (TM). 

Are you using procmail or some other program to sort/process your mail and
then write it directly to the INBOX folder? If so, don't. 

Basically, you need to write to a *.spool file. then when you visit the
mailbox, it reads mail from the *.spool file and puts it in the main
file. If, while reading the mailbox, you hit g, it will check the spool
file and read in the mail.

You shouldn't need this with the INBOX file. This is handled by the
movemail program and reads mail from the system mail folder
(i.e. /var/mail/username) into a file called NEWMAIL. When you start vm, it
looks in NEWMAIL and reads that mail into INBOX. The contents of INBOX
should only be modified by VM (usually, by hitting 'g'). 

Note that as vm is extremely configurable, names like INBOX, NEWMAIL,
*.spool etc, are all controlled by variables and could be different,
depending on what has been customized etc.

Check the vm website and documentation for more information - in
particular, the FAQ has a section about using procmail, which should
explain everything.

Tim

-- 
tcross (at) rapttech dot com dot au

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-30 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1224.1190650019.18990.help-gnu-emacs@gnu.org>
2007-09-30 13:00 ` VM makes primary folder buffer read-only Tim X
2007-09-24 15:44 Feliks Kluzniak

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.