Discussion:
[VM] Installing View Mail on Aquamacs?
Marius Hofert
2011-10-14 19:10:28 UTC
Permalink
Dear all,

I work with Aquamacs 3.x (latest nightly build) on Mac OS X 10.7.2. I would like to use View Mail to read and send emails from Aquamacs. I did the following:
(1) I downloaded the View Mail source code vm-8.2.0a.tgz from https://launchpad.net/vm.
(2) I installed it following the standard procedure (configure, make, make install).
(3) I put in the following in ~/Library/Preferences/Aquamacs Emacs/Preferences.el:
(setq vm-imap-account-alist
'(
("imap-ssl:mail.ethz.ch:993:*:login:<mylogin>:*" "ethz")
("imap-ssl:imap.googlemail.com:993:*:login:<***@googlemail.com>:*" "gmail")
)
)
(setq vm-primary-inbox "imap-ssl:mail.ethz.ch:993:*:login:<mylogin>:*" "ethz")
(setq vm-crash-box "~/email/inbox.crash.mbox")
(setq vm-spool-files `((,vm-primary-inbox
"/var/mail/me"
,vm-crash-box)))
(add-to-list 'auto-mode-alist '("\\.mbox$" . vm-mode))
(setq mail-user-agent 'vm-user-agent)

On starting Aquamacs, I obtain:
An error has occurred while loading `~/Library/Preferences/Aquamacs Emacs/Preferences.el (or .elc)':
Wrong type argument: symbolp, ethz

Needless to say, it is not working. I can't even use M-x vm (=> [no match]). I'm not sure if the installation worked correctly (although I haven't found errors), I haven't found anything on Aquamacs & View Mail except these post(s):
http://lists.nongnu.org/archive/cgi-bin/namazu.cgi?query=Aquamacs&submit=Search%21&idxname=viewmail-info&max=20&result=normal&sort=score

Has anyone tried this installation before? Did I miss anything above? (I mainly followed the View Mail wiki here but I'm a total newbie to Aquamacs + View Mail so there is some chance I did something wrong).

Cheers,

Marius
Uday Reddy
2011-10-14 20:23:18 UTC
Permalink
Hi Marius, welcome to VM!
Post by Marius Hofert
(setq vm-imap-account-alist
'(
("imap-ssl:mail.ethz.ch:993:*:login:<mylogin>:*" "ethz")
)
)
(setq vm-primary-inbox "imap-ssl:mail.ethz.ch:993:*:login:<mylogin>:*" "ethz")
^^^^^^
This doesn't belong here.
Post by Marius Hofert
(setq vm-crash-box "~/email/inbox.crash.mbox")
(setq vm-spool-files `((,vm-primary-inbox
"/var/mail/me"
,vm-crash-box)))
(add-to-list 'auto-mode-alist '("\\.mbox$" . vm-mode))
(setq mail-user-agent 'vm-user-agent)
Wrong type argument: symbolp, ethz
I think you are trying to do too much at one go. Please try out one thing
at a time. I think you need to remove vm-crash-box and vm-spool-files.
They don't apply to IMAP folders. Please this EmacsWiki page for a quick
start.

http://www.emacswiki.org/emacs/ViewMailQuickStart

All the best!

Uday
Post by Marius Hofert
http://lists.nongnu.org/archive/cgi-bin/namazu.cgi?query=Aquamacs&submit=Search%21&idxname=viewmail-info&max=20&result=normal&sort=score
Has anyone tried this installation before? Did I miss anything above? (I mainly followed the View Mail wiki here but I'm a total newbie to Aquamacs + View Mail so there is some chance I did something wrong).
Cheers,
Marius
Marius Hofert
2011-10-14 21:56:56 UTC
Permalink
Dear Uday,

thank you very much for your help. I read the quick start and proceeded as you suggested.
I only put in:
(setq vm-imap-account-alist
'(
("imap-ssl:mail.ethz.ch:993:*:login:<mylogin>:*" "ethz")
("imap-ssl:imap.googlemail.com:993:*:login:<firstname.lastname>@googlemail.com:*" "gmail")
)
)
(setq vm-primary-inbox "imap-ssl:mail:993:*:login:<mylogin>:*" "ethz")

By what should I have replaced the "^^^^"-part? I found on the quick start page, that this part should be the same as in the account list, meaning "mail.ethz.ch".
When I started Aquamacs with the above settings, I obtained:

An error has occurred while loading `~/Library/Preferences/Aquamacs Emacs/Preferences.el (or .elc)':
Wrong type argument: symbolp, ethz

So indeed, there is something wrong. I also tried (same error occured):
(setq vm-primary-inbox "imap-ssl:mail.ethz.ch:993:inbox:login:<mylogin>:*" "ethz")
which I found here: http://www.emacswiki.org/emacs/ViewMailAndImap

Cheers,

Marius
Post by Uday Reddy
Hi Marius, welcome to VM!
Post by Marius Hofert
(setq vm-imap-account-alist
'(
("imap-ssl:mail.ethz.ch:993:*:login:<mylogin>:*" "ethz")
)
)
(setq vm-primary-inbox "imap-ssl:mail.ethz.ch:993:*:login:<mylogin>:*" "ethz")
^^^^^^
This doesn't belong here.
Post by Marius Hofert
(setq vm-crash-box "~/email/inbox.crash.mbox")
(setq vm-spool-files `((,vm-primary-inbox
"/var/mail/me"
,vm-crash-box)))
(add-to-list 'auto-mode-alist '("\\.mbox$" . vm-mode))
(setq mail-user-agent 'vm-user-agent)
Wrong type argument: symbolp, ethz
I think you are trying to do too much at one go. Please try out one thing
at a time. I think you need to remove vm-crash-box and vm-spool-files.
They don't apply to IMAP folders. Please this EmacsWiki page for a quick
start.
http://www.emacswiki.org/emacs/ViewMailQuickStart
All the best!
Uday
Post by Marius Hofert
http://lists.nongnu.org/archive/cgi-bin/namazu.cgi?query=Aquamacs&submit=Search%21&idxname=viewmail-info&max=20&result=normal&sort=score
Has anyone tried this installation before? Did I miss anything above? (I mainly followed the View Mail wiki here but I'm a total newbie to Aquamacs + View Mail so there is some chance I did something wrong).
Cheers,
Marius
Loading...