在Emacs VM中设置Gmail [英] Setup for Gmail in Emacs VM

查看:109
本文介绍了在Emacs VM中设置Gmail的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用mutt作为电子邮件客户端一段时间后,我想尝试使用GNU Emacs的VM软件包(如果重要的是:Ubuntu 11.04,64bit)来阅读我的邮件。
如果有可用的配置文件(在.emacs和新的.vm文件中进行必要的修改),我可以通过googled网页,我可以轻松地开始自己的自定义(我想使用我的Gmail帐户与IMAP支持)



也许有人拥有这样的文件,可以提供它们(类似于许多dot-emacs文件)?

解决方案

使用 gnus gmail



〜/ .gnus 文件,并用您的电子邮件地址替换user@gmail.com

 (setq gnus-select-method 
'(nnimapgmail
(nnimap-addressimap.gmail.com )
(nnimap-server-port 993)
(nnimap-stream ssl)))

(setq message-send-mail-function'smtpmail-send-it
smtpmail-starttls-credentials'((smtp.gmail.com587 nil nil))
smtpmail-auth-credentials'((smtp.gmail.com587
u
smtpmail-default-smtp-serversmtp.gmail.com
smtpmail-smtp-serversmtp.gmail.com
smtpmail-smtp -service 587
gnus-ignored-newsgroups^ to\\.\\ | ^ [0-9。 ] + \\(\\ | $ \\)\\ | ^ [\] \[#'()])

将以下内容放在您的〜/ .authinfo 文件中,并替换 user@gmail.com与您的电子邮件地址,并用密码替换秘密 - 或您的应用程序专用密码:

 机器imap.gmail.com登录user@gmail.com密码秘密端口993 
机器smtp.gmail.com登录user@gmail.com密码秘密端口587

当从gnus发送你的第一封电子邮件,你可能会收到一个 STARTTLS 错误。如果您在Mac OS X中使用 homebrew 您可以使用brew install gnutls 安装必要的包。



您可以在以下部分找到更多信息。



运行 Mx gnus 并享受。


after using mutt as an email client for a while, I would like to try the VM package of GNU Emacs (if it is important: Ubuntu 11.04, 64bit) to read my mail. I "googled" the web if there is a configuration file available (modifications necessary in .emacs and the new .vm file) from which I can easily start my own customizations (I want to use my gmail account with IMAP support).

Maybe someone has such files and can provide them (similar to the many "dot-emacs" files)?

解决方案

use gnus gmail

Put the following in your ~/.gnus file and replace "user@gmail.com" with your email address:

(setq gnus-select-method
      '(nnimap "gmail"
           (nnimap-address "imap.gmail.com")
           (nnimap-server-port 993)
           (nnimap-stream ssl)))

(setq message-send-mail-function 'smtpmail-send-it
      smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
      smtpmail-auth-credentials '(("smtp.gmail.com" 587
                   "user@gmail.com" nil))
      smtpmail-default-smtp-server "smtp.gmail.com"
      smtpmail-smtp-server "smtp.gmail.com"
      smtpmail-smtp-service 587
      gnus-ignored-newsgroups "^to\\.\\|^[0-9. ]+\\( \\|$\\)\\|^[\"]\"[#'()]")

Put the following in your ~/.authinfo file and replace "user@gmail.com" with your email address and replace "secret" with your password—or your application-specific password:

machine imap.gmail.com login user@gmail.com password secret port 993
machine smtp.gmail.com login user@gmail.com password secret port 587

When sending your first email from gnus, you might get a STARTTLS error. If you’re using homebrew in Mac OS X, you can install the necessary package with brew install gnutls.

You can find more information in the following sections.

Run M-x gnus and enjoy.

这篇关于在Emacs VM中设置Gmail的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆