VM

From Peyton Hall Documentation

(Difference between revisions)
Jump to: navigation, search
m (VM - An Emacs Mail Client moved to VM: Bad article title)
Current revision (15:44, 9 May 2007) (view source)
m (Categorizing)
 
Line 55: Line 55:
[[Category:Email]]
[[Category:Email]]
 +
[[Category:Software]]

Current revision

VM is an email client for EMACS. Its use is not supported in Peyton Hall, however Robert Lupton has provided the following information (since he used to run it himself).


Configuring VM for IMAP

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 method

Put the following in your ~/.vm file:

(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")
       ))

Doing this, you'll get all of rhl's other "weird bindings".


The more generic method

Put this in your ~/.vm file:

(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