Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This is a question (see below) originally entered at https://answers.launchpad.net/vm/+question/108267 and upon the recommendation of Uday Reddy the question and answers are being moved here. The date of the original question was May 4, 2010.

One subject of the question is use of the program stunnel with program View Mail (run within Emacs) on a PC running Microsoft Windows, in order to read email from a server that requires use of TSL/SSL (Gmail). See the related question, How to configure Emacs smtp for secure server for using a secure server, for sending email.

The programs discussed are Emacs, VM (ViewMail) and stunnel. The platform under discussion is MS Windows.


The original question was asked by usr345 on 2010-04-24:

I tried to install vm on Windows, but when I tried to get the mail from gmail using ssl, an error emerges, emacs hanges-up. Here is the code from .emacs:

(add-to-list 'load-path
             (expand-file-name "~/vm/lisp"))
(add-to-list 'Info-default-directory-list
             (expand-file-name "~/vm/info"))
(require 'vm-autoloads)

(setq vm-primary-inbox "~/mail/inbox.mbox")
(setq vm-crash-box "~/mail/inbox.crash.mbox")
(setq vm-spool-files `((,vm-primary-inbox
                            "pop-ssl:pop.gmail.com:995:pass:usr345:PASSWORD"
                            ,vm-crash-box)))
(setq vm-stunnel-program "g:/program files/stunnel/stunnel.exe")

So, the question:

  • How to configure pop-ssl on Windows?
share|improve this question

migrated from stackoverflow.com Aug 7 '12 at 13:20

This question came from our site for professional and enthusiast programmers.

1  
I think it would be better to split the "getting email" and "sending email" issues into separate questions. I will open a new question for sending email. Please restrict this one to "getting email". –  Uday Reddy Mar 14 '12 at 9:10

1 Answer 1

Emacs version 24 (currently on prerelease) has built-in support for SSL connections, but version 23 does not have it. You can use an external stunnel program to provide an SSL link, through which Emacs can talk to the server.

The variable vm-stunnel-program is the right one to use for configuring VM to use such a program. However, you need to make sure that you have a well-functioning stunnel program on your machine. The Cygwin toolkit includes an stunnel program that works well.

This page on wiredbytes.com gives instructions for testing your stunnel program, independently of Emacs and VM. Make sure that your stunnel program works before plugging it into VM.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.