VM

From Peyton Hall Documentation

Revision as of 18:26, 8 May 2007 by Huston (Talk | contribs)
Jump to: navigation, search
This article is actively undergoing a major edit for an hour or so -- huston 14:26, 8 May 2007 (EDT).

As a courtesy, please do not edit this page while this message is displayed. The person who added this notice will be listed in its edit history or has placed their signature above.

If this page has not been edited recently (several hours!), please remove this template (or replace it with {{underconstruction}}).

This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to improve this page.

Template:oldfaq

According to Robert Lupton, here's what you need to do to get VM to work with the IMAP server:

In case it's helpful, here's what I ended up with in my ~/.vm file for using vm with the new imap server. I deleted the complicated-looking line to also read mail from /var/spool.

The brave/naive could simply say:

(load-file "/u/rhl/.vm")

(setq vm-spool-files
      (list
       (imap-mbox "INBOX" "inbox")
       (imap-mbox "GNATS" "user.rhl.GNATS")
       (imap-mbox "backups" "user.rhl.backups")
       ))

but then they'd get all my other weird bindings too.

(setq vm-folder-directory "~/Mail/")
;;
;; Helper function for spool files
;;
(defun imap-mbox (inbox spoolname)
  "Return a list (inbox spoolname inbox.crash), where inbox is interpreted
relative to vm-folder-directory

Useful for use with vm-spool-files, e.g.
(setq vm-spool-files
      (list
       (imap-mbox \"INBOX\" \"inbox\")
       (imap-mbox \"GNATS\" \"user.rhl.GNATS\")
       ))
"
  (list (concat vm-folder-directory inbox)
        (concat "imap:mail.astro.princeton.edu:143:"
                spoolname ":login:" (getenv "USER") ":*")
        (concat vm-folder-directory inbox ".crash")))
;;
;; Actually set those spool files
;;
(setq vm-spool-files
      (list
       (imap-mbox "INBOX" "inbox")
       (imap-mbox "GNATS" "user.rhl.GNATS")
       (imap-mbox "backups" "user.rhl.backups")
))

Personal tools