Reading mail with vm Posted September 22, 2003
Install vm.
cd /usr/ports/mail/vm
make install clean
If your POP3 server is mail.example.com and your POP3 username is foo, add this to ~/.emacs. ("pass" is just the word "pass", not your password!)
(load-library "vm")
(setq vm-spool-files
'(
("~/INBOX" "pop:mail.example.com:110:pass:foo:*" "~/INBOX.CRASH")
)
)
Qmail example: If you also want to retrieve mail from ~/Mailbox, use this in ~/.emacs.
(load-library "vm")
(setq vm-spool-files
'(
("~/INBOX" "~/Mailbox" "~/INBOX.CRASH")
("~/INBOX" "pop:mail.example.com:110:pass:foo:*" "~/INBOX.CRASH")
)
)
Sendmail™ example: If you want to retrieve mail from /var/spool/mail/foo as well as your POP3 mailbox foo@mail.example.com, use this.
(load-library "vm")
(setq vm-spool-files
'(
("~/INBOX" "/var/spool/mail/foo" "~/INBOX.CRASH")
("~/INBOX" "pop:mail.example.com:110:pass:foo:*" "~/INBOX.CRASH")
)
)
To start vm, type M-x vm Enter. |