all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: VM makes primary folder buffer read-only
Date: Sun, 30 Sep 2007 23:00:55 +1000	[thread overview]
Message-ID: <874phc9uk8.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.1224.1190650019.18990.help-gnu-emacs@gnu.org

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

       reply	other threads:[~2007-09-30 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1224.1190650019.18990.help-gnu-emacs@gnu.org>
2007-09-30 13:00 ` Tim X [this message]
2007-09-24 15:44 VM makes primary folder buffer read-only Feliks Kluzniak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874phc9uk8.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.