How to view Gmail using VM in Emacs via Imap?

1

1

I followed instructions at here and now I get the following error when I ran vm:

vm-imap-protocol-error: IMAP protocol error: "unexpected char (10)"

$ lsb_release -rd
Description:    Ubuntu 11.10
Release:    11.10
$ apt-cache policy vm
vm:
  Installed: 8.1.0-1
  Candidate: 8.1.0-1
  Version table:
 *** 8.1.0-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status
$ apt-cache policy stunnel4
stunnel4:
  Installed: 3:4.35-2build1
  Candidate: 3:4.35-2build1
  Version table:
 *** 3:4.35-2build1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

qazwsx

Posted 2012-01-29T18:44:19.047

Reputation: 6 739

Answers

1

There has been a bug report on it. And the solution was to add the following line in .emacs -

(setq vm-stunnel-program "/usr/bin/X11/stunnel4")

Bibhas

Posted 2012-01-29T18:44:19.047

Reputation: 2 490

Can I do it in ~/.vm? – qazwsx – 2012-01-29T21:45:10.820

Tried this in .emacs but still get the same error. – qazwsx – 2012-01-29T21:57:38.210

What are the changes did you make between? – Bibhas – 2012-01-31T04:41:52.273

2

I just tried this on OSX, and it worked for me, after some IMAP URL wrangling.

What do you have in your .emacs and your .vm? In particular, what are your vm-imap-account-alist and vm-primary-inbox set to?

And, as mentioned by @Bibhas, you need to have a working stunnel program. You can download latest from stunnel.org1

Lee-Man

Posted 2012-01-29T18:44:19.047

Reputation: 151

I made a typo and put stunnel in my .vm but stunnel4 in my .emacs. After correcting, everything works. Thank you! – qazwsx – 2012-01-31T00:08:22.267